@foreach($listing as $key => $row) {{ ($listing->currentPage() - 1) * $listing->perPage() + $loop->iteration }} {{ $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) {{-- --}} @endif @endforeach