@extends('layouts.app') @section('page-title', 'Reservasi ' . $reservation->reservation_code) @section('content')

{{ $reservation->reservation_code }}

{{ ucfirst(str_replace('_', ' ', $reservation->status)) }}
@if($reservation->status === 'pending')
@csrf @method('PATCH')
@endif @if(in_array($reservation->status, ['pending', 'confirmed'])) Ubah
@csrf @method('PATCH')
@endif

Detail Reservasi

Kode Reservasi

{{ $reservation->reservation_code }}

Sumber Pemesanan

{{ ucfirst(str_replace('_', ' ', $reservation->source)) }}

Tanggal Check-in

{{ $reservation->check_in_date->format('d F Y') }}

@if($reservation->checked_in_at)

Check-in pada {{ $reservation->checked_in_at->format('H:i') }}

@endif

Tanggal Check-out

{{ $reservation->check_out_date->format('d F Y') }}

@if($reservation->checked_out_at)

Check-out pada {{ $reservation->checked_out_at->format('H:i') }}

@endif

Durasi

{{ $reservation->months }} bulan

Jumlah Tamu

{{ $reservation->number_of_guests }} orang

@if($reservation->early_checkin_fee > 0)

Biaya Check-in Lebih Awal

Rp {{ number_format($reservation->early_checkin_fee, 0, ',', '.') }}

@endif @if($reservation->late_checkout_fee > 0)

Biaya Check-out Terlambat

Rp {{ number_format($reservation->late_checkout_fee, 0, ',', '.') }}

@endif @if($reservation->notes)

Catatan

{{ $reservation->notes }}

@endif

Riwayat Pembayaran

{{ ucfirst($reservation->payment_status) }} @if($reservation->payment_status !== 'paid') + Tambah Pembayaran @endif
@forelse($reservation->payments as $payment) @empty @endforelse @if($reservation->payments->count()) @if($reservation->remaining_balance > 0) @endif @endif
Tanggal Metode Ref Jumlah
{{ $payment->payment_date->format('d M Y') }} {{ $payment->payment_method_label }} {{ $payment->reference_number ?: '—' }} Rp {{ number_format($payment->amount, 0, ',', '.') }}
Belum ada pembayaran tercatat
Total Dibayar Rp {{ number_format($reservation->total_paid, 0, ',', '.') }}
Sisa Rp {{ number_format($reservation->remaining_balance, 0, ',', '.') }}

Tamu

{{ strtoupper(substr($reservation->guest->full_name, 0, 1)) }}
{{ $reservation->guest->full_name }}

{{ $reservation->guest->phone }}

Kamar

Nomor Kamar {{ $reservation->room->room_number }}
Tipe {{ $reservation->room->roomType->name }}
Lantai {{ $reservation->room->floor }}
Harga/bulan Rp {{ number_format($reservation->room->roomType->price_per_month, 0, ',', '.') }}

Ringkasan

Kamar ({{ $reservation->months }} bulan) Rp {{ number_format($reservation->room->roomType->price_per_month * $reservation->months, 0, ',', '.') }}
@if($reservation->early_checkin_fee > 0)
Check-in Lebih Awal Rp {{ number_format($reservation->early_checkin_fee, 0, ',', '.') }}
@endif @if($reservation->late_checkout_fee > 0)
Check-out Terlambat Rp {{ number_format($reservation->late_checkout_fee, 0, ',', '.') }}
@endif
Total Rp {{ number_format($reservation->total_price, 0, ',', '.') }}
@if(!$reservation->invoice && in_array($reservation->status, ['checked_in', 'checked_out']))
@csrf
@elseif($reservation->invoice) @endif
@endsection