@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'FO Transaction Journal') @section('css') @endsection @section('content')
@php $total_array_sum = 0; @endphp @foreach (config('custom.jenis_pembayaran') as $key=>$item) @if (@$summary_transactions[$key]) @if ($key == 2) @if (isset($summary_transactions[$key])) @foreach ($summary_transactions[$key] as $tra) @php $total_array_sum += @$tra['nominal']; @endphp @endforeach @endif @else @php $total_array_sum += @$summary_transactions[$key]; @endphp @endif @endif @endforeach @if (@$summary_transactions['paid_outs']) @php $total_array_sum -= @$summary_transactions['paid_outs']; @endphp @endif
SUMMARY OF PAYMENT
{{$item}}
   {{$tra['nama']}}{{ribuanWithComma(@$tra['nominal']*-1)}}
{{$item}}{{ribuanWithComma(@$summary_transactions[$key]*-1)}}
Paid Out{{ribuanWithComma(@$summary_transactions['paid_outs'])}}
TOTAL{{ribuanWithComma($total_array_sum*-1)}}
{{-- Room sales --}}
{{--
@csrf Metode Pembayaran:
--}}
@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) {{-- --}} @if ($item_transaction->jenis_pembayaran_id == 5) @if ($item_transaction->segment != 14) @else @endif @else @endif @endif @if($item_transaction->jenis_deposit) {{-- --}} {{-- --}} @if ($item_transaction->jenis_deposit == 5) @if ($item_transaction->segmentation != 14) @else @endif @else @endif @endif @if ($item_transaction->menu_id) @endif @endforeach @endforeach @else @endif
Number Date Room Number Bill Number Payment Method Platform Voucher Department Qty Amount Guest Name
{{$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){{ @config('custom.segment_ratecodes')[$item_transaction->ledger->main_segment] }}{{ @config('custom.segment_ratecodes')[14] }}{{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_pembayaran_id] }}{{ @$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}}
{{$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] }}{{ @config('custom.segment_ratecodes')[$item_transaction->ledger->main_segment] }}{{ @config('custom.segment_ratecodes')[14] }}{{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }}{{ @$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}}
{{@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}}
TOTAL {{ ribuanWithComma($total_qty) }} {{ ribuanWithComma($total_amount) }}
Grand TOTAL {{ ribuanWithComma($grandtotal_qty) }} {{ ribuanWithComma($grandtotal_amount) }}

No Data

{{-- get tanggal --}} @php $periode_transaksi = explode(' - ', \Request::get('periode_transaksi') ?? getSystemDate().' - '.getSystemDate()); $periode_transaksi[0] = formatDate($periode_transaksi[0]); $periode_transaksi[1] = formatDate($periode_transaksi[1]); @endphp {{-- closing get tanggal --}} @endsection @section('js') @endsection