@if (\Request::get('user_id') == 0) @endif @php $no = 1; $grandtotal_qty = 0; $grandtotal_amount = 0; $summary = array(); @endphp @if(count($transactions) > 0) @foreach($transactions as $key => $transaction) @php $total_qty = 0; $total_amount = 0; @endphp @foreach($transaction as $item_transaction) @if($item_transaction->jenis_deposit) @if (\Request::get('user_id') == 0) @endif @endif @if($item_transaction->jenis_pembayaran_id) @if (\Request::get('user_id') == 0) @endif @endif @endforeach @if (\Request::get('user_id') == 0) @endif @endforeach @if (\Request::get('user_id') == 0) @endif @else @endif
DateUserRoom Number Bill Number Payment Method Platform Voucher Department Local Amount Guest Name Time
{{$item_transaction->transaction_date->format('d-m-Y')}}{{@$item_transaction->user->nama}}{{@$item_transaction->invoice->nomor_kamar}} {{@$item_transaction->invoice->no_invoice}} {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }} (Pembayaran {{"/"}} Deposit) {{ @$item_transaction->platform->nama }} {{ @$item_transaction->voucher }} FRONT OFFICE @php $total_amount -= $item_transaction->nominal; $grandtotal_amount -= $item_transaction->nominal; @endphp {{ (-1 * $item_transaction->nominal) }} {{@$item_transaction->booking->nama}} {{@$item_transaction->created_at->format('H:i:s')}}
{{$item_transaction->transaction_date->format('d-m-Y')}}{{@$item_transaction->user->nama}}{{@$item_transaction->invoice->nomor_kamar}} {{@$item_transaction->invoice->no_invoice}} {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_pembayaran_id] }} {{$item_transaction->tipe_pembayaran == 2 ? '(Refund)' : '(Settlement)'}} {{ @$item_transaction->platformPembayaran->nama }} {{ @$item_transaction->voucher }} FRONT OFFICE @php if($item_transaction->tipe_pembayaran == 1){ $total_amount -= $item_transaction->nominal; $grandtotal_amount -= $item_transaction->nominal; } else{ $total_amount += $item_transaction->nominal; $grandtotal_amount += $item_transaction->nominal; } @endphp @if($item_transaction->tipe_pembayaran == 1) {{ (-1 * $item_transaction->nominal) }} @else {{ ($item_transaction->nominal) }} @endif {{$item_transaction->booking->nama}} {{$item_transaction->created_at->format('H:i:s')}}
TOTAL {{ ($total_amount) }} @php $summary[$key] = $total_amount; @endphp
Grand TOTAL {{ ($grandtotal_amount) }}

NO DATA

SUMMARY OF CASH PAYMENT
Cash{{(@$summary['Cash'] ? $summary['Cash'] : 0)}}
TOTAL{{(@$summary['Cash'] ? $summary['Cash'] : 0)}}
@foreach(config('custom.jenis_deposit') as $key => $val) @if(in_array($key, [1,3])) @endif @endforeach @foreach($platform_pembayarans as $platform_pembayaran) @endforeach
SUMMARY OF PAYMENT
{{$val}}{{(@$summary[config('custom.jenis_deposit.'.$key)] ?? 0)}}
{{$platform_pembayaran->nama}} {{(@$summary[$platform_pembayaran->id] ?? 0)}}