Booking #{{ $booking->id }}

{{ ucfirst($booking->status) }}

Booking Details

Booking ID
#{{ $booking->id }}
Status
{{ ucfirst($booking->status) }}
Final Date
{{ $booking->final_date?->format('l, F j, Y') ?? 'N/A' }}
Final Time
{{ $booking->final_time?->format('g:i A') ?? 'N/A' }}
Start Time
{{ $booking->start_time ? \Carbon\Carbon::parse($booking->start_time)->format('g:i A') : 'N/A' }}
End Time
{{ $booking->end_time ? \Carbon\Carbon::parse($booking->end_time)->format('g:i A') : 'N/A' }}
Created At
{{ $booking->created_at->format('M d, Y h:i A') }}
@if($booking->completed_at)
Completed At
{{ \Carbon\Carbon::parse($booking->completed_at)->format('M d, Y h:i A') }}
@endif

Pricing & Fees

Total Price ${{ number_format($booking->price, 2) }}
Platform Fee ${{ number_format($booking->platform_fee, 2) }}
Golfer Payout ${{ number_format($booking->golfer_payout, 2) }}
@if($refundInfo)

Refund Eligibility

Can Cancel
@if($refundInfo['can_cancel']) Yes @else No @endif
Hours Until Booking
{{ number_format($refundInfo['hours_until_booking'], 1) }} hours
Refund Percentage
{{ $refundInfo['refund_percentage'] }}%
Client Refund
${{ number_format($refundInfo['client_refund'], 2) }}
Golfer Compensation
${{ number_format($refundInfo['golfer_compensation'], 2) }}
Platform Retention
${{ number_format($refundInfo['platform_retention'], 2) }}
@endif @if($booking->cancellation)

Cancellation Details

Reason
{{ $booking->cancellation->reason ?? 'No reason provided' }}
Cancelled By
{{ $booking->cancellation->cancelledBy->name ?? 'N/A' }}
Cancelled At
{{ $booking->cancellation->cancelled_at ? \Carbon\Carbon::parse($booking->cancellation->cancelled_at)->format('M d, Y h:i A') : 'N/A' }}
Client Refund Amount
${{ number_format($booking->cancellation->client_refund_amount, 2) }}
Refund Status
{{ ucfirst($booking->cancellation->refund_status ?? 'N/A') }}
@endif

Status Timeline

    @foreach($timeline as $index => $event)
  • @if(!$loop->last) @endif
    @if($event['status'] === 'completed' || $event['status'] === 'accepted') @elseif($event['status'] === 'cancelled' || $event['status'] === 'declined') @elseif($event['status'] === 'payment_completed') @else @endif

    {{ $event['event'] }}

    {{ $event['description'] }}

    @if($event['actor'])

    By: {{ $event['actor'] }} ({{ $event['actor_role'] }})

    @endif
    {{ $event['timestamp'] ? \Carbon\Carbon::parse($event['timestamp'])->format('M d, Y h:i A') : 'N/A' }}
  • @endforeach
@if($booking->internal_notes)

Internal Notes

{{ $booking->internal_notes }}
@endif

Client

@if($booking->bookingRequest && $booking->bookingRequest->client)
{{ substr($booking->bookingRequest->client->name, 0, 1) }}
{{ $booking->bookingRequest->client->name }}
{{ $booking->bookingRequest->client->email }}
View Client Profile @else

Client information not available

@endif

Golfer

@if($booking->golferProfile && $booking->golferProfile->user)
{{ substr($booking->golferProfile->user->name, 0, 1) }}
{{ $booking->golferProfile->user->name }}
{{ $booking->golferProfile->user->email }}
View Golfer Profile @else

Golfer information not available

@endif
@if($booking->payment)

Payment

Payment ID
#{{ $booking->payment->id }}
Amount
${{ number_format($booking->payment->amount, 2) }}
Status
{{ ucfirst($booking->payment->status) }}
@if($booking->payment->stripe_payment_intent_id)
Stripe ID
{{ $booking->payment->stripe_payment_intent_id }}
@endif
@endif @if($booking->bookingRequest)

Booking Request

Request ID
#{{ $booking->bookingRequest->id }}
Course
{{ $booking->bookingRequest->course_name ?? 'N/A' }}
Location
{{ $booking->bookingRequest->course_location ?? 'N/A' }}
@endif

Quick Actions