@extends('admin.layout_admin.main') @section('content')
@csrf @method('PUT')

Chi tiết đơn đặt phòng

In hóa đơn Xuất PDF
Thông tin khách hàng

Họ tên: {{ $booking->name }}

Email: {{ $booking->email }}

Điện thoại: {{ $booking->phone }}

Ghi chú: {{ $booking->notes ?? 'Không có' }}

Thời gian lưu trú

Ngày nhận phòng: {{ $booking->check_in_date->format('d/m/Y') }}

Ngày trả phòng: {{ $booking->check_out_date->format('d/m/Y') }}

Dịch vụ sử dụng
@if($booking->services->count())
    @foreach($booking->services as $service)
  • {{ $service->name }} - {{ number_format($service->price, 0, ',', '.') }} VNĐ
  • @endforeach
@else

Không sử dụng dịch vụ nào.

@endif
Phòng đã đặt
@foreach($booking->rooms as $room) @endforeach
Phòng Loại phòng Số đêm Giá / đêm Thành tiền
{{ $room->name }} {{ $room->roomType->name ?? '-' }} {{ $room->pivot->number_of_nights }} {{ number_format($room->pivot->price_per_night, 0, ',', '.') }} VNĐ {{ number_format($room->pivot->price_per_night * $room->pivot->number_of_nights, 0, ',', '.') }} VNĐ
Thông tin thanh toán

{{ number_format($booking->total_price, 0, ',', '.') }} VNĐ

{{ $booking->payment_method == 0 ? 'Thanh toán khi nhận phòng' : 'Thanh toán online' }}

@if ($booking->payment_method == 1)

Đã thanh toán

@else @endif
Quay lại danh sách
@endsection @section('css') @endsection @section('js') @endsection