@extends('layouts.teacher') @section('content')
Attendance
@lang('student.filter by')
{{--
--}}
@if (request()->date || request()->course || request()->student)
@if (count($attendance) > 0) @if ($attendance->total() >150) @else
@if (request()->date) @foreach(request()->date as $date) @endforeach @endif
@endif @endif
@foreach ($meetings as $meeting) @endforeach @foreach ($attendance as $student) @foreach ($meetings as $meeting) @if (in_array($student->user_id,$meeting->attendants->pluck('id')->toArray())) @else @endif @endforeach @endforeach
Student Group {{$meeting->mstartdate}} / ( {{date('h:i A', strtotime($meeting->mstarttime))}} )
{{$student->first_name.' '.$student->middle_name.' '.$student->last_name}} @foreach ($fav_groups as $group) @if ($group->user_id == $student->user_id) {{$group->gname}} @endif @endforeach A {{-- @if ($meeting->attendants->where('id',$student->user_id)->first()->pivot->deleted_at) Deleted @endif @if ($meeting->attendants->where('id',$student->user_id)->first()->pivot->is_refunded) @endif @if ($meeting->attendants->where('id',$student->user_id)->first()->pivot->is_refunded_after_post) @endif --}} S {{$meeting->mstatus == 'Canceled' ? 'Canceled':''}}
{{ $attendance->appends(Request::except('page'))->render('inc.paginate') }}

Displaying {{$attendance->count()}} of {{ $attendance->total() }} attendance(s).

@endif
@endsection @section('teacher-js') @endsection