@if(!empty($settings['business_logo_path'])) @endif

{{ $settings['business_name'] }}

{{ $settings['business_address'] }}

INVOICE
Kepada Yth :
{{ $invoice->customer->name }}
{!! nl2br(e($invoice->customer->address)) !!}
@if($invoice->due_date) @endif
Nomor Invoice {{ $invoice->invoice_number }}
Tanggal {{ $invoice->invoice_date->format('d/m/Y') }}
Jatuh Tempo {{ $invoice->due_date->format('d/m/Y') }}
@if($invoice->service_type === 'airline') @elseif($invoice->service_type === 'train') @elseif($invoice->service_type === 'hotel') @elseif($invoice->service_type === 'rentcar') @elseif($invoice->service_type === 'ship') @else @endif @foreach($invoice->items as $index => $item) @if($invoice->service_type === 'airline') @elseif($invoice->service_type === 'train') @elseif($invoice->service_type === 'hotel') @elseif($invoice->service_type === 'rentcar') @elseif($invoice->service_type === 'ship') @else @endif @endforeach
NO. MASKAPAI DESKRIPSI RUTE PENUMPANG QTY HARGA TOTAL
NO. KERETA DESKRIPSI RUTE PENUMPANG QTY HARGA TOTAL
NO. HOTEL DESKRIPSI CHECK IN CHECK OUT QTY HARGA TOTAL
NO. MOBIL DESKRIPSI DURASI QTY HARGA/HARI TOTAL
NO. DESKRIPSI RUTE PENUMPANG QTY HARGA TOTAL
NO. KATEGORI DESKRIPSI QTY HARGA SATUAN HARGA TOTAL
{{ $index + 1 }} {{ $item->details['airline'] ?? '-' }} {{ $item->description }} {{ $item->details['route'] ?? '-' }} {{ $item->details['passenger'] ?? '-' }} {{ (int)$item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}{{ $index + 1 }} {{ $item->details['train'] ?? '-' }} {{ $item->description }} {{ $item->details['route'] ?? '-' }} {{ $item->details['passenger'] ?? '-' }} {{ (int)$item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}{{ $index + 1 }} {{ $item->details['hotel'] ?? '-' }} {{ $item->description }} {{ $item->details['check_in'] ?? '-' }} {{ $item->details['check_out'] ?? '-' }} {{ (int)$item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}{{ $index + 1 }} {{ $item->details['car'] ?? '-' }} {{ $item->description }} {{ $item->details['duration'] ?? '-' }} {{ (int)$item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}{{ $index + 1 }} {{ $item->description }} {{ $item->details['route'] ?? '-' }} {{ $item->details['passenger'] ?? '-' }} {{ (int)$item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}{{ $index + 1 }} {{ $item->category?->name ?? '-' }} {{ $item->description }} @if($item->details)
@php $detailsList = []; @endphp @foreach($item->details as $key => $value) @if($value && !in_array($key, ['nta', 'supplier'])) @php $detailsList[] = ucwords(str_replace('_', ' ', $key)) . ": " . $value; @endphp @endif @endforeach {{ implode(' | ', $detailsList) }}
@endif
{{ number_format($item->quantity, 1, ',', '.') }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}