@extends('layouts.app') @section('title', 'Director Dashboard') @section('content')
| Student Name | Roll No | Trade | From - To | Days | Status | Action |
|---|---|---|---|---|---|---|
| {{ Str::limit($leave->student->user->name, 15) }} | {{ $leave->student->roll_no }} | {{ $leave->student->trade ?? '-' }} | @php $from = $leave->from_date; $to = $leave->to_date ?? $leave->from_date; @endphp @if($from && $to && $from != $to) {{ $from->format('d M') }} - {{ $to->format('d M') }} @else {{ $from?->format('d M') ?? '-' }} @endif | {{ $leave->number_of_days }} | {{ ucfirst($leave->status) }} | View |
No leave requests found for the selected filter ✓
Assistant Director
{{ $staff->email }}
{{ $staff->mobile ?? 'N/A' }}
Training Officer
{{ $staff->email }}
{{ $staff->mobile ?? 'N/A' }}
Warden
{{ $staff->email }}
{{ $staff->mobile ?? 'N/A' }}
📚 Roll: {{ $student->roll_no }}
🎓 {{ $student->trade }}
📖 {{ $student->course }}
{{ $student->user->email }}
| Student Name | From - To | Days | Status | Level |
|---|---|---|---|---|
| {{ Str::limit($request->student->user->name, 20) }} | @if($request->from_date && $request->to_date) {{ $request->from_date->format('d M') }} - {{ $request->to_date->format('d M') }} @else N/A @endif | {{ $request->number_of_days }} | {{ ucfirst($request->status) }} |
@if ($request->status !== 'rejected' && $request->status !== 'approved')
@php
$currentApproval = $request->approvalLogs->where('level', $request->current_level)->first();
@endphp
@if ($currentApproval && $currentApproval->approver)
{{ $currentApproval->approver->name }}
{{ ucfirst(str_replace('_', ' ', $currentApproval->approver->role)) }}
|