@section('tittle') {{"PERMISSION ENTRY REPORT"}}@endsection @extends('nav') @section('content')
@csrf
{{$Name}}
@foreach($results as $index => $row) @endforeach
SNO DATE FROM TIME TO TIME TOTAL HRS REASON STATUS REMARK
{{$index + 1}} {{ date('Y-m-d', strtotime($row['EDate'])) }} {{ date('h:i A', strtotime($row['From_Time'])) }} {{ date('h:i A', strtotime($row['To_Time'])) }} {{ $row['Total'] }} {{ $row['Reason'] }} @if ($row['Flag_sts'] === 'Approved')

{{ $row['Flag_sts'] }}

@elseif ($row['Flag_sts'] === 'Requested')

{{ $row['Flag_sts'] }}

@else ($row['Flag_sts'] === 'Rejected')

{{ $row['Flag_sts'] }}

@endif
{{ $row['Remarks'] }}
@endsection