@extends('student-panel.partials.master') @section('title') {{ ___('common.Online Class Routine 2023') }} @endsection @section('content')
@csrf

{{ ___('common.Filtering') }}

@error('month')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@if(@$data['results'] != null)

{{ ___('report.Attendance report') }}

{{ ___('attendance.Present') }} = {{ ___('common.P') }} {{ ___('attendance.Late') }} = {{ ___('common.L') }} {{ ___('attendance.Absent') }} = {{ ___('common.A') }} {{ ___('attendance.Half day') }} = {{ ___('common.F') }} {{ ___('attendance.Holiday') }} = {{ ___('common.H') }}
@if ( @$data['request']->view == '0') @foreach ($data['days'] as $day => $date) @endforeach @php $p = 0; $l = 0; $a = 0; $f = 0; @endphp @foreach ($data['days'] as $day => $date) @php $i = ++$day; @endphp @endforeach
{{ ++$day }}{{ ___('common.P') }} {{ ___('common.L') }} {{ ___('common.A') }} {{ ___('common.F') }}
@foreach ($data['results'] as $item) @if ((int)substr($item->date, -2) == $i) @if (@$item->attendance == App\Enums\AttendanceType::PRESENT) {{ ___('common.P') }} @php ++$p @endphp @elseif(@$item->attendance == App\Enums\AttendanceType::LATE) {{ ___('common.L') }} @php ++$l @endphp @elseif(@$item->attendance == App\Enums\AttendanceType::ABSENT) {{ ___('common.A') }} @php ++$a @endphp @elseif(@$item->attendance == App\Enums\AttendanceType::HALFDAY) {{ ___('common.F') }} @php ++$f @endphp @else {{ ___('common.H') }} @endif @endif @endforeach {{ $p }} {{ $l }} {{ $a }} {{ $f }}
@else @forelse ($data['results'] as $item) @empty @endforelse
{{ ___('common.date') }} {{ ___('attendance.Attendance') }} {{ ___('attendance.Note') }}
@if (@$item->attendance == App\Enums\AttendanceType::PRESENT) {{ ___('common.Present') }} @elseif(@$item->attendance == App\Enums\AttendanceType::LATE) {{ ___('common.Late') }} @elseif(@$item->attendance == App\Enums\AttendanceType::ABSENT) {{ ___('common.Absent') }} @elseif(@$item->attendance == App\Enums\AttendanceType::HALFDAY) {{ ___('common.Half day') }} @else {{ ___('common.Holiday') }} @endif {{ dateFormat(@$item->date) }} {{ old('note',@$item->note) }}

{{ ___('common.No data available') }}

{{ ___('common.Please add new entity regarding this table') }}

@endif
@if ( @$data['request']->view != '0')
@endif
@endif
@endsection