@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Venue Bill | Draft Venue Bill') @section('css') @endsection @php $hotel_only = in_array(propertiTipe(), [1]); $hotel_n_budget = in_array(propertiTipe(), [1,2]); $all = in_array(propertiTipe(), [1,2,3]); @endphp @section('content')
Venue : {{@$booking->venue}}
Name : {{ @$booking->nama }}
Arrival Date : {{ @$booking->start_time }}
Departure Date : {{ @$booking->end_time }}
Bill No. : {{ @$invoice->kode }}
Reservation No. : {{@$booking->kode}}
@if(@$booking->venue != null) @if($booking->status_id == 2) @php $status_button = ''; if(@$invoice_kamar->status_booking == 4){ $status_button = 'disabled'; } @endphp
@endif @endif
@csrf
@php $idx_item = 0; $refunds = array(); @endphp @if(count($invoice_details) > 0) {{-- Fetch Data Transaksi Yang Sudah Masuk Invoice Detail --}} @if (!in_array(@$invoice->bookings->segmentasi_rate_code, ['10', '11'])) @if($invoice_details) @foreach ($invoice_details as $key=>$invoice_detail) {{-- BOOKING DETAIL --}} @if($invoice_detail->booking_detail_id) @if ($invoice_detail->total != 0) @php $diskon = null; $tipediskon = null; $this_harga_normal = 0; if(@$invoice_detail->bookingDetail){ $diskontipe = @$invoice_detail->bookingDetail->disctype; $tipediskon = @$diskontipe; $diskon = @$invoice_detail->bookingDetail->diskon; if ($diskontipe == 1) { $this_calculate = 100/(100-$diskon)*@$invoice_detail->total; $this_harga_normal = $this_calculate; }else{ $this_harga_normal = $diskon+@$invoice_detail->total; } } @endphp {{-- --}} {{-- @if (simpleBill()) @endif --}} @endif {{-- SHOP TRANSACTION --}} @elseif($invoice_detail->shop_transaction_id) @php $harga_satuan = $invoice_detail->qty ? $invoice_detail->total/$invoice_detail->qty : 0 ; @endphp @if($invoice_kamar->status_booking != 2) @if(\Session::get('backdate')) @if(\Session::get('backdate') == $invoice_detail->date) @else @endif @else @endif @else @endif {{-- BOOKING DEPOSIT --}} @elseif($invoice_detail->booking_deposit_id) @php $description_invoice_deposit = ''; if (@$invoice_detail->bookingDeposit->jenis_deposit != 5) { $description_invoice_deposit = $invoice_detail->description .' '.( $invoice_detail->bookingDeposit->jenis_deposit != 1 ? config('custom.jenis_deposit')[@$invoice_detail->bookingDeposit->jenis_deposit].' '.@$invoice_detail->bookingDeposit->bank : '' ).' '.(@$invoice_detail->bookingDeposit->platform->nama ?? '').' '.(@$invoice_detail->bookingDeposit->voucher ? '/'.@$invoice_detail->bookingDeposit->voucher : '').' '.(@$invoice_detail->bookingDeposit->description ? '- '.@$invoice_detail->bookingDeposit->description : '' ); }else{ $description_invoice_deposit = $invoice_detail->description .' '. config('custom.jenis_deposit')[@$invoice_detail->bookingDeposit->jenis_deposit].' - '.(@$invoice_detail->bookingDeposit->transfer ? 'Transfer' : (@$invoice_detail->bookingDeposit->segmentation ? config('custom.segment_ratecodes')[@$invoice_detail->bookingDeposit->segmentation] : '')).' '.(@$invoice_detail->bookingDeposit->platform->nama ?? '').' '.(@$invoice_detail->bookingDeposit->voucher ? '/'.@$invoice_detail->bookingDeposit->voucher : '').' '.(@$invoice_detail->bookingDeposit->description ? '- '.@$invoice_detail->bookingDeposit->description : '' ); } @endphp @if($invoice_kamar->status_booking != 2) @if(\Session::get('backdate')) @if(\Session::get('backdate') == $invoice_detail->date) @else @endif @else @endif @else @endif @endif @php $idx_item++; @endphp @endforeach @endif @endif @else @endif
# Type | User Date Room Number Qty Description / Voucher Per Item Total Action
@if(($invoice_detail->jenis_transaksi == 1)) @endif Generate | System {{date('d-m-Y', strtotime($invoice_detail->date))}} {{$invoice_detail->room_no}} 1 {{$invoice_detail->description}}{{ribuan($invoice_detail->harga_satuan)}}{{ribuanWithComma($invoice_detail->harga_satuan)}} {!! $diskon ? ($tipediskon == 1 ? '
(Diskon '.$diskon.'% x '.ribuanWithComma($this_harga_normal).')' : '
('.ribuanWithComma($this_harga_normal).' - ( '.ribuanWithComma($diskon).' diskon) )' ) : '' !!}
{{-- {{ribuan($invoice_detail->total)}} --}} {{ribuanWithComma($invoice_detail->total)}} @if ($invoice_detail->jenis_transaksi == 1) @php $balance_due += $invoice_detail->total; @endphp @endif @if (\Auth::user()->isAdmin()) @endif
Tax {{ @$invoice_detail->bookingDetail ? ribuanWithComma($invoice_detail->bookingDetail->per_item_tax) : '-' }}
Service {{ @$invoice_detail->bookingDetail ? ribuanWithComma($invoice_detail->bookingDetail->per_item_services) : '-' }}
Real Price {{ @$invoice_detail->bookingDetail ? ribuanWithComma($invoice_detail->bookingDetail->per_item_real) : '-' }}
@if(($invoice_detail->jenis_transaksi == 1)) @endif {{ config('custom.jenis_transaksi')[$invoice_detail->shopTransaction->jenis_transaksi] }} | {{ @$invoice_detail->shopTransaction->user->nama }} {{ date('d-m-Y',strtotime($invoice_detail->date)) }} {{@$invoice_detail->room_no}} {{$invoice_detail->qty}} {{@$invoice_detail->description}} {{-- {{ribuan($harga_satuan)}} --}} {{ribuanWithComma($harga_satuan)}} {{-- {{ ribuan($invoice_detail->total) }} --}} {{ ribuanWithComma($invoice_detail->total) }} @if ($invoice_detail->jenis_transaksi == 1) @php $balance_due += $invoice_detail->total; @endphp @endif {{-- --}} @if (\Auth::user()->isAdmin()) @endif
@if(($invoice_detail->jenis_transaksi == 1)) {{-- --}} @endif {{ config('custom.jenis_transaksi')[$invoice_detail->bookingDeposit->jenis_transaksi] }} | {{@$invoice_detail->bookingDeposit->user->nama}} {{ date('d-m-Y', strtotime($invoice_detail->date)) ?? '-' }} {{@$invoice_detail->room_no}} {{-- {{@$invoice_detail->bookingDeposit->user->nama}} --}} {{-- {{ $invoice_detail->description }} {{ config('custom.jenis_deposit')[@$invoice_detail->bookingDeposit->jenis_deposit].' '.@$invoice_detail->bookingDeposit->bank }} {{@$invoice_detail->bookingDeposit->platform->nama ?? ''}} {{ @$invoice_detail->bookingDeposit->voucher ? '/'.@$invoice_detail->bookingDeposit->voucher : '' }} {{ @$invoice_detail->bookingDeposit->description ? '- '.@$invoice_detail->bookingDeposit->description : '' }} --}} {{ $description_invoice_deposit }} {{-- {{ribuan($invoice_detail->total *-1 )}} --}} {{ribuanWithComma($invoice_detail->total *-1 )}} @if ($invoice_detail->jenis_transaksi == 1) @php $balance_due -= $invoice_detail->total; @endphp @endif {{-- @if(\Session::get('shift')) --}} {{-- @csrf --}} {{-- @endif --}} @if (\Auth::user()->isAdmin()) @endif @if (\Auth::user()->isAdmin()) @endif

Belum Ada Transaksi

Balance Due | {{ribuanWithComma(@$balance_due)}}
{{-- Form delete shop --}}
@csrf
{{-- Form delete shop --}}
@csrf
{{-- Form delete deposit --}}
@csrf
{{-- Form delete pembayaran pos --}}
@csrf
@csrf
@csrf
{{-- -------------------------------------------------------------- Transaksi -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Deposit -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Transfer Bill To Master Bill -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- Modal Transfer TO Nonstay Bill -------------------------------------------------------------- --}} {{-- -------------------------------------------------------------- History Transfer Modal -------------------------------------------------------------- --}} {{-- MODAL CUSTOM NAME AND CUSTOM COMPANY NAME --}} @endsection @section('js') {{-- Script for tombol checkout --}} @endsection