| Nama | {{ $booking->guest->name ?? $booking->guest_name ?? '-' }} | {{ $booking->guest->email ?? $booking->guest_email ?? '-' }} | |
|---|---|---|---|
| Telepon | {{ $booking->guest->phone ?? $booking->guest_phone ?? '-' }} | Permintaan Khusus | {{ $booking->special_requests ?? '-' }} |
| Kode Booking | {{ $booking->booking_code ?? '-' }} | Status | @php $st = strtolower($booking->status ?? 'pending'); $cls = 'badge badge-' . $st; @endphp{{ ucfirst($booking->status ?? 'pending') }} |
|---|---|---|---|
| Dibuat Pada | @if($booking->booking_date) {{ \Carbon\Carbon::parse($booking->booking_date)->format('d/m/Y H:i') }} @else {{ $booking->created_at ? $booking->created_at->format('d/m/Y H:i') : '-' }} @endif | Sumber Booking | {{ ($booking->booking_source ?? '') === '' ? 'Internal' : $booking->booking_source }} |
| Referensi Sumber | {{ $booking->source_reference ?? '-' }} | Oleh Petugas | {{ $booking->user->name ?? 'System' }} |
| Hotel | {{ $settings->hotel_name ?? ($booking->room->hotel->name ?? '-') }} | Kamar | {{ $booking->room->room_number ?? $booking->unit_number ?? '-' }} |
|---|---|---|---|
| Tipe | {{ $booking->room->type ?? '-' }} | Tamu | {{ $booking->guests ?? 1 }} |
| Check-in | {{ $booking->check_in_date ? \Carbon\Carbon::parse($booking->check_in_date)->format('d/m/Y') : '-' }} | Check-out | {{ $booking->check_out_date ? \Carbon\Carbon::parse($booking->check_out_date)->format('d/m/Y') : '-' }} |
| Durasi | @php $ci = $booking->check_in_date ? \Carbon\Carbon::parse($booking->check_in_date) : null; $co = $booking->check_out_date ? \Carbon\Carbon::parse($booking->check_out_date) : null; $nights = ($ci && $co) ? $ci->diffInDays($co) : null; @endphp{{ $nights !== null ? ($nights . ' malam') : '-' }} | Total Harga | Rp {{ number_format($booking->total_price ?? 0, 0, ',', '.') }} |