@extends('layouts.app') @section('title', 'Leave Management') @section('content')
| Staff | Type | Dates | Reason | Status | Actions |
|---|---|---|---|---|---|
| {{ $lr->teacher->user->name ?? '—' }} | {{ $lr->type }} | {{ \Illuminate\Support\Carbon::parse($lr->start_date)->format('d M') }} – {{ \Illuminate\Support\Carbon::parse($lr->end_date)->format('d M, Y') }} | {{ \Illuminate\Support\Str::limit($lr->reason, 40) }} | {{ $lr->status }} | @if($lr->status === 'pending') @endif |
| No leave requests. | |||||