@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
{{-- @if (simpleBill())
@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}}
{{-- {{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($invoice_kamar->status_booking != 2)
@if(\Session::get('backdate'))
@if(\Session::get('backdate') == $invoice_detail->date)
{{--
--}}
@else
@if (\Auth::user()->isAdmin())
@endif
@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_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($invoice_kamar->status_booking != 2)
@if(\Session::get('backdate'))
@if(\Session::get('backdate') == $invoice_detail->date)
{{-- @if(\Session::get('shift')) --}}
{{-- --}}
{{-- @endif --}}
@else
@if (\Auth::user()->isAdmin())
@endif
@endif
@else
@if (\Auth::user()->isAdmin())
@endif
@endif
@else
@endif
@endif
@php $idx_item++; @endphp
@endforeach
@endif
@endif
@else