@foreach($listing as $key => $row) {{ @$row->roll_no ?? '-'}}
{{ $row->student_name ?? '-' }}
{{-- Branch : {{ $row->branch_name ?? '-' }} --}} {{ @$row->class_name .'-'. @$row->section_name }} {{-- Section : {{ $row->section_name ?? '-' }} --}} {{ $row->leave_from_date ? date('d M Y', strtotime($row->leave_from_date)) : '-' }} {{ $row->leave_to_date ? date('d M Y', strtotime($row->leave_to_date)) : '-' }} {{ $row->days }}
{{ $row->subject ?? '-' }}
@if($row->reason) Reason: {{ Str::limit($row->reason, 30) }} @endif @if($row->remarks)
Remarks: {{ Str::limit($row->remarks, 30) }} @endif @if($row->status == 0) Pending @elseif($row->status == 1) Approved @else Declined @endif
@if($row->status == 0) {{-- Approve --}} {{-- Decline --}} @endif
@endforeach