@php
$no = 1;
$grandtotal_qty = 0;
$grandtotal_amount = 0;
// $summary = array();
@endphp
@if(count($items) > 0 || count($itemstransaksi) > 0)
{{-- @foreach($transactions as $key => $transaction) --}}
Payment \ Deposit |
@php
$total_qty = $total_qty_trans = 0;
$total_amount = $total_amount_trans = 0;
@endphp
@if(count($items) > 0)
@foreach($items as $item_transaction)
{{$item_transaction['date']->format('Y-m-d')}} |
{{$item_transaction['nomor_kamar']}} |
{{@$item_transaction['no_invoice']}} |
{{ $item_transaction['jenis'] }} |
{{ $item_transaction['platform'] }} |
{{ $item_transaction['voucher'] }} |
{{ $item_transaction['desc'] }} |
@php
$total_amount -= $item_transaction['amount'];
$grandtotal_amount -= $item_transaction['amount'];
@endphp
{{ ribuanWithComma(-1 * ($item_transaction['amount'])) }}
|
{{@$item_transaction['guest']}} |
{{$item_transaction['date']->format('H:i:s')}} |
{{@$item_transaction['user']}} |
@endforeach
@endif
|
|
|
|
|
|
TOTAL |
{{ ribuanWithComma($total_amount) }}
|
|
|
|
Transaction |
@if (count($itemstransaksi) > 0)
@foreach($itemstransaksi as $item_transaction)
{{$item_transaction['date']->format('Y-m-d')}} |
{{$item_transaction['nomor_kamar']}} |
{{@$item_transaction['no_invoice']}} |
{{ $item_transaction['jenis'] }} |
{{ $item_transaction['platform'] }} |
{{ $item_transaction['voucher'] }} |
{{ $item_transaction['desc'] }} |
@php
$total_amount_trans += $item_transaction['amount'];
$grandtotal_amount += $item_transaction['amount'];
@endphp
{{ ribuanWithComma(($item_transaction['amount'])) }}
|
{{@$item_transaction['guest']}} |
{{$item_transaction['date']->format('H:i:s')}} |
{{@$item_transaction['user']}} |
@endforeach
@endif
|
|
|
|
|
|
TOTAL |
{{ ribuanWithComma($total_amount_trans) }}
|
|
|
|
{{-- @endforeach --}}
{{--
|
|
|
|
|
|
Grand TOTAL |
{{ ribuanWithComma($grandtotal_amount) }} |
|
|
|
--}}
@else
No Transactions
|
@endif