{{ __('hotel::modules.quotation.quotations') }}

@if(user_can('Create Hotel Quotation')) {{ __('hotel::modules.quotation.newQuotation') }} @endif
@foreach($statuses as $status) @endforeach
@php $statusCfg = [ 'draft' => ['dot' => 'bg-gray-400', 'badge' => 'bg-gray-100 text-gray-700 ring-gray-200 dark:bg-gray-700 dark:text-gray-200 dark:ring-gray-600'], 'sent' => ['dot' => 'bg-blue-500', 'badge' => 'bg-blue-50 text-blue-700 ring-blue-200 dark:bg-blue-900/30 dark:text-blue-300 dark:ring-blue-700'], 'accepted' => ['dot' => 'bg-emerald-500', 'badge' => 'bg-emerald-50 text-emerald-700 ring-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-300 dark:ring-emerald-700'], 'rejected' => ['dot' => 'bg-rose-500', 'badge' => 'bg-rose-50 text-rose-700 ring-rose-200 dark:bg-rose-900/30 dark:text-rose-300 dark:ring-rose-700'], ]; @endphp @forelse($quotations as $quotation) @php $sc = $statusCfg[$quotation->status->value ?? 'draft'] ?? ['dot' => 'bg-gray-400', 'badge' => 'bg-gray-100 text-gray-600 ring-gray-200']; $initials = collect(explode(' ', $quotation->primaryGuest?->full_name ?? ''))->map(fn($w) => strtoupper($w[0] ?? ''))->take(2)->join(''); $canEdit = user_can('Update Hotel Quotation'); @endphp @empty @endforelse
{{ __('hotel::modules.quotation.quotationNumber') }} {{ __('hotel::modules.quotation.guest') }} {{ __('hotel::modules.quotation.date') }} {{ __('hotel::modules.quotation.amount') }} {{ __('hotel::modules.quotation.status') }} {{ __('hotel::modules.quotation.action') }}
{{ $quotation->quotation_number }}
{{ $initials }} {{ $quotation->primaryGuest?->full_name ?? '-' }}
{{ optional($quotation->check_in_date)->format('M d, Y') }}
{{ currency_format($quotation->total_amount) }} {{ $quotation->status?->label() ?? '-' }}
{{ __('hotel::modules.quotation.quotaConPdf') }} @if(user_can('Update Hotel Quotation')) @endif @if(user_can('Create Hotel Reservation')) {{ __('hotel::modules.quotation.makeReservation') }} @endif @if($canEdit) {{ __('hotel::modules.quotation.edit') }} @endif

{{ __('hotel::modules.quotation.noQuotationsFound') }}

@if(user_can('Create Hotel Quotation')) {{ __('hotel::modules.quotation.createFirstQuotation') }} @endif
{{ $quotations->links() }}