@extends('layouts.adminapp') @section('content')

{{ __('lng.StudentAttendanceReport') }}

{{-- @if ($FromDate && $ToDate)

Date Range: {{ date('d-m-Y', strtotime($FromDate)) }} to {{ date('d-m-Y', strtotime($ToDate)) }}

@endif --}}

{{ $Batch->title ?? '' }}

@if ($Student) {{ $Student->name ?? '' }} @else {{ \App\Models\Student::where('admission_no', $StudentID)->value('name') ?? '' }} @endif

{{-- --}} @php $si=0; @endphp @foreach ($StudentAttendances as $StudentAttendance) @php $Student=App\Models\Student::where('admission_no',$StudentAttendance->AdmissionNo)->first(); @endphp @if ($Student) {{-- --}} @endif @endforeach
{{ __('lng.SiNo') }} {{ __('lng.AdmissionNo') }} {{ __('lng.Name') }} {{ __('lng.Date') }}{{__('lng.InTime')}}{{ __('lng.OutTime') }}
{{ ++$si }} {{ $Student->admission_no ?? '' }} {{ $Student->name ?? '' }} @if ($StudentAttendance->AttendanceDate) {{ date_format(date_create($StudentAttendance->AttendanceDate), 'd-m-Y') }} @endif {{$StudentAttendance->InTime}} {{ $StudentAttendance->OutTime }}
{{-- --}}
{{-- --}} @endsection