@extends('layouts.app') @section('title', 'Approver Dashboard') @section('content')
| Student Name | Roll No | From - To | Days | Status | Applied | Action |
|---|---|---|---|---|---|---|
| {{ Str::limit($leaveRequest->student->user->name, 15) }} | {{ $leaveRequest->student->roll_no }} | @php $from = $leaveRequest->from_date; $to = $leaveRequest->to_date ?? $leaveRequest->from_date; @endphp @if($from && $to && $from != $to) {{ $from->format('d M') }} - {{ $to->format('d M') }} @else {{ $from?->format('d M') ?? '-' }} @endif | {{ $leaveRequest->number_of_days }} | {{ ucfirst($leaveRequest->status) }} | {{ $leaveRequest->created_at?->format('d M') ?? '-' }} | Review |
No pending leave requests ✓
| Student Name | Decision | Remarks | Approved On |
|---|---|---|---|
| {{ Str::limit($approval->leaveRequest->student->user->name, 15) }} | {{ ucfirst($approval->decision) }} | {{ Str::limit($approval->remarks ?? '-', 20) }} | {{ $approval->approved_at?->format('d M H:i') ?? '-' }} |