@extends('layouts.app') @section('content')
Room Board @if(auth()->user()->hasPermission('accommodation.advance_payments'))Advance Payments@endif Reservations Customers Hotel Details Floors Room Types Meal Plans Rate Plans @if(auth()->user()?->hasPermission('accommodation.housekeeping_stock')) Housekeeping Stock @endif Extra Charges Rooms Setup @if(auth()->user()->hasPermission('accommodation.online_reservations'))Online Reservations@endif Room Reports
Accommodation
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif @if($section === 'rooms')
Rooms
{{ $totals['rooms'] }}
Vacant
{{ $totals['vacant'] }}
Occupied
{{ $totals['occupied'] }}
Maintenance
{{ $totals['maintenance'] }}
Open Balances
{{ \App\Models\SystemSetting::formatMoney($totals['balance']) }}
@forelse($rooms as $room)
{{ $room->name ?: 'Room' }}
Floor: {{ $room->floorRecord?->name ?: ($room->floor ?: '-') }}
{{ $room->type?->name ?: 'No type' }} | {{ \App\Models\SystemSetting::formatMoney($room->rate) }}
{{ ucfirst($room->status) }}
@if($room->activeBooking)
{{ $room->activeBooking->guest_name }}
Out: {{ $room->activeBooking->expected_check_out_at?->format('Y-m-d H:i') }}
@endif
@if($room->status === 'vacant') @elseif($room->status === 'occupied' && $room->activeBooking) Print @endif
@empty

No rooms added. Open Rooms Setup to add rooms.

@endforelse

Customers

@forelse($customers as $customer) @empty @endforelse
Name Branch Phone Email Room Status Action
{{ $customer->name }} {{ $customer->branch?->name ?: 'All branches' }} {{ $customer->phone ?: '-' }} {{ $customer->email ?: '-' }} @if($customer->activeAccommodationBooking) In {{ $customer->activeAccommodationBooking->room?->name ?: $customer->activeAccommodationBooking->room?->room_no }} @else No active room @endif Edit
@csrf @method('DELETE')
No customers match the selected filters.
@endif @if($section === 'room_types')
@forelse($roomTypes as $type) @php($editingThisType = old('form_context') === 'room_type_update' && (int) old('room_type_id') === (int) $type->id) @csrf @method('PUT') @empty @endforelse
NameDefault RateCapacityStd AdultsMax AdultsMax ChildrenMax GuestsChildrenMin AgeStatusAction
@csrf @method('DELETE')
No room types added.
@endif @if($section === 'charge_types')

Extra Charges

