@extends('layouts.app')
@section('content')
@include('human_resource.partials.styles')
@include('human_resource.partials.page_head',['title'=>'Leave Management','subtitle'=>'Applications, approvals and employee leave balances'])
| Date Applied | Days | Leave Type | From | To | Employee | Reason | Comments | Status | Date Updated | Action |
@forelse($leaveRequests as $leave)| {{ $leave->created_at->format('d M Y') }} | {{ number_format($leave->days,1) }} | {{ $leave->leaveType?->name }} | {{ $leave->start_date->format('d M Y') }} | {{ $leave->end_date->format('d M Y') }} | {{ $leave->user?->name }} | {{ $leave->reason?:'-' }} | {{ $leave->decision_note?:'-' }} | {{ ucfirst($leave->status) }} | {{ $leave->updated_at->format('d M Y H:i') }} | @if($leave->status==='pending')@else - @endif |
@empty| No leave applications found. |
@endforelse