@extends('layouts.app') @section('content') {{-- ── SUCCESS TOAST ── --}} @if(session('success'))
Success
{{ session('success') }}
@endif
{{-- ── CARD HEADER ── --}}

View Packages

{{ $packages->total() }} Total Add Package
{{-- ── ACTIVE FILTER CHIPS ── --}} @if(request()->hasAny(['name','destination_id','date_from','date_to']))
@if(request()->filled('name')) 📦 Name: {{ request('name') }} × @endif @if(request()->filled('destination_id')) 🗺️ Destination: {{ $destinations->firstWhere('id', request('destination_id'))?->name }} × @endif @if(request()->filled('date_from')) 📅 From: {{ \Carbon\Carbon::parse(request('date_from'))->format('d M Y') }} × @endif @if(request()->filled('date_to')) 📅 To: {{ \Carbon\Carbon::parse(request('date_to'))->format('d M Y') }} × @endif Clear all
@endif {{-- ── TABLE ── --}}
@forelse($packages as $key => $package) @empty @endforelse
SL Photo Package Name Destination Price Action
{{ $packages->firstItem() + $key }} @if($package->photo) @else
No photo
@endif
{{ $package->name }}
@if($package->short_description)
{{ $package->short_description }}
@endif
Added {{ $package->created_at->format('d M Y') }}
@if($package->holidaydestination) {{ $package->holidaydestination->name }} @else @endif @if($package->price) ${{ number_format($package->price, 2) }} USD @else @endif
@csrf @method('DELETE')
@if(request()->hasAny(['name','destination_id','date_from','date_to'])) No packages found matching your filters.
Clear Filters @else No packages added yet. @endif
{{-- ── PAGINATION ── --}} @if($packages->hasPages()) @endif
{{-- ── VIEW DETAILS MODALS ── --}} @foreach($packages as $package) @endforeach {{-- ── ADVANCED FILTER MODAL ── --}} {{-- Same template / classes as enquiries page AdvFilter --}}
Filter Packages
{{-- Package Name --}}
{{-- Destination --}}
{{-- Date Range --}}
@endsection