@extends('layout.admin') @section('head') @extends('layout.header') @section('header_title', 'Leaves') @endsection @section('content')
| # | Employee | Type | Dates | Half day | Description | Status | Approver | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $leave->employee->Full_Name }} | {{ $leave->leave_type }} | {{ $leave->start_date }} → {{ $leave->end_date }} | @if ($leave->half_day == 1 || $leave->half_day === '1') Half — {{ $leave->half_day_type ?? '—' }} @else Full day @endif | {{ \Illuminate\Support\Str::limit($leave->description, 48) }} | @if ($leave->approved_at) Approved @elseif ($leave->rejected_at) Rejected @else Pending @endif | @if ($pending) Awaiting approval {{ $pendingApproverLabel }} @else {{ optional($leave->user)->Name ?? '—' }} @endif |
@if ($pending)
@endif
@if (!empty($canApproveLeave) && $pending)
@endif
|
| No leave records yet. Click New leave request to add the first one. | ||||||||