@extends('admin.layout') @section('title', 'Invoice ' . $invoice->invoice_number) @section('content')
| Description | Room | Nights | Rate | Amount |
|---|---|---|---|---|
|
{{ $src->room_type ?? ($src->booking->room->roomType->name ?? 'Room') }}@if($isExtendRow) (Extend)@endif
{{ $startDisp }} - {{ $endDisp }}
|
{{ $src->room_number ?? ($src->booking->room->room_number ?? '-') }} | {{ $nights }} | Rp {{ number_format($rate, 0, ',', '.') }} | Rp {{ number_format($amount, 0, ',', '.') }} |
|
{{ $name }} Room
@if(!empty($item['start']) && !empty($item['end']))
{{ \Carbon\Carbon::parse($item['start'])->format('d M Y') }} - {{ \Carbon\Carbon::parse($item['end'])->format('d M Y') }}
@endif
|
{{ $roomDisplay }} | {{ $item['nights'] }} | Rp {{ number_format($item['rate'], 0, ',', '.') }} | Rp {{ number_format($item['subtotal'], 0, ',', '.') }} |
|
{{ $invoice->room_type ?? ($invoice->booking->room->roomType->name ?? 'Room') }}@if($isExtend) (Extend)@endif
{{ $invoice->check_in_date->format('d M Y') }} - {{ $invoice->check_out_date->format('d M Y') }}
|
{{ $invoice->room_number }} | {{ $invoice->nights }} | @php $ratePerNight = (int) ($invoice->room_rate ?? ((($invoice->nights ?? 1) > 0) ? (int) (($invoice->subtotal ?? 0) / ($invoice->nights ?? 1)) : (int) ($invoice->subtotal ?? 0))); @endphpRp {{ number_format($ratePerNight, 0, ',', '.') }} | Rp {{ number_format($invoice->subtotal, 0, ',', '.') }} |
| Room Service - {{ $service->service_name }} | - | {{ $service->quantity }} | Rp {{ number_format($service->unit_price, 0, ',', '.') }} | Rp {{ number_format($service->total_price, 0, ',', '.') }} |