@extends('admin-layouts.master') @section('content')

{{$title}}

Booking Baru
Total Booking
{{ $bookings->total() }}
Check-in Hari Ini
{{ \App\Models\CheckIn::whereDate('check_in_time', today())->count() }}
Sedang Menginap
{{ $bookings->where('status', 'checked_in')->count() }}
Pendapatan Bulan Ini
Rp {{ number_format($monthlyRevenue ?? 0, 0, ',', '.') }}
Filter & Pencarian
Reset
Data Booking
@forelse ($bookings as $booking) @empty @endforelse
ID Tamu Kamar Tipe Plan Check-in Plan Check-out Durasi Total Status Aksi
#{{ $booking->id }} {{ $booking->guest->name ?? '' }}
{{ $booking->guest->phone ?? 'No phone' }}
@foreach($booking->bookingDetails as $detail) {{ $detail->room->room_number ?? 'N/A' }}
{{ $detail->room->typeRoom->name ?? 'Unknown Type' }} @endforeach
@if($booking->booking_type == 'daily') Harian @elseif($booking->booking_type == 'hourly') Per Jam @elseif($booking->booking_type == 'per_person') Per Orang @else Daily @endif {{ $booking->check_in_date_formatted }} {{ $booking->check_out_date_formatted }} @if($booking->booking_type == 'daily' || !$booking->booking_type) {{ $booking->nights }} malam @elseif($booking->booking_type == 'hourly') {{ $booking->duration_hours }} jam @elseif($booking->booking_type == 'per_person') {{ $booking->guest_count }} orang @if($booking->nights > 0)
{{ $booking->nights }} malam @endif
@endif
Rp {{ number_format($booking->total_amount, 0, ',', '.') }} @if($booking->status == 'booked') Booked @elseif($booking->status == 'checked_in') Checked In @elseif($booking->status == 'checked_out') Checked Out @else Cancelled @endif
@if($booking->canCheckIn()) @endif @if($booking->canCheckOut()) @endif @if($booking->status == 'booked') @endif @if($booking->status == 'checked_in') @if($booking->hasInvoice()) @else @endif @endif @if($booking->status == 'checked_out') @if($booking->hasInvoice()) @else @endif @endif

Tidak ada data booking ditemukan

Buat Booking Baru
@if($bookings->hasPages())
{{ $bookings->appends(request()->query())->links() }}
@endif
@push('scripts') @endpush @endsection