| {{ __('hotel::modules.housekeeping.date') }} | {{ __('hotel::modules.housekeeping.room') }} | {{ __('hotel::modules.housekeeping.type') }} | {{ __('hotel::modules.housekeeping.assignedTo') }} | {{ __('hotel::modules.housekeeping.status') }} | {{ __('hotel::modules.housekeeping.action') }} |
|---|---|---|---|---|---|
| {{ $task->task_date->format('M d, Y') }} | {{ $task->room->room_number ?? '--' }} | {{ $task->type->label() }} | {{ $task->assignedTo->name ?? __('hotel::modules.housekeeping.unassigned') }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', 'in_progress' => 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200', 'completed' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'cancelled' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', ]; $color = $statusColors[$task->status->value] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $task->status->label() }} |
@if($task->status->value === 'pending')
@if(user_can('Update Hotel Housekeeping Task'))
|
|
{{ __('hotel::modules.housekeeping.noHousekeepingTasksFound') }} |
|||||