@extends('layouts.app') @section('title', __('Attendance')) @section('content')
@include('layouts.leftside-menubar')
@if(count($attendances) > 0) @if(Auth::user()->role != 'student') @endif

@lang('Attendance of Student') - {{$attendances[0]->student->name}}

@endif
@if(count($attendances) > 0)
@if (session('status'))
{{ session('status') }}
@endif @if(count($attendances) > 0)
@lang('Attendance List of This Term')
@foreach ($attendances as $attendance) {{-- @if($loop->index >= 30) @break; @endif --}} @if($attendance->present == 1) @elseif($attendance->present == 2) @else @endif @endforeach
@lang('Status') @lang('Date')
@lang('Present') {{$attendance->created_at->format('M d Y h:i:sa')}}
@lang('Escaped') {{$attendance->created_at->format('M d Y h:i:sa')}}
@lang('Absent') {{$attendance->created_at->format('M d Y h:i:sa')}}
@endif @include('layouts.student.attendances-table')
@else
@lang('No Related Data Found.')
@endif
@endsection