logo
 
@php $id=1; //dd($mdetails); @endphp @foreach($mdetails as $code => $name1) @php $declined_reason_why = $name1['declined_reason_why']??''; if($name1['leave_status'] !='Decline'){ $declined_reason_why='---'; } //dd($name1['leave_status'],$declined_reason_why); @endphp @php $id++; @endphp @endforeach
#Leave Requested#
Requested From {{ $data->user_id }}
User Reason : {{ $data->user_reason }}
 
ID Date Leave Type Start Time End Time Total Hours Status Decline Reason
{{$id}} {{$name1['date']}} {{$name1['type']}} {{$name1['start_time']}} {{$name1['end_time']}} {{$name1['total_time']}} {{$name1['leave_status']}} {{$declined_reason_why}}