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

Attendance Detail Of Teacher(s)

{{$ins_date}}
Absent ({{$absent->count()}})
@if($absent->isEmpty()) No Absent Today @endif @foreach($absent as $ab) {{$ab->teacher->full_name.","}} @endforeach
Present({{$teacher_attendance->count() - $absent->count()}})

Detail List Shown Below

@foreach($teacher_attendance as $st) @endforeach
Full name Mobile no Status
{{$st->teacher->full_name}} {{$st->teacher->mobile_no}} @if($st->status == 'P' ) Present @elseif($st->status == 'A') Absent @else Late @endif
@else

Attendance Detail Of Teacher(s)

{{$ins_date}}

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

@endif
@endsection