@extends('layouts.print') @section('title', 'Maintenance Backlog — ' . \Carbon\Carbon::parse($from)->format('M j') . '–' . \Carbon\Carbon::parse($to)->format('M j, Y')) @section('content') @php $propName = \App\Models\Setting::get('property_name', config('app.name', 'Parkview Hotel')); $periodLabel = \Carbon\Carbon::parse($from)->format('M j') . ' – ' . \Carbon\Carbon::parse($to)->format('M j, Y'); $fmtHours = fn($h) => $h === null ? '—' : ($h >= 48 ? round($h / 24, 1) . 'd' : $h . 'h'); @endphp
{{ $label }}
{{ $value }}
{{ $sub }}
No open work orders — backlog is clear.
@else| Location | Category | Priority | Status | Issue | Age |
|---|---|---|---|---|---|
| {{ $r['room_no'] ? 'Room ' . $r['room_no'] : ($r['location'] ?: 'Common area') }} | {{ $r['category'] }} | {{ ucfirst($r['priority']) }} | {{ \Illuminate\Support\Str::headline($r['status']) }} | {{ \Illuminate\Support\Str::limit($r['description'], 48) }} | {{ $r['age_days'] }}d{{ $r['overdue'] ? ' ⚠' : '' }} |
No work orders resolved in this range.
@else| Category | Resolved | Avg Time |
|---|---|---|
| {{ $cat }} | {{ $m['count'] }} | {{ $fmtHours($m['hours']) }} |