@extends('layouts.app') @section('title', 'Housekeeping Turnover') @section('nav_reports', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Reports') @section('page_subtitle', 'Housekeeping Turnover') @section('content') @php $taskBadge = [ 'due_out' => 'bg-amber-50 text-amber-700 border-amber-200', 'stayover' => 'bg-blue-50 text-blue-700 border-blue-200', 'due_in' => 'bg-teal-50 text-teal-700 border-teal-200', ]; $statusBadge = [ 'available' => 'bg-teal-50 text-teal-700', 'clean' => 'bg-green-100 text-green-700', 'occupied' => 'bg-teal-700 text-white', 'dirty' => 'bg-amber-100 text-amber-700', 'maintenance' => 'bg-orange-100 text-orange-700', 'out_of_order' => 'bg-red-100 text-red-700', ]; @endphp @include('reports._filter', [ 'active' => 'reports.housekeeping-turnover', 'mode' => 'date', 'date' => $date, 'title' => 'Daily Housekeeping Turnover', 'subtitle' => \Carbon\Carbon::parse($date)->format('l, F j, Y'), ]) {{-- Summary tiles --}}

Rooms to Service

{{ $roomsToService }}

across {{ count($byFloor) }} floor{{ count($byFloor) !== 1 ? 's' : '' }}

Due Out

{{ $dueOutCount }}

full departure clean

Stayover

{{ $stayoverCount }}

light service

Due In

{{ $dueInCount }}

ready by arrival

@if(empty($byFloor))

No room turnovers for this date. 🧹

@else
@foreach($byFloor as $floor => $roomRows)

Floor {{ $floor }}

{{ count($roomRows) }} room{{ count($roomRows) !== 1 ? 's' : '' }}
@foreach($roomRows as $r) @endforeach
Room Type Task Guest Current Status
{{ $r['no'] }} {{ $r['type'] }}
@foreach($r['tasks'] as $t) {{ $t['label'] }} @endforeach
@foreach($r['tasks'] as $t)

{{ $t['guest'] }}

@endforeach
{{ \Illuminate\Support\Str::headline($r['status']) }}
@endforeach
@endif @endsection