@extends('admin.include.main') @section('content')
@if(!$staff_attendance->isEmpty())

Attendance Detail Of Staff(s)

{{$staff_attendance[0]->user->name}}     {{$ins_date}}
Absent ({{$absent->count()}})
@if($absent->isEmpty()) No Absent Today @endif @foreach($absent as $ab) {{$ab->staff->staff_name.","}} @endforeach
Present({{$staff_attendance->count() - $absent->count()}})

Detail List Shown Below

@foreach($staff_attendance as $st) @endforeach
Full name Mobile no Status
{{$st->staff->staff_name}} {{$st->staff->staff_mobile}} @if($st->status == 'P' ) Present @elseif($st->status == 'A') Absent @else Late @endif
@else

Attendance Detail Of Staff(s)

No attendance was taken on date {{$ins_date}}

@endif
@endsection