@if(count($bills) > 0)
@php
$total_qty = 0;
$total_sales = 0;
$total_payment = 0;
@endphp
@foreach($bills as $bill)
@foreach($bill as $key => $item_bill)
@if($item_bill->booking_detail_id)
{{ formatDate($item_bill->date) }} |
{{ $item_bill->room_no }} |
{{ @$item_bill->invoice->no_invoice }} |
FO |
{{ $item_bill->description }} |
{{ $item_bill->qty }} |
{{ ($item_bill->total) }} |
0 |
{{ $item_bill->created_at ? $roomrate->created_at->format('H:i:s') : '' }} |
{{ @$item_bill->invoice->nama_pelanggan }} |
@php
$total_qty += $item_bill->qty;
$total_sales += $item_bill->total;
$total_payment += 0;
@endphp
@endif
@if($item_bill->menu_id)
{{ formatDate($item_bill->transaction_date) }} |
{{ @$item_bill->kamar->no_kamar }} |
{{ @$item_bill->main_invoice->no_invoice }} |
FO |
{{ @$item_bill->menu->nama }} |
{{ $item_bill->jenis_transaksi == 1 ? '' : '-' }}{{ $item_bill->jumlah }} |
{{ $item_bill->jenis_transaksi == 1 ? '' : '-' }}{{ ($item_bill->grand_total) }} |
0 |
{{ $item_bill->created_at ? $item_bill->created_at->format('H:i:s') : '' }} |
{{ @$item_bill->main_invoice->nama_pelanggan }} |
@php
if ($item_bill->jenis_transaksi == 1) {
$total_qty += $item_bill->jumlah;
$total_sales += $item_bill->grand_total;
$total_payment += 0;
}else {
$total_qty -= $item_bill->jumlah;
$total_sales -= $item_bill->grand_total;
$total_payment -= 0;
}
@endphp
@endif
@if($item_bill->cart_id)
{{ formatDate($item_bill->transaction_date) }} |
{{ @$invoice_array[$item_bill->booking_id][$item_bill->room_index]->nomor_kamar }} |
{{ @$invoice_array[$item_bill->booking_id][$item_bill->room_index]->no_invoice }} |
POS |
Outlet Bill : {{ @$item_bill->cart->order_flag }} |
1 |
{{ ($item_bill->nominal) }} |
0 |
{{ $item_bill->created_at ? $item_bill->created_at->format('H:i:s') : '' }} |
{{ @$item_bill->main_invoice->nama_pelanggan }} |
@php
$total_qty += $item_bill->jumlah;
$total_sales += $item_bill->nominal;
$total_payment += 0;
@endphp
@endif
@if($item_bill->jenis_deposit)
{{ formatDate($item_bill->transaction_date) }} |
{{ @$invoice_array[$item_bill->booking_id][$item_bill->room_index]->nomor_kamar }} |
{{ @$invoice_array[$item_bill->booking_id][$item_bill->room_index]->no_invoice }} |
FO |
Pembayaran {{ config('custom.jenis_deposit')[$item_bill->jenis_deposit].' '.$item_bill->bank }} A.N. {{ $item_bill->nama }} |
{{ $item_bill->jenis_transaksi == 1 ? '' : '-' }}1 |
0 |
{{ $item_bill->jenis_transaksi == 1 ? '-' : '' }}{{ ($item_bill->nominal) }} |
{{ $item_bill->created_at ? $item_bill->created_at->format('H:i:s') : '' }} |
{{ @$item_bill->booking->nama }} |
@php
if ($item_bill->jenis_transaksi == 1) {
$total_qty += 1;
$total_sales += 0;
$total_payment -= $item_bill->nominal;
}else {
$total_qty -= 1;
$total_sales -= 0;
$total_payment += $item_bill->nominal;
}
@endphp
@endif
@if($item_bill->jenis_pembayaran_id)
{{ formatDate($item_bill->transaction_date) }} |
{{ @$item_bill->invoice->nomor_kamar }} |
{{ @$item_bill->invoice->no_invoice }} |
FO |
{{$item_bill->tipe_pembayaran == 1 ? 'Pembayaran' : 'Refund'}} {{ config('custom.jenis_pembayaran')[$item_bill->jenis_pembayaran_id].' '.$item_bill->bank }} A.N. {{ @$item_bill->booking->nama }} |
1 |
0 |
{{$item_bill->tipe_pembayaran == 1 ? '-' : ''}}{{ ($item_bill->nominal) }} |
{{ $item_bill->created_at ? $item_bill->created_at->format('H:i:s') : '' }} |
{{ @$item_bill->booking->nama }} |
@php
if($item_bill->tipe_pembayaran == 1){
$total_qty += 1;
$total_sales += 0;
$total_payment -= $item_bill->nominal;
}
else{
$total_qty += 1;
$total_sales += 0;
$total_payment += $item_bill->nominal;
}
@endphp
@endif
@endforeach
@endforeach
TOTAL |
{{($total_qty)}} |
{{($total_sales)}} |
{{($total_payment)}} |
|
@else
Tidak Ada Transaksi Hari Ini
|
@endif