@forelse($chargeTypes as $chargeType) @empty @endforelse
ChargeDescriptionStatusAction
{{ $chargeType->name }} {{ $chargeType->description ?: '-' }} {{ $chargeType->is_active ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
@csrf @method('PUT')
No room charges added.
@endif @if($section === 'rooms_setup')
@forelse($rooms as $room) @empty @endforelse
Room NameTypeHotel NameFloorRateStatusActiveAction
{{ $room->name ?: '-' }} {{ $room->type?->name ?: '-' }} {{ $room->hotel?->name ?: ($room->branch?->name ?: ($hotelName ?: 'Main hotel')) }} {{ $room->floorRecord?->name ?: ($room->floor ?: '-') }} {{ \App\Models\SystemSetting::formatMoney($room->rate) }} {{ ucfirst($room->status) }} {{ $room->is_active ? 'Yes' : 'No' }}
@csrf @method('DELETE')
@csrf @method('PUT')
No rooms added.
@endif @if($section === 'housekeeping_stock')
Housekeeping Stock
Products received into employee custody and their room-by-room utilization.
@if(auth()->user()?->canAccessModule('inventory') && auth()->user()?->hasPermission('inventory.internal_issues_view'))Internal Stock Issues@endif
Received
{{ number_format($housekeepingSummary->received,2) }}
Issued To Rooms
{{ number_format($housekeepingSummary->room_issues,2) }}
Returned
{{ number_format($housekeepingSummary->returned,2) }}
Lost / Damaged
{{ number_format($housekeepingSummary->lost,2) }}
Remaining
{{ number_format($housekeepingSummary->remaining,2) }}
{{ \App\Models\SystemSetting::formatMoney($housekeepingSummary->remaining_value) }}
@if($canViewAllHousekeeping)
@endif

Stock Held By Receivers

@forelse($housekeepingItems as $item)@empty@endforelse
Issue No.ProductReceiverBranchReceivedRoomsReturnedLostRemainingBalance ValueStatusAction
{{ $item->issue?->issue_no }}
{{ $item->issue?->issue_date?->format('Y-m-d') }}
{{ $item->product?->name }}
{{ $item->product?->barcode ?: '-' }}
{{ $item->issue?->receiver?->name ?: '-' }}{{ $item->issue?->branch?->name ?: '-' }}{{ number_format($item->quantity_issued,2) }}{{ number_format($item->quantity_consumed,2) }}{{ number_format($item->quantity_returned,2) }}{{ number_format($item->quantity_lost,2) }}{{ number_format($item->remaining_quantity,2) }}{{ \App\Models\SystemSetting::formatMoney($item->remaining_quantity*$item->unit_cost) }}{{ ucfirst($item->issue?->status) }}
@if($item->issue?->status==='issued' && auth()->user()?->hasPermission('accommodation.housekeeping_receive'))
@csrf
@endif @if($item->remaining_quantity>0 && auth()->user()?->hasPermission('accommodation.housekeeping_issue_room'))@endif @if($item->remaining_quantity>0 && auth()->user()?->hasPermission('accommodation.housekeeping_return'))@endif @if($item->remaining_quantity>0 && auth()->user()?->hasPermission('accommodation.housekeeping_loss'))@endif
No custodian stock has been issued.
Totals{{ number_format($housekeepingItems->sum('quantity_issued'),2) }}{{ number_format($housekeepingItems->sum('quantity_consumed'),2) }}{{ number_format($housekeepingItems->sum('quantity_returned'),2) }}{{ number_format($housekeepingItems->sum('quantity_lost'),2) }}{{ number_format($housekeepingItems->sum('remaining_quantity'),2) }}{{ \App\Models\SystemSetting::formatMoney($housekeepingItems->sum(fn($row)=>$row->remaining_quantity*$row->unit_cost)) }}
@permission('accommodation.housekeeping_reports')

Housekeeping Stock Utilization Report

Room issues, store returns and losses
@forelse($housekeepingTransactions as $transaction)@empty@endforelse
DateIssue No.ProductTransactionHotelRoomGuestReceiverQuantityBalance AfterCostRecorded ByReason / Note
{{ $transaction->transaction_date?->format('Y-m-d H:i') }}{{ $transaction->issueItem?->issue?->issue_no }}{{ $transaction->issueItem?->product?->name }}{{ str_replace('_',' ',ucfirst($transaction->transaction_type)) }}{{ $transaction->hotel?->name ?: '-' }}{{ $transaction->room?->name ?: $transaction->room?->room_no ?: '-' }}{{ $transaction->booking?->guest_name ?: '-' }}{{ $transaction->issueItem?->issue?->receiver?->name ?: '-' }}{{ number_format($transaction->quantity,2) }}{{ number_format($transaction->balance_after,2) }}{{ \App\Models\SystemSetting::formatMoney($transaction->quantity*$transaction->unit_cost) }}{{ $transaction->user?->name ?: '-' }}{{ $transaction->reason ?: $transaction->note ?: '-' }}
No housekeeping stock transactions found.
Totals{{ number_format($housekeepingTransactions->sum('quantity'),2) }}{{ \App\Models\SystemSetting::formatMoney($housekeepingTransactions->sum(fn($row)=>$row->quantity*$row->unit_cost)) }}
@endpermission @endif @if($section === 'reports')
Room Reports
@if($mealReport)

Meal Requirements Report

{{ $mealReport['fromDate']->format('d M Y') }}{{ $mealReport['fromDate']->isSameDay($mealReport['toDate']) ? '' : ' to '.$mealReport['toDate']->format('d M Y') }}
@foreach(['breakfast' => 'Breakfast', 'lunch' => 'Lunch', 'dinner' => 'Dinner / Supper'] as $mealKey => $mealLabel)
{{ $mealLabel }}
{{ $mealReport['totals'][$mealKey]['guests'] }}
{{ $mealReport['totals'][$mealKey]['adults'] }} adults, {{ $mealReport['totals'][$mealKey]['children'] }} children | {{ $mealReport['totals'][$mealKey]['rooms'] }} rooms
@endforeach
@if($mealReport['displayType'] === 'summary') @forelse($mealReport['summary'] as $row)@empty@endforelse
DateMeal PlanRoomsAdultsChildrenTotal Guests
{{ $row['service_date']->format('d M Y') }}{{ $row['meal_plan'] }}{{ $row['rooms'] }}{{ $row['adults'] }}{{ $row['children'] }}{{ $row['guests'] }}
No meals are required for the selected dates.
Meal Service TotalsBreakfast {{ $mealReport['totals']['breakfast']['guests'] }} | Lunch {{ $mealReport['totals']['lunch']['guests'] }} | Dinner {{ $mealReport['totals']['dinner']['guests'] }}
@else @forelse($mealReport['rows'] as $row) @php($mealBooking = $row['booking']) @empty@endforelse
DateHotelRoomGuestMeal PlanAdultsChildrenTotalBreakfastLunchDinnerNotes
{{ $row['service_date']->format('d M Y') }}{{ $mealBooking->room?->hotel?->name ?: '-' }}{{ $mealBooking->room?->name ?: $mealBooking->room?->room_no }}{{ $mealBooking->guest_name }}{{ $row['meal_plan'] }}{{ $row['adults'] }}{{ $row['children'] }}{{ $row['adults'] + $row['children'] }}{{ $row['breakfast'] ? 'Yes' : '-' }}{{ $row['lunch'] ? 'Yes' : '-' }}{{ $row['dinner'] ? 'Yes' : '-' }}{{ $mealBooking->notes ?: '-' }}
No meals are required for the selected dates.
Meal Service Totals{{ $mealReport['totals']['breakfast']['guests'] }}{{ $mealReport['totals']['lunch']['guests'] }}{{ $mealReport['totals']['dinner']['guests'] }}
@endif
@elseif($guestMovementReport)

Guest Movement Report

{{ $guestMovementReport['reportDate']->format('l, d M Y') }}
Arrivals
{{ $guestMovementReport['totals']['arrivals'] }}
Departures
{{ $guestMovementReport['totals']['departures'] }}
In House
{{ $guestMovementReport['totals']['in_house'] }}
Total Guests
{{ $guestMovementReport['totals']['guests'] }}
@forelse($guestMovementReport['rows'] as $row)@php($movementBooking = $row['booking'])@empty@endforelse
MovementHotelRoomGuestPhoneMeal PlanCheck InExpected OutAdultsChildrenStatus
{{ $row['movement'] }}{{ $movementBooking->room?->hotel?->name ?: '-' }}{{ $movementBooking->room?->name ?: $movementBooking->room?->room_no }}{{ $movementBooking->guest_name }}{{ $movementBooking->guest_phone ?: '-' }}{{ $movementBooking->ratePlan?->mealPlan?->name ?: 'Bed Only' }}{{ $movementBooking->check_in_at?->format('d M Y H:i') }}{{ $movementBooking->expected_check_out_at?->format('d M Y H:i') }}{{ $movementBooking->adults ?: 1 }}{{ $movementBooking->children ?: 0 }}{{ str_replace('_', ' ', ucfirst($movementBooking->status)) }}
No guest movements found.
@elseif($occupancyReport)

Occupancy Report

As at {{ $occupancyReport['reportDate']->format('l, d M Y') }}
Total Rooms
{{ $occupancyReport['totals']['total_rooms'] }}
Occupied
{{ $occupancyReport['totals']['occupied_rooms'] }}
Available
{{ $occupancyReport['totals']['available_rooms'] }}
Occupancy
{{ number_format($occupancyReport['totals']['occupancy_rate'], 1) }}%
@forelse($occupancyReport['rows'] as $row)@empty@endforelse
HotelTotal RoomsOccupiedAvailableMaintenanceAdultsChildrenGuestsOccupancy
{{ $row['hotel'] }}{{ $row['total_rooms'] }}{{ $row['occupied_rooms'] }}{{ $row['available_rooms'] }}{{ $row['maintenance_rooms'] }}{{ $row['adults'] }}{{ $row['children'] }}{{ $row['adults'] + $row['children'] }}{{ number_format($row['occupancy_rate'], 1) }}%
No rooms found.
Totals{{ $occupancyReport['totals']['total_rooms'] }}{{ $occupancyReport['totals']['occupied_rooms'] }}{{ $occupancyReport['totals']['available_rooms'] }}{{ $occupancyReport['totals']['maintenance_rooms'] }}{{ $occupancyReport['totals']['adults'] }}{{ $occupancyReport['totals']['children'] }}{{ $occupancyReport['totals']['adults'] + $occupancyReport['totals']['children'] }}{{ number_format($occupancyReport['totals']['occupancy_rate'], 1) }}%
@elseif($roomReport)

Room Report

Bookings
{{ $roomReport['totals']['bookings'] }}
Nights
{{ $roomReport['totals']['nights'] }}
Total
{{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['total']) }}
Paid
{{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['paid']) }}
Balance
{{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['balance']) }}
@if($roomReport['displayType'] === 'summary') @forelse($roomReport['summary'] as $row) @empty @endforelse
HotelRoomBookingsNightsTotalPaidBalance
{{ $row['hotel'] }} {{ $row['room'] }} {{ $row['bookings'] }} {{ $row['nights'] }} {{ \App\Models\SystemSetting::formatMoney($row['total']) }} {{ \App\Models\SystemSetting::formatMoney($row['paid']) }} {{ \App\Models\SystemSetting::formatMoney($row['balance']) }}
No room report records found.
Totals {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['total']) }} {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['paid']) }} {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['balance']) }}
@else @forelse($roomReport['rows'] as $booking) @empty @endforelse
ActionHotelRoomGuestMeal PlanCheck InExpected OutNightsStatusPaymentTotalPaidBalanceAdded By
@if($booking->balance_amount > 0) @endif Print Receipt / Invoice
{{ $booking->room?->hotel?->name ?: '-' }} {{ $booking->room?->name ?: $booking->room?->room_no }} {{ $booking->guest_name }} {{ $booking->ratePlan?->mealPlan?->name ?: ($booking->chargeType?->name ?: 'Bed Only') }} {{ $booking->check_in_at?->format('Y-m-d H:i') }} {{ $booking->expected_check_out_at?->format('Y-m-d H:i') }} {{ $booking->nights }} {{ str_replace('_', ' ', ucfirst($booking->status)) }} {{ $booking->paymentMethod?->name ?: '-' }} {{ \App\Models\SystemSetting::formatMoney($booking->total_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->paid_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->balance_amount) }} {{ $booking->user?->name ?: '-' }}
No room report records found.
Totals {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['total']) }} {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['paid']) }} {{ \App\Models\SystemSetting::formatMoney($roomReport['totals']['balance']) }}
@endif
@elseif($debtorsReport)

