Customer ID:
{{ $billing->customer->customer_id ?? 'no customer id' }}
Number:
{{ $billing->billing_number ?? 'no number' }}
Address:
{{ $billing->customer->address ?? 'no data' }}
Periode:
{{ $billing->billing_periode->name ?? 'no data' }}
Paket:
{{ $billing->paket_name ?? 'no data' }}
Price:
@if ($billing->paket_price === 0)
{{ __('Free') }}
@else
@moneyIDR($billing->paket_price)
@endif
@if ($websystem->enable_tax === 'true')
Tax {{ $websystem->tax_rate }}%:
@moneyIDR($billing->tax)
Total Bill:
@moneyIDR($billing->paket_price + $billing->tax)
@endif
User Created:
{{ $billing->created_name ?? 'no data' }}
Status:
@if ($billing->status === 'LS')
{{ __('billing.state.lunas') }}
{{ __('on ') }}
{{ Carbon\Carbon::parse($billing->payment_time)->translatedFormat('l, d F Y H:i:s') }}
@elseif ($billing->status === 'PL')
{{ __('billing.state.paylater') }}
{{ __('on ') }}
@php
$otherDate = Carbon\Carbon::parse($billing->pay_later);
$nowDate = Carbon\Carbon::now();
$result = $nowDate->gt($otherDate);
@endphp
{{ Carbon\Carbon::parse($billing->pay_later)->translatedFormat('l, d F Y') }}
@else
{{ __('billing.state.belum-lunas') }}
@endif
@if ($billing->status === 'LS' || $billing->status === 'PL')
Teller:
{{ $billing->teller_name ?? 'No User' }}
@endif
@if ($billing->status === 'LS' && $billing->paket_price > 0)
Payment Methode:
{{ $billing->receipt->payment_methode ?? 'No Payment Methode' }}
@if ($billing->receipt->payment_methode === 'transfer')
- {{ $billing->receipt->account_name ?? 'No Name' }} ( {{ $billing->receipt->bank_name ?? 'No Bank' }} - {{ $billing->receipt->account_number ?? 'No Number' }} )
@endif
@endif
@if ($billing->paket_price > 0 && $billing->status === 'LS' && $billing->receipt->payment_methode === 'transfer')
Reference Id:
{{ $billing->receipt->reference_id ?? 'No Payment Methode' }}
@endif
@if($totalPrice > 0)