@extends('adminlte::page') @section('title', 'Leave Report') @section('content_header')

Leave Report

@stop @section('content')

Leave by Type

Leave Status

Detailed Leave Records

@foreach ($leaves as $leave) @endforeach
Staff Name Department Type Status Start Date End Date
{{ $leave->staff->name ?? 'N/A' }} {{ $leave->staff->department->name ?? 'N/A' }} {{ ucfirst($leave->type) }} {{ ucfirst($leave->status) }} {{ $leave->start_date->format('Y-m-d') }} {{ $leave->end_date->format('Y-m-d') }}
@stop @section('js') @section('js') @stop @stop