@extends('layouts/contentNavbarLayout') @section('title', 'Leave Management') @section('vendor-style') @endsection @section('content')
| Student | Leave Period | Reason | Return Date | Status | Actions |
|---|---|---|---|---|---|
|
@if($s->documents->where('document_type', 'profile_photo')->first())
{{ $s->full_name }}
{{ $s->student_mobile ?? '—' }}
|
{{ $leave->from_date->format('d/m/Y') }} – {{ $leave->to_date->format('d/m/Y') }} | {{ $leave->reason }} | {{ $leave->return_date?->format('d/m/Y') ?? '—' }} | @if($leave->status === \App\Models\Leave::STATUS_PENDING) Pending @elseif($leave->status === \App\Models\Leave::STATUS_CANCELLED) Cancelled @elseif($leave->return_date) Returned @else Approved @endif | |
| No leave records match the selected filter. | |||||