@section('tittle') {{"LEAVE ENTRY REPORT"}}@endsection @extends('nav') @section('content')
@csrf
{{$Name}}
@foreach($results as $index => $row) @endforeach
SNO FROM DATE TO DATE TOTAL DAYS REASON REMARK STATUS
{{$index + 1}} {{ date('Y-m-d', strtotime($row['fromdate'])) }} {{ date('Y-m-d', strtotime($row['todate'])) }} {{ $row['leaveNo'] }} {{ $row['reason'] }} {{ $row['Remark'] }} @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
@endsection