@if($maintenanceRequests->isEmpty())
No maintenance requests found
Create your first maintenance request by clicking the button above.
@else
| ID |
Unit |
Customer |
Title |
Status |
Assigned To |
Created |
Actions |
@foreach($maintenanceRequests as $request)
| #{{ $request->request_id }} |
{{ $request->unit->UnitIdentity ?? 'N/A' }} |
{{ $request->customer->CustomerName ?? 'N/A' }} |
{{ $request->title }} |
@php
$statusClass = [
'Pending' => 'badge bg-warning',
'In Progress' => 'badge bg-info',
'Completed' => 'badge bg-success',
'Cancelled' => 'badge bg-danger',
][$request->status] ?? 'badge bg-secondary';
@endphp
{{ $request->status }}
|
{{ $request->technician->name ?? 'Unassigned' }} |
{{ $request->created_at->format('M d, Y') }} |
|
@endforeach
{{ $maintenanceRequests->links() }}
@endif