@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Non Stay Folio') @section('css') @endsection @section('content')
@if(count($folio_dummies) > 0) @foreach($folio_dummies as $idx => $folio_dummy) @if($idx > 0)
@endif
Nomor Bill : {{ $folio_dummy->no_bill }}
Jenis Bill : {{ $folio_dummy->jenis_nonstay_folio == 1 ? config('custom.jenis_nonstay_folio')[$folio_dummy->jenis_nonstay_folio] : @$folio_dummy->shop->nama}}
Created Date : {{ $folio_dummy->created_at->format('d-m-Y') }}
Status : {{ config('custom.status_folio_dummy')[$folio_dummy->status] }}
Nomor Identitas : {{ $folio_dummy->guestProfile->id_cardno }} {{ $folio_dummy->guestProfile->id_cardtype ? '('.@config('custom.jenis_identitas')[$folio_dummy->guestProfile->id_cardtype].')' : '' }}
Nama : {{$folio_dummy->guestProfile->title ? $folio_dummy->guestProfile->title.' ' : ''}}{{$folio_dummy->guestProfile->name}}
Alamat : {{$folio_dummy->guestProfile->address ? $folio_dummy->guestProfile->address.',' : ''}} {{$folio_dummy->guestProfile->city ? $folio_dummy->guestProfile->city.',' : ''}} {{$folio_dummy->guestProfile->country ? $folio_dummy->guestProfile->country : ''}}
@csrf
@php $no=1; $idx_item=0; $balance_due = 0; @endphp @if(count($folio_dummy->details) > 0 || count($folio_dummy->deposits) > 0 || count($folio_dummy->shopTransactions) > 0) @if($folio_dummy->deposits) @foreach($folio_dummy->deposits as $deposit) @php $no++; $idx_item; @endphp @endforeach @endif @if($folio_dummy->shopTransactions) @foreach($folio_dummy->shopTransactions as $shop_transaction) @php $harga_satuan = $shop_transaction->total_biaya / $shop_transaction->jumlah; @endphp @php $no++; $idx_item++; @endphp @endforeach @endif @else @endif
# Type | User Date Qty Description / Voucher Per Item Total
@if(($deposit->jenis_transaksi == 1) && is_null($deposit->deleted_at) ? 'checked' : '') jenis_transaksi == 1) && is_null($deposit->deleted_at) ? 'checked' : ''}} > @endif jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> @php $bank_transfer = @$deposit->transferAkunting->rekeningBank->nama_bank.' A.N. '.$deposit->nama; @endphp jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}}> {{ config('custom.jenis_transaksi')[$deposit->jenis_transaksi] }} | {{ $deposit->user->nama }} {{ date('Y/m/d', strtotime($deposit->transaction_date)) }} Deposit {{ config('custom.jenis_deposit')[$deposit->jenis_deposit].' '.($deposit->jenis_deposit != 3 ? @$deposit->platform->nama.' '.$deposit->voucher : $bank_transfer) }} jenis_transaksi == 1) && is_null($deposit->deleted_at) ? '' : 'disabled'}} > @if($deposit->jenis_transaksi == 1) (-) {{ ribuan($deposit->nominal) }} @php $balance_due -= $deposit->nominal; @endphp @else {{ ribuan($deposit->nominal) }} @php $balance_due += $deposit->nominal; @endphp @endif
@if(($shop_transaction->jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? 'checked' : '') jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? 'checked' : ''}} > @endif jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}} > {{ config('custom.jenis_transaksi')[$shop_transaction->jenis_transaksi] }} | {{ $shop_transaction->user->nama }} {{ date('Y/m/d',strtotime($shop_transaction->transaction_date)) }} jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}}> {{ ribuan($shop_transaction->jumlah) }} {{@$shop_transaction->menu->nama}} {{ ribuan($harga_satuan) }} jenis_transaksi == 1) && is_null($shop_transaction->deleted_at) ? '' : 'disabled'}} > @if($shop_transaction->jenis_transaksi == 1) {{ ribuan($shop_transaction->total_biaya) }} @php $balance_due += $shop_transaction->total_biaya; @endphp @else (-) {{ ribuan($shop_transaction->total_biaya) }} @php $balance_due -= $shop_transaction->total_biaya; @endphp @endif
Tidak Ada Transaksi
@endforeach @else
@endif
@endsection @section('js') @endsection