@extends('layouts.app') @section('content') {{-- ── SUCCESS TOAST ── --}} @if(session('success'))
Success
{{ session('success') }}
@endif {{-- ── ERROR TOAST ── --}} @if(session('error'))
⚠️
Error
{{ session('error') }}
@endif {{-- ── CANCEL TOAST ── --}} @if(session('cancelmsg'))
Booking Cancelled
{{ session('cancelmsg') }}
@endif

Cancellation List

{{ count($cancellations) }} Total
@forelse($cancellations as $index => $cancellation) @empty @endforelse
S.No Booking ID Customer Stay Dates Booking Amt Cancel Charge Cancel Date Actions
{{ $index + 1 }}
{{ $cancellation->booking_reference ?? '—' }}
{{ $cancellation->hotel_name ?? '—' }}
{{ Str::limit($cancellation->hotel_address ?? '—', 40) }}
{{ !empty($cancellation->checkin) ? \Carbon\Carbon::parse($cancellation->checkin)->format('d M Y') : '—' }} @if(!empty($cancellation->checkout)) → {{ \Carbon\Carbon::parse($cancellation->checkout)->format('d M Y') }} @endif
{{ number_format($cancellation->booking_amount ?? 0, 2) }} {{ $cancellation->booking_currency ?? 'INR' }} @php $charge = floatval($cancellation->cancellation_charges ?? 0); @endphp @if($charge > 0) {{ number_format($charge, 2) }} {{ $cancellation->cancellation_currency ?? 'INR' }} @else No Charge @endif
{{ !empty($cancellation->cancel_date) ? \Carbon\Carbon::parse($cancellation->cancel_date)->format('d M Y') : '—' }}
{{ !empty($cancellation->cancel_date) ? \Carbon\Carbon::parse($cancellation->cancel_date)->format('h:i A') : '' }}
No cancellations found.

No cancellations found for this filter.

{{-- Pagination --}}

{{-- ── VIEW DETAILS MODALS ── --}} @foreach($cancellations as $cancellation) @php $modalId = $cancellation->recordid ?? $loop->index; @endphp @endforeach {{-- ── ADVANCED FILTER MODAL ── --}}
Advanced Filter
@endsection