@if(!$folio)

{{ __('hotel::modules.folio.noFolioFound') }}

@else

{{ __('hotel::modules.folio.folio') }}: {{ $folio->folio_number }}

{{ __('hotel::modules.folio.stay') }}: {{ $stay->stay_number }} | {{ __('hotel::modules.folio.room') }}: {{ $stay->room->room_number }} | {{ __('hotel::modules.folio.guest') }}: {{ $stay->stayGuests->first()?->guest->full_name ?? __('app.notAvailable') }}

@if(user_can('Post To Hotel Folio') && $folio->status->value === 'open') {{ __('hotel::modules.folio.addCharge') }} @endif @if($folio->status->value === 'open') {{ __('hotel::modules.folio.addPayment') }} @endif

{{ __('hotel::modules.folio.totalCharges') }}

{{ currency_format($folio->total_charges) }}

{{ __('hotel::modules.folio.totalPayments') }}

{{ currency_format($folio->total_payments) }}

{{ __('hotel::modules.folio.balance') }}

{{ currency_format($folio->balance) }}

{{ __('hotel::modules.folio.folioDetails') }}

@foreach($folio->folioLines as $line) @endforeach @if($folio->folioPayments->count() > 0) @foreach($folio->folioPayments as $payment) @endforeach @endif
{{ __('hotel::modules.folio.date') }} {{ __('hotel::modules.folio.type') }} {{ __('hotel::modules.folio.description') }} {{ __('hotel::modules.folio.amount') }}
{{ $line->posting_date->format('M d, Y') }} {{ $line->type->label() }} {{ $line->description }} {{ currency_format($line->net_amount) }}
{{ __('hotel::modules.folio.payments') }}
{{ $payment->created_at->format('M d, Y') }} {{ __('hotel::modules.folio.payment') }} {{ ucfirst($payment->payment_method) }} @if($payment->transaction_reference)({{ $payment->transaction_reference }})@endif -{{ currency_format($payment->amount) }}
{{ __('hotel::modules.folio.balance') }} {{ currency_format($folio->balance) }}
{{ __('hotel::modules.folio.addCharge') }}
@foreach($chargeTypes as $type) @endforeach
{{ __('hotel::modules.folio.cancel') }} {{ __('hotel::modules.folio.addCharge') }}
{{ __('hotel::modules.folio.addPayment') }}
{{ __('hotel::modules.folio.cancel') }} {{ __('hotel::modules.folio.addPayment') }}
@endif