@php
$no = 1;
$grandtotal_qty = 0;
$grandtotal_amount = 0;
@endphp
@if(count($transactions) > 0)
@foreach($transactions as $transaction)
@php
$total_qty = 0;
$total_amount = 0;
@endphp
@foreach($transaction as $item_transaction)
@if($item_transaction->jenis_pembayaran_id)
|
{{$item_transaction->transaction_date->format('d-m-Y')}} |
{{@$item_transaction->invoice->nomor_kamar}} |
{{@$item_transaction->invoice->no_invoice}} |
{{-- {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_pembayaran_id] }} (Settlement) | --}}
@if ($item_transaction->jenis_pembayaran_id == 5)
@if ($item_transaction->segment != 14)
{{ @config('custom.segment_ratecodes')[$item_transaction->ledger->main_segment] }} |
@else
{{ @config('custom.segment_ratecodes')[14] }} |
@endif
@else
{{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_pembayaran_id] }} |
@endif
{{ @$item_transaction->platformPembayaran->nama }} |
{{$item_transaction->voucher}} |
FRONT OFFICE |
@php
$total_qty += 1;
$grandtotal_qty += 1;
@endphp
1
|
@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}} |
@endif
@if($item_transaction->jenis_deposit)
|
{{$item_transaction->transaction_date->format('d-m-Y')}} |
{{@$invoice_array[$item_transaction->booking_id][$item_transaction->room_index]->nomor_kamar}} |
{{@$invoice_array[$item_transaction->booking_id][$item_transaction->room_index]->no_invoice ?? @$item_transaction->folioDummy->no_bill}} |
{{-- {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }} (Pembayaran / Deposit) | --}}
{{-- {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }} | --}}
@if ($item_transaction->jenis_deposit == 5)
@if ($item_transaction->segmentation != 14)
{{ @config('custom.segment_ratecodes')[$item_transaction->ledger->main_segment] }} |
@else
{{ @config('custom.segment_ratecodes')[14] }} |
@endif
@else
{{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }} |
@endif
{{ @$item_transaction->platform->nama }} |
{{$item_transaction->voucher}} |
FRONT OFFICE |
@php
if ($item_transaction->jenis_transaksi == 1){
$total_qty += 1;
$grandtotal_qty += 1;
}else {
$total_qty -= 1;
$grandtotal_qty -= 1;
}
@endphp
{{($item_transaction->jenis_transaksi == 1 ? '' : '-')}}1
|
@php
if ($item_transaction->jenis_transaksi == 1) {
$total_amount -= $item_transaction->nominal;
$grandtotal_amount -= $item_transaction->nominal;
}else {
$total_amount += $item_transaction->nominal;
$grandtotal_amount += $item_transaction->nominal;
}
@endphp
{{ ribuanWithComma(($item_transaction->jenis_transaksi == 1 ? -1 : 1) * ($item_transaction->nominal)) }}
|
{{@$item_transaction->booking->nama ?? @$item_transaction->folioDummy->guestProfile->name}} |
@endif
@if ($item_transaction->menu_id)
{{@dateFormat($item_transaction->transaction_date,'d-m-Y')}} |
{{@$item_transaction->main_invoice->nomor_kamar}} |
{{@$item_transaction->main_invoice->no_invoice ?? @$item_transaction->folioDummy->no_bill}} |
{{@$item_transaction->menu->nama}} |
Paid Out Item |
- |
FRONT OFFICE |
@php
$total_qty += 1;
$grandtotal_qty += 1;
@endphp
|
@php
$total_amount += $item_transaction->grand_total;
$grandtotal_amount += $item_transaction->grand_total;
@endphp
{{ ribuanWithComma(($item_transaction->grand_total)) }}
|
{{@$item_transaction->main_invoice->bookings->nama ?? @$item_transaction->folioDummy->guestProfile->name}} |
@endif
@endforeach
|
|
|
|
|
|
|
TOTAL |
{{ ribuanWithComma($total_qty) }} |
{{ ribuanWithComma($total_amount) }} |
|
@endforeach
|
|
|
|
|
|
|
Grand TOTAL |
{{ ribuanWithComma($grandtotal_qty) }} |
{{ ribuanWithComma($grandtotal_amount) }} |
|
@else
No Data
|
@endif