@hotelSettings

Maintenance

@php $statCards = [ ['title' => 'Total', 'value' => $stats['total'] ?? 0, 'color' => 'primary', 'icon' => 'fas fa-clipboard-list'], ['title' => 'Pending', 'value' => $stats['pending'] ?? 0, 'color' => 'warning', 'icon' => 'fas fa-clock'], ['title' => 'In Progress', 'value' => $stats['in_progress'] ?? 0, 'color' => 'info', 'icon' => 'fas fa-spinner'], ['title' => 'Completed', 'value' => $stats['completed'] ?? 0, 'color' => 'success', 'icon' => 'fas fa-check-circle'], ['title' => 'High Priority', 'value' => ($stats['high_priority'] ?? 0) + ($stats['urgent'] ?? 0), 'color' => 'danger', 'icon' => 'fas fa-exclamation-triangle'], ['title' => 'Rooms Under Maintenance', 'value' => $stats['rooms_under_maintenance'] ?? 0, 'color' => 'secondary', 'icon' => 'fas fa-bed'] ]; @endphp @foreach($statCards as $card)
{{ $card['title'] }}
{{ $card['value'] }}
@endforeach
Filters
Clear Filters
Maintenance Requests
Export
@if($maintenances->count() > 0)
@foreach($maintenances as $maintenance) @endforeach
ID Title Location Type Priority Status Reported Date Scheduled Date Assigned To Actions
#{{ $maintenance->id }} {{ Str::limit($maintenance->title, 30) }} @if($maintenance->maintenance_type === 'repair') Repair @endif @if($maintenance->room) Room {{ $maintenance->room->room_number }} @if($maintenance->room->status === 'maintenance') Room Locked @endif @else {{ $maintenance->location ?? 'General' }} @endif {{ $maintenance->maintenance_type }} @php $priorityBadge = match($maintenance->priority) { 'urgent' => 'bg-danger', 'high' => 'bg-warning', 'medium' => 'bg-info', 'low' => 'bg-success', default => 'bg-secondary' }; @endphp {{ ucfirst($maintenance->priority) }} @php $statusBadge = match($maintenance->status) { 'pending' => 'bg-warning', 'in_progress' => 'bg-info', 'completed' => 'bg-success', 'cancelled' => 'bg-danger', default => 'bg-secondary' }; @endphp {{ ucfirst(str_replace('_', ' ', $maintenance->status)) }} {{ $maintenance->reported_date ? $maintenance->reported_date->format('M j, Y') : 'N/A' }} @if($maintenance->scheduled_date) {{ $maintenance->scheduled_date->format('M j, Y') }} @else Not scheduled @endif {{ $maintenance->assignedTechnician?->full_name ?? 'Not Assigned' }}
@if($maintenance->room) @else @endif
Showing {{ $maintenances->firstItem() }} to {{ $maintenances->lastItem() }} of {{ $maintenances->total() }} results
{{ $maintenances->links() }}
@else

No maintenance requests found

Get started by creating your first maintenance request.

Create Request
@endif