{{ $settings['business_address'] }}
| 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, ',', '.') }} | @elseif($invoice->service_type === 'train'){{ $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, ',', '.') }} | @elseif($invoice->service_type === 'hotel'){{ $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, ',', '.') }} | @elseif($invoice->service_type === 'rentcar'){{ $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, ',', '.') }} | @elseif($invoice->service_type === 'ship'){{ $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, ',', '.') }} | @else{{ $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, ',', '.') }} | @endif