@extends('layouts.app') @section('title', 'Pending Refunds') @section('content') @php $canSeeCancelledBy = auth()->user()->roles->pluck('name')->intersect(['Super Admin', 'Co Admin'])->isNotEmpty(); @endphp

Pending Refunds

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@unless(auth()->user()->branch_id) @endunless
@if($canSeeCancelledBy)@endif @if($canSeeCancelledBy)@endif @unless($canSeeCancelledBy)@endunless @forelse($cancelledBookings as $cb) @if($canSeeCancelledBy) @endif @if($canSeeCancelledBy)@endif @unless($canSeeCancelledBy) @endunless @empty @endforelse
Invoice ID Customer PAX QTY Mobile Cancellation Branch Total Paid Service Charge Refund Amount Cancel DateStatusCancelled ByActions
{{ $cb->booking?->invoice_id ?? '—' }} {{ $cb->booking?->customer?->name ?? 'N/A' }} {{ $cb->booking?->pax_qty ?? '—' }} {{ $cb->booking?->customer?->mobile_no ?? 'N/A' }} {{ $cb->cancellationBranch?->name ?? '—' }} @currency($cb->total_paid, 2) @if($cb->service_charge_deduction !== null) @currency($cb->service_charge_deduction, 2) @else — @endif @currency($cb->refund_amount, 2) {{ $cb->created_at->format('Y-m-d') }} @if($cb->status === \App\Enums\CancelledBookingStatus::PROCESSING) Cancellation Processing @elseif($cb->status === \App\Enums\CancelledBookingStatus::CANCELLED) Cancelled @else {{ $cb->status->value ?? '—' }} @endif {{ $cb->user?->name ?? '—' }}
@csrf
Confirm
No pending refunds found
{{ $cancelledBookings->links() }}
@endsection