@php
$no = 1;
$grandtotal_qty = 0;
$grandtotal_amount = 0;
$summary = array();
@endphp
@if(count($transactions) > 0)
@foreach($transactions as $key_user => $group_users)
User: {{$group_users['user']->nama}} |
@foreach($group_users['data'] as $group_date => $group_metode)
@foreach($group_metode as $key => $datas)
@php
$total_qty = 0;
$total_amount = 0;
@endphp
@foreach($datas as $data)
@if($data->jenis_deposit)
{{$data->transaction_date->format('d-m-Y')}} |
{{@$invoice_array[$data->booking_id][$data->nomor_kamar]->nomor_kamar}} |
{{@$invoice_array[$data->booking_id][$data->nomor_kamar]->no_invoice ?? @$data->folioDummy->no_bill}} |
{{ @config('custom.jenis_pembayaran')[$data->jenis_deposit] }} (Payment / Deposit) |
{{ @$data->platform->nama }} |
{{ @$data->voucher }} |
FRONT OFFICE |
@php
if ($data->jenis_transaksi == 0) {
$total_amount += $data->nominal;
$grandtotal_amount += $data->nominal;
}else {
$total_amount -= $data->nominal;
$grandtotal_amount -= $data->nominal;
}
// $total_amount -= $data->nominal;
// $grandtotal_amount -= $data->nominal;
@endphp
{{ ribuanWithComma( ($data->jenis_transaksi == 0 ? 1 : -1) * $data->nominal) }}
|
{{@$data->booking->nama ?? @$data->folioDummy->guestProfile->name}} |
{{$data->created_at->format('H:i:s')}} |
@endif
@if($data->jenis_pembayaran_id)
{{$data->transaction_date->format('d-m-Y')}} |
{{@$data->invoice->nomor_kamar}} |
{{@$data->invoice->no_invoice}} |
{{ @config('custom.jenis_pembayaran')[$data->jenis_pembayaran_id] }} {{$data->tipe_pembayaran == 2 ? '(Refund)' : '(Settlement)'}} |
{{ @$data->platformPembayaran->nama }} |
{{ @$data->voucher }} |
FRONT OFFICE |
@php
if($data->tipe_pembayaran == 1){
$total_amount -= $data->nominal;
$grandtotal_amount -= $data->nominal;
}
else{
$total_amount += $data->nominal;
$grandtotal_amount += $data->nominal;
}
@endphp
@if($data->tipe_pembayaran == 1)
{{ ribuanWithComma(-1 * $data->nominal) }}
@else
{{ ribuanWithComma($data->nominal) }}
@endif
|
{{@$data->booking->nama}} |
{{$data->created_at->format('H:i:s')}} |
@endif
@endforeach
|
|
|
|
|
|
TOTAL |
{{ ribuanWithComma($total_amount) }}
@php
$summary[$key] = $total_amount;
@endphp
|
|
|
@endforeach
@endforeach
@endforeach
@else
Tidak Ada Transaksi Hari Ini
|
@endif