@extends('reports.layouts.html.main') @section('content')

Ledger: {{$data['saleRoom']->code}}

Reservation Confirmation: {{$data['saleRoom']->code}}

Booking status: {{ ucfirst(strtolower($data['saleRoom']->status)) }}

@if(!empty($data['saleRoom']->guest_email)) @endif @if(!empty($data['saleRoom']->guest_company)) @endif
{{$data['saleRoom']->guest_name_title}} {{$data['saleRoom']->guest_name_first}} {{$data['saleRoom']->guest_name_last}}
Mobile : {{$data['saleRoom']->guest_mobile}}
Email : {{$data['saleRoom']->guest_email}}
Company : {{$data['saleRoom']->guest_company}}
@if(!empty($data['categorySummaryStringWithoutXB'])) @endif
Guest Details {{$data['saleRoom']->guest_name_title}} {{$data['saleRoom']->guest_name_first}} {{$data['saleRoom']->guest_name_last}}
Arrival {!! getDateTime(config('ahits.dateformat'), $data['saleRoom']->date_checkin) !!}        ETA: {!! getDateTime('h:i A', $data['saleRoom']->eta) !!}
Departure {!! getDateTime(config('ahits.dateformat'), $data['saleRoom']->date_checkout) !!}        ETD: {!! getDateTime('h:i A', $data['saleRoom']->etd) !!}
Total Rooms {{$data['totalRoomQty']}} ROOMS @if(isset($data['totalXbQty']) && $data['totalXbQty'] > 1) WITH {{$data['totalXbQty']}} EXTRA BEDS @elseif(isset($data['totalXbQty']) && $data['totalXbQty'] == 1) WITH {{$data['totalXbQty']}} EXTRA BED @endif
Room Types {!! $data['categorySummaryStringWithoutXB'] !!}
@foreach ($data['ledger_data'] as $item) @php $noteText = $item->ledgerNote->name ?? $item->voucher->note ?? $item->head->name ?? null; @endphp @endforeach
Date Note Debit Credit
{{$item->date}} {{ !empty($noteText) ? $noteText : '----------' }} {{bdt_format($item->debit)}} {{bdt_format($item->credit)}}
Total: {{bdt_format($data['ledger_summary']['total_debit'])}} {{bdt_format($data['ledger_summary']['total_credit'])}}
Total Due: {{bdt_format($data['ledger_summary']['total_due'])}}
@endsection