@extends('backend.master') @section('title') {{ ___('common.Online Class Routine 2023') }} @endsection @section('content')
{{-- bradecrumb Area S t a r t --}} {{-- bradecrumb Area E n d --}}
@csrf

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

@error('class')
{{ $message }}
@enderror
@error('section')
{{ $message }}
@enderror
@error('month')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@error('roll')
{{ $message }}
@enderror
@if (@$data['students'] != null) @if (count($data['students']) > 0)
@csrf
@endif

{{ setting('application_name') }}

{{ setting('address') }}

@if (@$data['request']->view == '0')
{{ ___('attendance.Present') }} = {{ ___('common.P') }} {{ ___('attendance.Late') }} = {{ ___('common.L') }} {{ ___('attendance.Absent') }} = {{ ___('common.A') }} {{ ___('attendance.Half day') }} = {{ ___('common.F') }} {{ ___('attendance.Holiday') }} = {{ ___('common.H') }}
@endif
@if (@$data['request']->view == '0') @foreach ($data['days'] as $day => $date) @endforeach @foreach (@$data['students'] as $item) @php $p = 0; $l = 0; $a = 0; $f = 0; @endphp @foreach ($data['days'] as $day => $date) @php $i = ++$day; @endphp @endforeach @endforeach
{{ ___('common.name') }} {{ ___('student_info.roll_no') }} {{ ___('student_info.admission_no') }}{{ ++$day }}{{ ___('common.P') }} {{ ___('common.L') }} {{ ___('common.A') }} {{ ___('common.F') }}
{{ @$item->student->first_name }} {{ @$item->student->last_name }} {{ @$item->roll }} {{ @$item->student->admission_no }} @foreach ($data['attendances'] as $item2) @if ($item->student_id == $item2->student_id && (int) substr($item2->date, -2) == $i) @if (@$item2->attendance == App\Enums\AttendanceType::PRESENT) {{ ___('common.P') }} @php ++$p; @endphp @elseif(@$item2->attendance == App\Enums\AttendanceType::LATE) {{ ___('common.L') }} @php ++$l; @endphp @elseif(@$item2->attendance == App\Enums\AttendanceType::ABSENT) {{ ___('common.A') }} @php ++$a; @endphp @elseif(@$item2->attendance == App\Enums\AttendanceType::HALFDAY) {{ ___('common.F') }} @php ++$f; @endphp @else {{ ___('common.H') }} @endif @endif @endforeach {{ $p }} {{ $l }} {{ $a }} {{ $f }}
@else @forelse ($data['students'] as $item) @empty @endforelse
{{ ___('student_info.Student Name') }} {{ ___('student_info.roll_no') }} {{ ___('student_info.admission_no') }} {{ ___('academic.class') }} ({{ ___('academic.section') }}) {{ ___('common.date') }} {{ ___('attendance.Attendance') }} {{ ___('attendance.Note') }}
{{ @$item->student->first_name }} {{ @$item->student->last_name }} {{ @$item->roll }} {{ @$item->student->admission_no }} {{ @$item->class->name }} ({{ @$item->section->name }}) @if (@$item->attendance == App\Enums\AttendanceType::PRESENT) {{ ___('attendance.Present') }} @elseif(@$item->attendance == App\Enums\AttendanceType::LATE) {{ ___('attendance.Late') }} @elseif(@$item->attendance == App\Enums\AttendanceType::ABSENT) {{ ___('attendance.Absent') }} @elseif(@$item->attendance == App\Enums\AttendanceType::HALFDAY) {{ ___('attendance.Half day') }} @endif {{ dateFormat(@$item->date) }} {{ old('note', @$item->note) }}

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

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

@endif
@endif
@endsection