Debtors Report

Debtors
{{ $debtorsReport['totals']['bookings'] }}
Total
{{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['total']) }}
Paid
{{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['paid']) }}
Balance
{{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['balance']) }}
@forelse($debtorsReport['rows'] as $booking) @empty @endforelse
ActionHotelRoomGuestMeal PlanCheck InExpected OutStatusPaymentTotalPaidBalanceAdded By
@if($booking->balance_amount > 0) @endif Print Receipt / Invoice
{{ $booking->room?->hotel?->name ?: '-' }} {{ $booking->room?->name ?: $booking->room?->room_no }} {{ $booking->guest_name }} {{ $booking->ratePlan?->mealPlan?->name ?: ($booking->chargeType?->name ?: 'Bed Only') }} {{ $booking->check_in_at?->format('Y-m-d H:i') }} {{ $booking->expected_check_out_at?->format('Y-m-d H:i') }} {{ str_replace('_', ' ', ucfirst($booking->status)) }} {{ $booking->paymentMethod?->name ?: '-' }} {{ \App\Models\SystemSetting::formatMoney($booking->total_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->paid_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->balance_amount) }} {{ $booking->user?->name ?: '-' }}
No debtors found.
Totals {{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['total']) }} {{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['paid']) }} {{ \App\Models\SystemSetting::formatMoney($debtorsReport['totals']['balance']) }}
@elseif($generalReport)

