@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'FO Journal List Transaction') @section('css') @endsection @section('content')
{{-- Room sales --}}
{{--
User:
--}}
@if (\Request::get('user_id') == 0) @endif @php $no = 1; $grandtotal_qty = 0; $grandtotal_amount = 0; $summary = array(); @endphp @if(count($transactions) > 0) @foreach($transactions as $key => $transaction) @php $total_qty = 0; $total_amount = 0; @endphp @foreach($transaction as $item_transaction) @if($item_transaction->jenis_deposit) @if (\Request::get('user_id') == 0) @endif @endif @if($item_transaction->jenis_pembayaran_id) @if (\Request::get('user_id') == 0) @endif @endif @endforeach @if (\Request::get('user_id') == 0) @endif @endforeach @if (\Request::get('user_id') == 0) @endif @else @endif
DateUserRmNo Bill No Metode Pembayaran Platform Voucher Department Local Amount Guest Name Time
{{$item_transaction->transaction_date->format('d-m-Y')}}{{@$item_transaction->user->nama}}{{@$item_transaction->invoice->nomor_kamar ?? '-'}} {{@$item_transaction->invoice->no_invoice ?? '-'}} {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_deposit] }} (Pembayaran / Deposit) {{ @$item_transaction->platform->nama }} {{ @$item_transaction->voucher }} FRONT OFFICE @php $total_amount -= $item_transaction->nominal; $grandtotal_amount -= $item_transaction->nominal; @endphp {{ ribuanWithComma(-1 * $item_transaction->nominal) }} {{@$item_transaction->booking->nama ?? '-'}} {{@$item_transaction->created_at->format('H:i:s')}}
{{$item_transaction->transaction_date->format('d-m-Y')}}{{@$item_transaction->user->nama}}{{@$item_transaction->invoice->nomor_kamar}} {{@$item_transaction->invoice->no_invoice}} {{ @config('custom.jenis_pembayaran')[$item_transaction->jenis_pembayaran_id] }} {{$item_transaction->tipe_pembayaran == 2 ? '(Refund)' : '(Settlement)'}} {{ @$item_transaction->platformPembayaran->nama }} {{ @$item_transaction->voucher }} FRONT OFFICE @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->created_at->format('H:i:s')}}
TOTAL {{ ribuanWithComma($total_amount) }} @php $summary[$key] = $total_amount; @endphp
Grand TOTAL {{ ribuanWithComma($grandtotal_amount) }}

Tidak Ada Transaksi Hari Ini


SUMMARY OF CASH PAYMENT
Cash{{ribuanWithComma(@$summary['Cash'] ? $summary['Cash'] : 0)}}
TOTAL{{ribuanWithComma(@$summary['Cash'] ? $summary['Cash'] : 0)}}

@foreach(config('custom.jenis_deposit') as $key => $val) @if(in_array($key, [1,3])) @endif @endforeach @foreach($platform_pembayarans as $platform_pembayaran) @endforeach
SUMMARY OF PAYMENT
{{$val}}{{ribuanWithComma(@$summary[config('custom.jenis_deposit.'.$key)] ?? 0)}}
{{$platform_pembayaran->nama}} {{ribuanWithComma(@$summary[$platform_pembayaran->id] ?? 0)}}

@if (\Request::get('user_id') == 0) {{-- --}} @foreach(config('custom.jenis_deposit') as $key => $val) @if(in_array($key, [1, 2, 3, 4, 5])) @endif @endforeach @if (count($sum_per_user)>0) @foreach ($sum_per_user as $key=>$item) @foreach(config('custom.jenis_deposit') as $key => $val) @if(in_array($key, [1, 2, 3, 4, 5])) @if (isset($item[$key]['sum'])) @else @endif @endif @endforeach @endforeach @endif
SUMMARY PER USER
User{{$val}}
{{$item['name']}}{{ribuanWithComma($item[$key]['sum']*-1)}}0
@endif
{{-- get tanggal --}} @php $tanggal = explode(' - ', \Request::get('tanggal') ?? getSystemDate().' - '.getSystemDate()); $tanggal[0] = formatDate($tanggal[0]); $tanggal[1] = formatDate($tanggal[1]); @endphp {{-- closing get tanggal --}} @endsection @section('js') @endsection