@extends('hotel_workspace.receipt_layout') @section('receipt')

{{ $bill->booking_id ? 'Room Restaurant Bill' : 'Restaurant Receipt' }}

Bill: {{ $bill->reference }}
Date: {{ $bill->created_at->format('d M Y H:i') }}
Guest: {{ $bill->guest_name ?: 'Walk in' }}@if($bill->booking)
Room: {{ $bill->booking->room?->name }}@endif
Currency: {{ $bill->currency }}

@foreach($bill->items as $item)@endforeach
ItemQtyPriceTotal
{{ $item->name }}{{ number_format($item->quantity,2) }}{{ number_format($item->unit_price,2) }}{{ number_format($item->total,2) }}

Total: {{ $bill->currency }} {{ number_format($bill->total,2) }}

Received: {{ $bill->currency }} {{ number_format($bill->paid,2) }}
Balance: {{ $bill->currency }} {{ number_format($bill->total-$bill->paid,2) }}

@endsection