Cancellation Request #{{ $cancellation->id }}

Back to List
@if($cancellation->isPending())

This cancellation request is pending your review. Please review the details and approve or reject the request.

@endif @if($hasBalanceIssue && $cancellation->isPending())

Balance Shortage Detected

The golfer's available balance (${{ number_format($golferBalances['available_balance'], 2) }}) is less than the cancellation payout amount (${{ number_format($cancellation->payment_amount_golfer, 2) }}). Approving this cancellation will create a debt of ${{ number_format($cancellation->payment_amount_golfer - $golferBalances['available_balance'], 2) }} for the golfer.

@endif

Booking Details

#{{ $booking->id }}

{{ $booking->status_label }}

{{ $booking->formatted_final_date }}

{{ $booking->formatted_final_time }}

${{ number_format($booking->price, 2) }}

{{ $booking->bookingRequest->client->name }}

{{ $booking->bookingRequest->client->email }}

{{ $booking->bookingRequest->golfer->name }}

{{ $booking->bookingRequest->golfer->email }}

Cancellation Details

{{ $cancellation->cancelledBy->name }} ({{ ucfirst($cancellation->cancelledBy->role) }})

{{ $cancellation->cancellation_time->format('F j, Y g:i A') }}

{{ $cancellation->getCancellationTypeLabel() }}

{{ $cancellation->reason }}

{{ round($cancellation->hours_until_booking, 1) }} hours

@if($cancellation->processedBy)

{{ $cancellation->processedBy->name }}

@if($cancellation->processed_at)

{{ $cancellation->processed_at->format('F j, Y g:i A') }}

@endif
@endif @if($cancellation->admin_notes)

{{ $cancellation->admin_notes }}

@endif

Refund Breakdown

{{ $cancellation->refund_policy === 'full_refund' ? '✓' : ($cancellation->refund_policy === 'partial_refund' ? '⚖️' : '✗') }}

{{ $cancellation->getRefundPolicyLabel() }}

Cancelled {{ round($cancellation->hours_until_booking, 1) }} hours before booking

Item Amount
Original Booking Price ${{ number_format($cancellation->original_booking_price, 2) }}
Platform Fee (10%) ${{ number_format($cancellation->platform_fee, 2) }}
Client Refund ({{ $cancellation->client_refund_percentage }}%) ${{ number_format($cancellation->refund_amount_client, 2) }}
Golfer Payout ({{ $cancellation->golfer_payout_percentage }}%) ${{ number_format($cancellation->payment_amount_golfer, 2) }}
@if($cancellation->stripe_refund_id)

Stripe Refund ID: {{ $cancellation->stripe_refund_id }}

@if($cancellation->refund_issued_at)

Issued: {{ $cancellation->refund_issued_at->format('F j, Y g:i A') }}

@endif
@endif

Golfer Balance Information

Total Earned

${{ number_format($golferBalances['total_earnings'], 2) }}

Available Balance

${{ number_format($golferBalances['available_balance'], 2) }}

Pending Balance

${{ number_format($golferBalances['pending_balance'], 2) }}

@if($cancellation->golfer_balance_adjusted)

✓ Balance Adjusted @if($cancellation->golfer_balance_adjusted_at) - {{ $cancellation->golfer_balance_adjusted_at->format('M d, Y g:i A') }} @endif

@endif

Status

{{ $cancellation->getStatusLabel() }}
@if($cancellation->isPending())
@csrf
@csrf
@endif

Timeline

  • Cancellation requested

    {{ $cancellation->created_at->format('M d, Y g:i A') }}

  • @if($cancellation->approved_at)
  • Approved by admin

    {{ $cancellation->approved_at->format('M d, Y g:i A') }}

  • @endif @if($cancellation->refund_issued_at)
  • Refund issued

    {{ $cancellation->refund_issued_at->format('M d, Y g:i A') }}

  • @endif @if($cancellation->completed_at)
  • Completed

    {{ $cancellation->completed_at->format('M d, Y g:i A') }}

  • @endif