@extends('layouts.app') @section('title', 'WO-' . str_pad($req->id, 4, '0', STR_PAD_LEFT)) @section('nav_maintenance', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Work Order WO-' . str_pad($req->id, 4, '0', STR_PAD_LEFT)) @section('page_subtitle', $req->location . ' · ' . ($req->category === 'hvac' ? 'HVAC' : ucfirst($req->category))) @section('content') @php $priColors = [ 'urgent' => 'bg-red-50 text-red-700 border-red-200', 'high' => 'bg-orange-50 text-orange-700 border-orange-200', 'normal' => 'bg-blue-50 text-blue-700 border-blue-200', 'low' => 'bg-gray-50 text-gray-500 border-gray-200', ]; $statusColors = [ 'open' => 'bg-red-50 text-red-700 border-red-200', 'in_progress' => 'bg-amber-50 text-amber-700 border-amber-200', 'resolved' => 'bg-green-50 text-green-700 border-green-200', ]; $catColors = [ 'electrical' => 'bg-yellow-50 text-yellow-700 border-yellow-200', 'plumbing' => 'bg-cyan-50 text-cyan-700 border-cyan-200', 'hvac' => 'bg-indigo-50 text-indigo-700 border-indigo-200', 'furniture' => 'bg-amber-50 text-amber-700 border-amber-200', 'appliances' => 'bg-purple-50 text-purple-700 border-purple-200', 'structural' => 'bg-stone-50 text-stone-600 border-stone-200', 'other' => 'bg-gray-50 text-gray-500 border-gray-200', ]; $catLabel = $req->category === 'hvac' ? 'HVAC' : ucfirst($req->category); $statusLabel = ['open' => 'Open', 'in_progress' => 'In Progress', 'resolved' => 'Resolved'][$req->status] ?? ucfirst($req->status); @endphp
{{ $req->location }}
Category
{{ $catLabel }}Reported
{{ $req->created_at->format('M j, Y · g:i A') }}
Reported By
{{ $req->reported_by }}
Resolved
{{ $req->resolved_at->format('M j, Y · g:i A') }}
Resolution Notes
{{ $req->resolution_notes }}
Room Details
Room {{ $room->no }} — {{ $room->type }}
Floor {{ $room->floor }}, Wing {{ $room->wing }} · {{ $room->beds }}
Resolve Work Order