@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)
|
{{$item_transaction->transaction_date->format('d-m-Y')}} |
@if (\Request::get('user_id') == 0)
{{@$item_transaction->user->nama}} |
@endif
{{@$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')}} |
@endif
@if($item_transaction->jenis_pembayaran_id)
|
{{$item_transaction->transaction_date->format('d-m-Y')}} |
@if (\Request::get('user_id') == 0)
{{@$item_transaction->user->nama}} |
@endif
{{@$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')}} |
@endif
@endforeach
|
|
@if (\Request::get('user_id') == 0)
|
@endif
|
|
|
|
|
TOTAL |
{{ ($total_amount) }}
@php
$summary[$key] = $total_amount;
@endphp
|
|
|
@endforeach
|
|
@if (\Request::get('user_id') == 0)
|
@endif
|
|
|
|
|
Grand TOTAL |
{{ ($grandtotal_amount) }} |
|
|
@else
NO DATA
|
@endif