{{-- {{$invoice->bookings->checkout != null}} --}} {{-- @if($invoice->cetak_count < 3) --}} @if($invoice->bookings->checkout == ''|| $invoice->bookings->status_booking != 2) *** GUEST BILL *** @else *** COPY GUEST BILL *** @endif
{{-- @if (@$invoice->bookings->company) --}} {{-- @endif --}}
@php $gelar = ""; @endphp @if (is_object($invoice->bookings)) @if (in_array(@$invoice->bookings->jns_kelamin,['Laki-laki','LAKI-LAKI','laki-laki'])) @php $gelar = 'Bapak'; @endphp @elseif (@$invoice->bookings->jns_kelamin == null) @php $gelar = 'Bapak / Ibu'; @endphp @else @php $gelar = 'Ibu'; @endphp @endif @endif {{-- @if (is_object($bDetails)) --}} {{-- {{$invoice->nama_pelanggan}} --}} @if ($cname) {{$cname ? $cname : ''}} @else {{$invoice->nama_pelanggan == "" ? '-' : $invoice->nama_pelanggan}} @endif {{-- @else {{$invoice->bookings ? ($invoice->bookings->title.'. ' ?? $gelar) : ''}} {{$invoice->nama_pelanggan == "" ? '-' : $invoice->nama_pelanggan}} @endif --}}
Company : {{-- {{@$invoice->bookings->company->name ?? ' - '}} --}} @if ($ccompanyname) {{$ccompanyname ? $ccompanyname : '-'}} @else {{@$invoice->bookings->company->name ?? ' - '}} @endif
Address : {{@$invoice->bookings->alamat}}
Room Number : @php $no_kamar_detail = ''; $printed = array(); $checkin = null; $checkout = null; @endphp @if(is_object($invoice->bookings)) @if(count($invoice->bookings->bookingDetails) > 0) @foreach($invoice->bookings->bookingDetails as $booking_detail) @if($booking_detail->array_sub==0) @php if(!in_array($booking_detail->nomor_kamar, $printed)){ $no_kamar_detail .= $booking_detail->nomor_kamar.', '; } $printed[] = $booking_detail->nomor_kamar; // get checkin - checkout $checkin = $booking_detail->checkin ? dateFormat($booking_detail->checkin, "H:i:s d-m-Y") : dateFormat($booking_detail->start_date, "H:i:s d-m-Y") ; $checkout = $booking_detail->checkout ? dateFormat($booking_detail->checkout, "H:i:s d-m-Y") : dateFormat($booking_detail->end_date, "H:i:s d-m-Y") ; @endphp @endif @endforeach @endif @endif {{$invoice->nomor_kamar ?? rtrim($no_kamar_detail, ', ')}}
Arrival Date : {{@$checkin ? date('d-m-Y', strtotime(@$checkin)) : '-'}}
Departure Date : {{@$checkout ? date('d-m-Y',strtotime(@$checkout)) : '-'}}
Bill No. : {{$invoice->no_invoice}}
Printed Date : {{date('d-m-Y H:i')}}

@if(count($datas) > 0) @if(count($datas['detail_id']) > 0 || count($datas['shop_transaction_id']) > 0 || count($datas['booking_deposit_id']) > 0) {{-- Ambil Dari Invoice Detail --}} @foreach($datas['detail_id'] as $key => $data) {{-- --}} @endforeach @else @endif @else @endif
Date RmNo Qty Description / Voucher Per Item Total
{{ $datas['date'][$key] }} @if(@$datas['room_no'][$key]) {{ $datas['room_no'][$key] }} @endif {{ $datas['qty'][$key] }} {{ $datas['description'][$key] }}
@if (@$datas['booking_deposit_id'][$key]) {{@$invoice->bookings->jns_pembayaran ? @$invoice->bookings->jns_pembayaran : ''}} @endif
{{$datas['harga_satuan'][$key] ? ribuan($datas['harga_satuan'][$key]) : '0'}}{{$datas['harga_satuan'][$key] ? ribuanWithComma($datas['harga_satuan'][$key]) : '-'}} @if(@$datas['booking_deposit_id'][$key]) @if (@$datas['tipe_pembayaran'][$key] != 2) {{-- {{ribuan($datas['total'][$key])}} --}} {{ribuanWithComma($datas['total'][$key])}} @php $balance_due += $datas['total'][$key] *-1 ; @endphp @endif @elseif (@$datas['shop_transaction_id'][$key]) {{-- {{ribuan($datas['total'][$key])}} --}} {{ribuanWithComma($datas['total'][$key])}} @php $balance_due += $datas['total'][$key]; @endphp @else {{-- {{number_format(@$datas['total'][$key], 0, ",", ".")}} --}} {{ribuanWithComma(@$datas['total'][$key], 0, ",", ".")}} @php $balance_due += $datas['total'][$key]; @endphp @endif @if (@$datas['booking_deposit_id'][$key]) @if (@$datas['tipe_pembayaran'][$key] == 2) {{-- {{ribuan($datas['total'][$key])}} --}} {{ribuanWithComma($datas['total'][$key])}} @php $balance_due += $datas['total'][$key] *-1 ; @endphp @endif @endif
No Data
No Data
 
  {{-- Balance Due : Rp {{number_format($balance_due, 0, ",", ".")}} --}} Balance Due : Rp {{ribuanWithComma($balance_due)}}

I agree that my liability for this bill is waived and agree to be held personally in the event that the indicated person, company or association fails to pay for any part or full amount of this charge

Saya menyetujui bahwa hutang saya yang tersebut diatas bersifat mengikat dan apabila orang atau perusahaan atau asosiasi dimakasud gagal melunasi sebagian atau seluruh jumlah dari biaya diatas maka saya akan bertanggung jawab sepenuhnya atas tagihan tersebut

Cashier Guest Signature








{{@$invoice->hotel->nama}}

{{@$invoice->hotel->alamat}}

p.{{@$invoice->hotel->telp}}

f.{{@$invoice->hotel->fax}}

e.{{@$invoice->hotel->email}}

{{'@'.$invoice->hotel->sosmed}}