House Keeping

Back to Dashboard
Rooms to Clean Today
{{ $todaysTasksCount ?? 0 }}
Total Rooms
{{ $totalRooms ?? 0 }}
Completed Today
{{ $completedToday ?? 0 }}
Recent Checkouts
{{ $recentCheckoutsCount ?? 0 }}
Floor 1 - Room Status

Select a floor to view rooms

Select Floor
@foreach($floors ?? [1, 2, 3, 4, 5] as $floor) @endforeach
Room Cleaning Status
@forelse($rooms ?? [] as $room) @php $roomStatus = $room->housekeeping_status ?? 'dirty'; $roomManagementStatus = $room->status ?? 'cleaning'; $isRecentlyCheckedOut = $room->recently_checked_out ?? false; if ($isRecentlyCheckedOut) { $roomStatus = 'checked_out'; $roomManagementStatus = 'cleaning'; } // Updated badge classes to match image requirements $housekeepingBadgeClass = match($roomStatus) { 'clean' => 'success', 'in_progress' => 'warning', // Changed to warning for orange 'dirty' => 'danger', 'checked_out' => 'danger', 'maintenance' => 'info', // Blue for maintenance 'occupied' => 'occupied', default => 'secondary' }; $managementBadgeClass = match($roomManagementStatus) { 'available' => 'success', 'occupied' => 'occupied', 'cleaning' => 'warning', // Orange for cleaning 'maintenance' => 'info', // Blue for maintenance default => 'secondary' }; @endphp @empty @endforelse
Room Type Housekeeping Status Room Management Status Floor Last Cleaned Notes Actions
{{ $room->room_number ?? 'N/A' }} @if($isRecentlyCheckedOut) Checked Out @endif @if(isset($room->roomType) && $room->roomType) {{ $room->roomType->name ?? 'Standard' }} @else Standard @endif {{ $roomStatus == 'checked_out' ? 'Recently Checked Out' : ucfirst(str_replace('_', ' ', $roomStatus)) }} {{ ucfirst($roomManagementStatus) }} {{ $room->floor ?? 'N/A' }} {{ isset($room->last_cleaned_at) ? \Carbon\Carbon::parse($room->last_cleaned_at)->format('M j, g:i A') : 'N/A' }} {{ isset($room->housekeeping_notes) ? \Illuminate\Support\Str::limit($room->housekeeping_notes, 30) : 'No notes' }}

No rooms found

Today's Cleaning Schedule
@if(isset($todaysTasks) && $todaysTasks->count() > 0)
@foreach($todaysTasks as $task) @endforeach
Room Task Type Assigned To Priority Status Created Actions
{{ $task->room->room_number ?? 'N/A' }} {{ ucfirst($task->task_type ?? 'daily') }} Cleaning @if($task->staff)
{{ substr($task->staff->first_name ?? 'U', 0, 1) }}{{ substr($task->staff->last_name ?? '', 0, 1) }}
{{ $task->staff->first_name ?? '' }} {{ $task->staff->last_name ?? '' }}
@else - @endif
{{ ucfirst($task->priority ?? 'medium') }} {{ ucfirst($task->status ?? 'pending') }} {{ isset($task->created_at) ? $task->created_at->format('g:i A') : 'N/A' }} @if($task->id ?? false) @else N/A @endif
@else
No Tasks Today

There are no housekeeping tasks scheduled for today.

@endif
Housekeeping Department Staff
{{ $housekeepingStaff->count() ?? 0 }} Members
@if(isset($housekeepingStaff) && $housekeepingStaff->count() > 0)
@foreach($housekeepingStaff as $staffMember) @php $staffName = is_object($staffMember) ? $staffMember->name : ($staffMember['name'] ?? ''); $staffPosition = is_object($staffMember) ? ($staffMember->position ?? 'Housekeeping Staff') : ($staffMember['position'] ?? 'Housekeeping Staff'); $staffEmail = is_object($staffMember) ? ($staffMember->email ?? '') : ($staffMember['email'] ?? ''); $staffPhone = is_object($staffMember) ? ($staffMember->phone ?? '') : ($staffMember['phone'] ?? ''); $staffActive = is_object($staffMember) ? ($staffMember->active ?? true) : ($staffMember['active'] ?? true); @endphp @if($staffName)
{{ substr($staffName, 0, 1) }}
{{ $staffName }}
{{ $staffPosition }}
@if($staffEmail) {{ $staffEmail }}
@endif @if($staffPhone) {{ $staffPhone }} @endif
{{ $staffActive ? 'Active' : 'Inactive' }}
@endif @endforeach
@else
No Housekeeping Staff Found

There are currently no staff members assigned to the housekeeping department.

@endif
Department Overview
Today's Progress
@php $totalRooms = $rooms->count() ?? 0; $completedRooms = $completedToday ?? 0; $productivity = $totalRooms > 0 ? round(($completedRooms / $totalRooms) * 100) : 0; @endphp
{{ $productivity }}%
{{ $completedRooms }} of {{ $totalRooms }} rooms completed
{{ $totalRooms }}
Total Rooms
{{ $completedToday ?? 0 }}
Completed Today
{{ $roomStatuses['in_progress'] ?? 0 }}
In Progress
Room Status Distribution
@foreach($roomStatuses ?? [] as $status => $count) @php $badgeClass = match($status) { 'clean' => 'success', 'in_progress' => 'warning', // Orange for in progress 'dirty' => 'danger', 'checked_out' => 'danger', 'maintenance' => 'info', // Blue for maintenance 'occupied' => 'occupied', default => 'secondary' }; $percentage = $totalRooms > 0 ? round(($count / $totalRooms) * 100) : 0; @endphp @endforeach
Status Count Percentage
{{ $status == 'checked_out' ? 'Recently Checked Out' : ucfirst(str_replace('_', ' ', $status)) }} {{ $count }} {{ $percentage }}%