@extends('layouts.app') @section('title', 'Confirm Refund') @section('content') @php $booking = $cancelledBooking->booking; $invoice = $booking->invoice; @endphp
Back to Pending Refunds

Confirm Refund

Invoice #{{ $booking->invoice_id ?? '—' }} — {{ $booking->customer?->name ?? 'N/A' }}

@if(session('error'))
{{ session('error') }}
@endif
{{-- Left Column: Read-only Summary --}}
{{-- Financial Summary --}}

Financial Summary

Total Amount @currency($invoice?->total_amount ?? 0)
Total Paid @currency($invoice?->paid_amount ?? 0)
Service Charge Deduction
Refund Amount
{{-- Cost Breakdown

Cost Breakdown

Fingerprint Cost @currency($costSummary['fingerprint_cost'])
Visa Cost @currency($costSummary['visa_cost'])
Ticket Cost @currency($costSummary['ticket_cost'])
Total Cost @currency($costSummary['total_cost'])
--}} {{-- Cancellation Info

Cancellation Info

Cancelled By {{ $cancelledBooking->user?->name ?? '—' }}
Cancellation Branch {{ $cancelledBooking->cancellationBranch?->name ?? '—' }}
Cancel Date {{ $cancelledBooking->created_at->format('Y-m-d') }}
Booking Branch {{ $booking->bookingBranch?->name ?? '—' }}
--}}
{{-- Right Column: Editable Form --}}

Refund Details

{{-- Refund Amount --}}

Default: {{ $cancelledBooking->refund_amount }} SAR (Total Paid − Total Cost − Service Charge)

{{-- Currency --}}
{{-- Payment Method --}}
{{-- Remarks --}}
{{-- Submit --}}
@csrf
{{-- Toast Notification --}}
@push('scripts') @endpush @endsection