FO Journal List Transaction
Report Printed on: {{date('l, F d, Y')}}
@if ( \Request::get('user_id') != 0) User: {{@ucwords($user->nama)}} @endif
@if($start_date == $end_date) Period: {{formatDate($start_date)}} @else From Date: {{formatDate($start_date)}} To Date: {{formatDate($end_date)}} @endif
@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}}{{@$invoice_array[$item_transaction->booking_id][$item_transaction->nomor_kamar]->nomor_kamar}} {{@$invoice_array[$item_transaction->booking_id][$item_transaction->nomor_kamar]->no_invoice}}{{@$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 {{ribuanWithComma(-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}}{{@$invoice_array[$item_transaction->booking_id][$item_transaction->nomor_kamar]->nomor_kamar}}{{@$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) {{ ribuanWithComma(-1 * ($item_transaction->nominal)) }} @else {{ ribuanWithComma($item_transaction->nominal) }} @endif {{@$item_transaction->booking->nama}} {{$item_transaction->created_at->format('H:i:s')}}
TOTAL {{ ribuanWithComma($total_amount) }} @php $summary[$key] = $total_amount; @endphp
Grand TOTAL {{ ribuanWithComma($grandtotal_amount) }}

NO DATA


SUMMARY OF CASH PAYMENT
Cash{{ribuanWithComma(@$summary['Cash'] ? $summary['Cash'] : 0)}}
TOTAL{{ribuanWithComma(@$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}}{{ribuanWithComma(@$summary[config('custom.jenis_deposit.'.$key)] ?? 0)}}
{{$platform_pembayaran->nama}} {{ribuanWithComma(@$summary[$platform_pembayaran->id] ?? 0)}}