@extends('layouts.admin') @section('content')
Attendance
@lang('student.filter by')
{{--
--}}
@if (request()->date || request()->course || request()->student)
@csrf
Result
{{-- @if (count($attendance) > 0) @if ($attendance->total() >150) @else @if (request()->date) @foreach(request()->date as $date) @endforeach @endif @endif @endif --}} @php $count=0 @endphp
@foreach ($meetings as $meeting) @endforeach @foreach ($attendance as $student) @if (!$isEmpty) @foreach ($meetings as $meeting) @if (in_array($student->user_id,$meeting->attendants->pluck('id')->toArray())) @else @endif @endforeach @else @endif @endforeach
# Student Group {{$meeting->mstartdate}} / ( {{date('h:i A', strtotime($meeting->mstarttime))}} ) Attended ?
{{++$count}} {{$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('admin-js') @endsection