General Accommodation Report

Bookings
{{ $generalReport['totals']['bookings'] }}
Nights
{{ $generalReport['totals']['nights'] }}
Total
{{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['total']) }}
Paid
{{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['paid']) }}
Balance
{{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['balance']) }}
@if($generalReport['displayType'] === 'summary') @forelse($generalReport['summary'] as $row) @empty @endforelse
HotelBookingsRoomsTotalPaidBalance
{{ $row['hotel'] }} {{ $row['bookings'] }} {{ $row['rooms'] }} {{ \App\Models\SystemSetting::formatMoney($row['total']) }} {{ \App\Models\SystemSetting::formatMoney($row['paid']) }} {{ \App\Models\SystemSetting::formatMoney($row['balance']) }}
No report records found.
@else @forelse($generalReport['rows'] as $booking) @empty @endforelse
ActionHotelRoomGuestMeal PlanCheck InExpected OutNightsStatusPaymentTotalPaidBalanceAdded By
@if($booking->balance_amount > 0) @endif Print Receipt / Invoice
{{ $booking->room?->hotel?->name ?: '-' }} {{ $booking->room?->name ?: $booking->room?->room_no }} {{ $booking->guest_name }} {{ $booking->ratePlan?->mealPlan?->name ?: ($booking->chargeType?->name ?: 'Bed Only') }} {{ $booking->check_in_at?->format('Y-m-d H:i') }} {{ $booking->expected_check_out_at?->format('Y-m-d H:i') }} {{ $booking->nights }} {{ str_replace('_', ' ', ucfirst($booking->status)) }} {{ $booking->paymentMethod?->name ?: '-' }} {{ \App\Models\SystemSetting::formatMoney($booking->total_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->paid_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->balance_amount) }} {{ $booking->user?->name ?: '-' }}
No report records found.
Totals {{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['total']) }} {{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['paid']) }} {{ \App\Models\SystemSetting::formatMoney($generalReport['totals']['balance']) }}
@endif
@else

