@extends('hotel_workspace.layout') @section('hotel-content')
{{ $guest->phone }} · {{ $guest->id_passport_no }}
| Booking | Room | Check-in | Check-out | Status | Charge USD | Net Paid USD | Refunded USD | Balance USD |
|---|---|---|---|---|---|---|---|---|
| {{ $b->booking_no }} | {{ $b->room->room_no }} | {{ $b->check_in_at?->format('d/m/Y H:i') }} | {{ $b->expected_check_out_at?->format('d/m/Y H:i') }} | {{ str_replace('_',' ',$b->status) }} · {{ $b->payment_status }} | {{ number_format($b->status==='cancelled'?0:$b->total_amount,2) }} | {{ number_format($b->paid_amount,2) }} | {{ number_format($b->hotel_refunded_amount,2) }} | {{ number_format($b->status==='cancelled'?0:$b->balance_amount,2) }} |
| Totals USD | {{ number_format($bookings->where('status','<>','cancelled')->sum('total_amount'),2) }} | {{ number_format($bookings->sum('paid_amount'),2) }} | {{ number_format($bookings->sum('hotel_refunded_amount'),2) }} | {{ number_format($bookings->where('status','<>','cancelled')->sum('balance_amount'),2) }} | ||||
| Bill | Room / Stay | Currency | Total | Paid | Balance | Status |
|---|---|---|---|---|---|---|
| {{ $b->reference }} | {{ $b->booking?->booking_no }} · {{ $b->booking?->room?->room_no }} | {{ $b->currency }} | {{ number_format($b->total,2) }} | {{ number_format($b->paid,2) }} | {{ number_format($b->total-$b->paid,2) }} | {{ $b->paid>=$b->total?'Paid':($b->paid>0?'Partial':'Unpaid') }} |
| Totals | {{ $c }} | {{ number_format($list->sum('total'),2) }} | {{ number_format($list->sum('paid'),2) }} | {{ number_format($list->sum('total')-$list->sum('paid'),2) }} | ||
| Date | Ref. | Activity | Currency | Debit | Credit | Running Balance |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($e['date'])->format('d/m/Y H:i') }} | {{ $e['reference'] }} | {{ $e['description'] }} | {{ $e['currency'] }} | {{ number_format($e['debit'],2) }} | {{ number_format($e['credit'],2) }} | {{ number_format($e['balance'],2) }} |
| Totals / Closing Balance | {{ $c }} | {{ number_format($events->where('currency',$c)->sum('debit'),2) }} | {{ number_format($events->where('currency',$c)->sum('credit'),2) }} | {{ number_format($balances[$c],2) }} | ||