@extends('layouts.app') @section('content')

All Bookings

Manage and track all booking requests

Bookings ({{ $bookings->total() }})
Show per page:
@if($bookings->count() > 0)
@foreach($bookings as $booking) @if(is_object($booking) && isset($booking->is_group) && $booking->is_group) {{-- Grouped Subscription Booking --}} {{-- Expandable Slots --}} @else {{-- Regular Booking --}} @endif @endforeach
Booking Reference Customer Resource/Property Dates Participants Amount Status Payment Actions
{{ $booking->booking_reference }}
{{ $booking->created_at->format('M d, Y H:i') }}
{{ $booking->slots_count }} Slots
{{ $booking->customer_name }}
{{ $booking->customer_email }} @if($booking->subscription)
Subscription @endif
@if($booking->bookingResource)
{{ $booking->bookingResource->name }}
{{ ucfirst($booking->bookingResource->resource_type) }} @elseif($booking->bookingProperty)
{{ $booking->bookingProperty->name }}
{{ $booking->bookingProperty->type }} @endif
Multiple Dates
{{ $booking->slots->first()->start_datetime->format('M d') }} - {{ $booking->slots->last()->start_datetime->format('M d, Y') }}
{{ $booking->participants }} {{ Str::plural('participant', $booking->participants) }}
RM {{ number_format($booking->total_price, 2) }}
@if($booking->amount_paid > 0 && $booking->amount_paid < $booking->total_price) RM {{ number_format($booking->amount_paid, 2) }} paid @endif
{{ ucfirst($booking->status) }} {{ ucfirst($booking->payment_status) }}
@foreach($booking->slots as $index => $slot) @endforeach
Slot # Date & Time Duration Actions
Slot {{ $index + 1 }} {{ $slot->start_datetime->format('M d, Y') }}
{{ $slot->start_datetime->format('g:i A') }} - {{ $slot->end_datetime->format('g:i A') }}
{{ $slot->start_datetime->diffInMinutes($slot->end_datetime) }} min View
{{ $booking->booking_reference }}
{{ $booking->created_at->format('M d, Y H:i') }}
{{ $booking->customer_name }}
{{ $booking->customer_email }}
@if($booking->bookingResource)
{{ $booking->bookingResource->name }}
{{ ucfirst($booking->bookingResource->resource_type) }} @elseif($booking->bookingProperty)
{{ $booking->bookingProperty->name }}
{{ $booking->bookingProperty->type }} @else
N/A
@endif
{{ $booking->start_datetime->format('M d, Y') }}
{{ $booking->start_datetime->format('g:i A') }} - {{ $booking->end_datetime->format('g:i A') }}
{{ $booking->participants }} {{ Str::plural('participant', $booking->participants) }}
RM {{ number_format($booking->total_price, 2) }}
@if($booking->amount_paid > 0 && $booking->amount_paid < $booking->total_price) RM {{ number_format($booking->amount_paid, 2) }} paid @endif
{{ ucfirst($booking->status) }} {{ ucfirst($booking->payment_status) }}
@if($booking->status === 'pending') @endif
@else
No bookings found

There are no bookings matching your criteria.

Create Resource
@endif
@if($bookings->hasPages()) @endif
@endsection