{{ setting('address') }}
{{___('common.Class (Section)')}} : {{$data['students'][0]->student->session_class_student->class->name}} ({{$data['students'][0]->student->session_class_student->section->name}})
@endif{{ ___('common.Name') }} | {{ ___('common.Roll') }} | {{ ___('common.Admission no') }} | @foreach ($data['days'] as $day => $date){{ ++$day }} | @endforeach{{ ___('common.P') }} | {{ ___('common.L') }} | {{ ___('common.A') }} | {{ ___('common.F') }} |
---|---|---|---|---|---|---|---|
{{ @$item->student->first_name }} {{ @$item->student->last_name }} | {{ @$item->roll }} | {{ @$item->student->admission_no }} | @php $p = 0; $l = 0; $a = 0; $f = 0; @endphp @foreach ($data['days'] as $day => $date) @php $i = ++$day; @endphp@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 | @endforeach{{ $p }} | {{ $l }} | {{ $a }} | {{ $f }} |
{{ ___('common.Student Name') }} | {{ ___('common.Roll') }} | {{ ___('common.Admission no') }} | {{ ___('common.Date') }} | {{ ___('common.Attendance') }} | {{ ___('common.Note') }} |
---|---|---|---|---|---|
{{ @$item->student->first_name }} {{ @$item->student->last_name }} | {{ @$item->roll }} | {{ @$item->student->admission_no }} | @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') }} @endif | {{ dateFormat(@$item->date) }} | {{ old('note',@$item->note) }} |