Today Accommodation Report

@forelse($bookings as $booking) @empty @endforelse
Action Hotel Room Guest Meal Plan Check In Expected Out Nights Status Payment Total Paid Balance Added By
@if($booking->balance_amount > 0) @endif Print Receipt / Invoice
{{ $booking->room?->hotel?->name ?: '-' }} {{ $booking->room?->name ?: $booking->room?->room_no }} {{ $booking->guest_name }} {{ $booking->ratePlan?->mealPlan?->name ?: ($booking->chargeType?->name ?: 'Bed Only') }} {{ $booking->check_in_at?->format('Y-m-d H:i') }} {{ $booking->expected_check_out_at?->format('Y-m-d H:i') }} {{ $booking->nights }} {{ str_replace('_', ' ', ucfirst($booking->status)) }} {{ $booking->paymentMethod?->name ?: '-' }} {{ \App\Models\SystemSetting::formatMoney($booking->total_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->paid_amount) }} {{ \App\Models\SystemSetting::formatMoney($booking->balance_amount) }} {{ $booking->user?->name ?: '-' }}
No accommodation records found today.
Totals {{ \App\Models\SystemSetting::formatMoney($bookings->sum('total_amount')) }} {{ \App\Models\SystemSetting::formatMoney($bookings->sum('paid_amount')) }} {{ \App\Models\SystemSetting::formatMoney($bookings->sum('balance_amount')) }}
{{ $bookings->links() }}
@endif @endif
@include('accommodation.payment-popup') @endsection