@extends('layouts.app') @section('title', 'Maintenance') @section('nav_maintenance', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Maintenance') @section('page_subtitle', 'Work orders and facility issues') @section('content')
Open
{{ $stats['open'] }}
Awaiting action
In Progress
{{ $stats['in_progress'] }}
Being worked on
Resolved MTD
{{ $stats['resolved_mtd'] }}
This month
Rooms Blocked
{{ $stats['rooms_blocked'] }}
Maintenance / OOO
No {{ $statusFilter !== 'all' ? str_replace('_', ' ', $statusFilter) . ' ' : '' }}work orders
@if(in_array($statusFilter, ['open', 'all']))All clear. Create a new work order to report an issue.
@endif| WO # | Location | Category | Priority | Description | Status | Reported | |
|---|---|---|---|---|---|---|---|
| WO-{{ str_pad($req->id, 4, '0', STR_PAD_LEFT) }} |
{{ $req->location }} @if($req->reported_by){{ $req->reported_by }} @endif |
{{ $catLabel }} | {{ ucfirst($req->priority) }} |
{{ $req->description }} |
{{ $statusLabels[$req->status] ?? ucfirst($req->status) }} |
{{ $req->created_at->format('M j, Y') }} @if($req->resolved_at)Done {{ $req->resolved_at->format('M j') }} @endif |
View
@if($req->status === 'open')
@endif
|