@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.InDate') }} {{ __('lng.totalinTime') }}{{__('lng.OutTime')}}
{{ ++$si }} {{ $Student->admission_no ?? '' }} {{ $Student->name ?? '' }} @if ($StudentAttendance->AttendanceDate) {{ date_format(date_create($StudentAttendance->AttendanceDate), 'd-m-Y') }} @endif @if ($StudentAttendance->InTime) {{ date_format(date_create($StudentAttendance->InTime), 'd-m-Y H:i') }} @endif {{ $presentTime[$Student->id] ?? 0 }} {{$StudentAttendance->OutTime}}
{{-- --}}
{{--
--}} @endsection