- Employee
- {{ $item->employee?->name }}
{{ $item->employee?->employee_code }}
- Leave type
- {{ $item->leave_type }}
- Dates
-
{{ optional($item->from_date)->format('d M Y') }} → {{ optional($item->to_date)->format('d M Y') }}
({{ $item->days }} {{ \Illuminate\Support\Str::plural('day', (int) $item->days) }})
- Reason
- {{ $item->reason ?: '—' }}
- Applied by
- {{ $item->applicant?->name ?? 'Entered by admin' }}
{{ optional($item->created_at)->format('d M Y H:i') }}
- Review
-
@if ($item->reviewed_at)
{{ ucfirst($item->status) }} by {{ $item->reviewer?->name ?? 'Admin' }}
on {{ $item->reviewed_at->format('d M Y H:i') }}
@if ($item->review_note)
{{ $item->review_note }}
@endif
@else
Awaiting decision
@endif
@if ($item->isPending())
@endif