@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Non Stay Folio') @section('css') @endsection @section('content')
Identity Number : {{@$folio_dummy->guestProfile->id_cardno}} {{@$folio_dummy->guestProfile->id_cardtype ? '('.@config('custom.jenis_identitas')[@$folio_dummy->guestProfile->id_cardtype].')' : '' }}
Name : {{@$folio_dummy->guestProfile->title ? @$folio_dummy->guestProfile->title.' ' : ''}}{{@$folio_dummy->guestProfile->name}}
Address : {{@$folio_dummy->guestProfile->address ? @$folio_dummy->guestProfile->address.',' : ''}} {{@$folio_dummy->guestProfile->city ? @$folio_dummy->guestProfile->city.',' : ''}} {{@$folio_dummy->guestProfile->country ? @$folio_dummy->guestProfile->country : ''}}
Bill No : {{ $folio_dummy->no_bill }}
Bill Type : {{ $folio_dummy->jenis_nonstay_folio == 1 ? config('custom.jenis_nonstay_folio')[$folio_dummy->jenis_nonstay_folio] : @$folio_dummy->shop->nama}}
Created Date : {{ $folio_dummy->created_at->format('d-m-Y') }}
{{-- Remark --}}
@csrf

@if($folio_dummy->status == 0)
@endif
@csrf
@php $no=1; $idx_item=0; $balance_due = 0; @endphp @if(count($folio_dummy->details) > 0 || count($folio_dummy->deposits) > 0 || count($folio_dummy->shopTransactions) > 0 || count($folio_dummy->pembayaranPOS) > 0 || count($folio_dummy->invoice_details) > 0) @php // dd($folio_dummy->invoice_details); @endphp @if ($folio_dummy->invoice_details) @foreach($folio_dummy->invoice_details as $invoice_detail) @if($invoice_detail->booking_detail_id) @php $no++; $idx_item++; @endphp @endif @endforeach @endif @if($folio_dummy->deposits) @foreach($folio_dummy->deposits as $deposit) @php $no++; $idx_item++; @endphp @endforeach @endif @if($folio_dummy->pembayaranPOS) @foreach($folio_dummy->pembayaranPOS as $pembayaran_pos) @if (@$pembayaran_pos->cart->status != 2) @php $balance_due += $pembayaran_pos->nominal; @endphp @php $no++; $idx_item++; @endphp @endif @endforeach @endif @if($folio_dummy->shopTransactions) @foreach($folio_dummy->shopTransactions as $shop_transaction) @php $harga_satuan = $shop_transaction->grand_total / $shop_transaction->jumlah; @endphp @php $no++; $idx_item++; @endphp @endforeach @endif @else @endif
# Type | User Date Qty Description / Voucher Per Item Total Action
{{date('d-m-Y', strtotime($invoice_detail->date))}} 1 {{$invoice_detail->description}} {{ribuanWithComma($invoice_detail->harga_satuan)}} {{ribuanWithComma($invoice_detail->total)}} @php $balance_due += $invoice_detail->total; @endphp
@if(($deposit->jenis_transaksi == 1) && is_null($deposit->deleted_at) ? 'checked' : '') jenis_transaksi == 1) && is_null($deposit->deleted_at) ? 'checked' : ''}} > @endif jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> @php $bank_transfer = @$deposit->transferAkunting->rekeningBank->nama_bank.' A.N. '.$deposit->nama; @endphp platform->nama ? @$deposit->platform->nama : (@$deposit->segmentation ? config('custom.segment_ratecodes')[@$deposit->segmentation] : '')}} by {{ $deposit->nama }} {{ $deposit->voucher ? '/'.$deposit->voucher : '' }} {{ $deposit->description ? '- '.$deposit->description : '' }}" {{($deposit->jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> {{ config('custom.jenis_transaksi')[$deposit->jenis_transaksi] }} | {{ $deposit->user->nama }} {{ date('d-m-Y', strtotime($deposit->transaction_date)) }} {{ config('custom.jenis_deposit')[$deposit->jenis_deposit].' '.$deposit->bank }} {{$deposit->deposit_reservasi == 1 ? "Deposit" : "Payment" }} {{@$deposit->platform->nama ? @$deposit->platform->nama : (@$deposit->segmentation ? ' - '.config('custom.segment_ratecodes')[@$deposit->segmentation] : '')}} by {{ $deposit->nama }} {{ $deposit->voucher ? '/'.$deposit->voucher : '' }} {{ $deposit->description ? '- '.$deposit->description : '' }} {{-- Pembayaran {{ config('custom.jenis_deposit')[$deposit->jenis_deposit].' '.($deposit->jenis_deposit != 3 ? @$deposit->platform->nama.' '.$deposit->voucher : $bank_transfer) }} --}} jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > @if($deposit->jenis_transaksi == 1) {{ ribuanWithComma($deposit->nominal *-1 ) }} @php $balance_due -= $deposit->nominal; @endphp @else {{ ribuanWithComma($deposit->nominal *-1 ) }} @php $balance_due += $deposit->nominal; @endphp @endif @if (\Auth::user()->role==1) @if($folio_dummy->status == 0) @if($deposit->jenis_transaksi == 1 && is_null($deposit->deleted_at)) @else @endif @else @endif @endif
{{-- @php $bank_transfer = @$deposit->transferAkunting->rekeningBank->nama_bank.' A.N. '.$deposit->nama; @endphp --}} Posting | {{@$pembayaran_pos->cart->user->nama}} {{ date( 'd-m-Y', strtotime($pembayaran_pos->cart->transaction_date) ) }} {{@$pembayaran_pos->cart ? 'Transfer from '.@$pembayaran_pos->cart->shop->nama.' '.@$pembayaran_pos->cart->order_flag : 'Outlet Bill'}} {{ ribuanWithComma($pembayaran_pos->nominal) }} {{ ribuanWithComma($pembayaran_pos->nominal) }}
@if(($shop_transaction->jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? 'checked' : '') jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? 'checked' : ''}} > @endif jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}} > {{ config('custom.jenis_transaksi')[$shop_transaction->jenis_transaksi] }} | {{ $shop_transaction->user->nama }} {{ date('d-m-Y',strtotime($shop_transaction->transaction_date)) }} jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> {{ ribuanWithComma($shop_transaction->jumlah) }} {{@$shop_transaction->menu->nama ?? @$shop_transaction->keterangan_custom }} {{ $shop_transaction->description ? '- '.$shop_transaction->description : '' }} {{ ribuanWithComma($harga_satuan) }} jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}} > @if($shop_transaction->jenis_transaksi == 1) {{ ribuanWithComma($shop_transaction->grand_total) }} @php $balance_due += $shop_transaction->grand_total; @endphp @else {{ ribuanWithComma($shop_transaction->grand_total *-1 ) }} @php $balance_due -= $shop_transaction->grand_total; @endphp @endif @if (\Auth::user()->role==1) @if($folio_dummy->status == 0) @if($shop_transaction->jenis_transaksi == 1 && is_null($shop_transaction->deleted_at)) @else @endif @else @endif @endif
Tidak Ada Transaksi
Balance Due | {{ribuanWithComma($balance_due)}}
@csrf {{-- --}}
@csrf {{-- --}}
{{-- -------------------------------------------------------------- Transaksi -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Deposit -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Transfer TO Master Bill -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Transfer TO Nonstay Bill -------------------------------------------------------------- --}} @endsection @section('js') @endsection