@extends('layouts.admin') @section('title', 'Leaves') @php $statusClass = ['pending' => 'warning', 'approved' => 'success', 'rejected' => 'danger']; @endphp @section('content')
No leave records match this filter.
@else| Employee | Type | From | To | Days | Reason | Status | Action |
|---|---|---|---|---|---|---|---|
| {{ $item->employee?->name }} | {{ $item->leave_type }} | {{ optional($item->from_date)->format('d M Y') }} | {{ optional($item->to_date)->format('d M Y') }} | {{ $item->days }} | {{ \Illuminate\Support\Str::limit($item->reason, 70) }} |
{{ ucfirst($item->status) }}
@if ($item->reviewed_at)
by {{ $item->reviewer?->name ?? 'Admin' }}
@endif
{{ $item->reviewed_at->format('d M Y') }} |
@if ($item->isPending()) @endif View Edit |