@extends('layouts.inner') @section('title', $package->name . ' - Package Details') @section('content') {{-- ========================= HERO BANNER ========================= --}}
@if($package->banner)
@elseif($package->photo)
@endif
@if($package->is_featured) ⭐ Featured Package @endif

{{ $package->name }}

@if($package->location) {{ $package->location }} @endif @if($package->duration) {{ $package->duration }} @endif @if($package->tour_start_date) {{ \Carbon\Carbon::parse($package->tour_start_date)->format('d M Y') }} @if($package->tour_end_date) β€” {{ \Carbon\Carbon::parse($package->tour_end_date)->format('d M Y') }} @endif @endif
{{-- ========================= /HERO BANNER ========================= --}} {{-- ========================= STICKY NAV ========================= --}}
{{-- ========================= /STICKY NAV ========================= --}} {{-- ========================= BOOKING SUCCESS TOAST ========================= --}} @if(session('booking_success'))
πŸŽ‰
Enquiry Received!
{!! session('booking_success') !!}
@endif {{-- ========================= /BOOKING SUCCESS TOAST ========================= --}}
{{-- ============ MAIN CONTENT ============ --}}
{{-- OVERVIEW --}}

About This Package

@if($package->description)
{!! $package->description !!}
@endif {{-- Quick Stats --}}
@if($package->duration)
⏱️
Duration
{{ $package->duration }}
@endif @if($package->location)
πŸ“
Location
{{ $package->location }}
@endif @if($package->tour_start_date)
πŸ“…
Departure
{{ \Carbon\Carbon::parse($package->tour_start_date)->format('d M Y') }}
@endif @if($package->last_booking_date)
⚠️
Last Booking
{{ \Carbon\Carbon::parse($package->last_booking_date)->format('d M Y') }}
@endif

{{-- ITINERARY --}} @if($package->itinerary)

Tour Itinerary

@php $itineraryHtml = $package->itinerary; $lines = preg_split('/\r\n|\r|\n/', strip_tags($itineraryHtml, '
')); $days = []; $currentDay = null; $currentContent = ''; foreach ($lines as $line) { $clean = trim(strip_tags($line)); if (empty($clean)) continue; if (preg_match('/^Day\s*(\d+)\s*[-–—:,]?\s*(.*)/i', $clean, $matches)) { if ($currentDay !== null) { $days[] = [ 'number' => $currentDay['number'], 'title' => $currentDay['title'], 'content' => trim($currentContent), ]; } $currentDay = [ 'number' => intval($matches[1]), 'title' => trim($matches[2]) ?: '', ]; $currentContent = ''; } else { if ($currentDay !== null) { $currentContent .= $clean . ' '; } } } if ($currentDay !== null) { $days[] = [ 'number' => $currentDay['number'], 'title' => $currentDay['title'], 'content' => trim($currentContent), ]; } $photos = $package->photos; @endphp @if(count($days) > 0)
@foreach($days as $index => $day) @php $photoCount = $photos->count(); $photo = $photoCount > 0 ? $photos->get($index % $photoCount) : null; @endphp
{{ str_pad($day['number'], 2, '0', STR_PAD_LEFT) }}
@if(!$loop->last)
@endif
Day {{ $day['number'] }}{{ $day['title'] ? ', ' . $day['title'] : '' }}
@if($package->tour_start_date)

{{ \Carbon\Carbon::parse($package->tour_start_date)->addDays($day['number'] - 1)->format('d M Y, h:i A') }}

@endif @if($day['content'])

{{ $day['content'] }}

@endif
@if($photo)
Day {{ $day['number'] }}
@endif
@endforeach
@else
{!! $package->itinerary !!}
@endif

@endif {{-- PHOTO GALLERY --}} @if($package->photos->count())
@endif {{-- VIDEOS --}} @if($package->videos->count())

See It In Action

@foreach($package->videos as $video)
{!! $video->video_iframe !!}
@endforeach

@endif {{-- MAP --}} @if($package->map)

Tour Location Map

{!! $package->map !!}

@endif {{-- POLICY --}} @if($package->policy)

Booking & Cancellation Policy

{!! $package->policy !!}
@endif
{{-- ============ /MAIN CONTENT ============ --}} {{-- ============ SIDEBAR ============ --}}
{{-- PRICE & BOOKING CARD --}}
Price Per Person
{{ $package->price ? '$' . number_format($package->price, 2) . ' USD' : 'Contact for Pricing' }}
@if($package->last_booking_date)
⚠️ Book before {{ \Carbon\Carbon::parse($package->last_booking_date)->format('d M Y') }}
@endif
{{-- Validation errors --}} @if($errors->any())
@foreach($errors->all() as $error)
β€’ {{ $error }}
@endforeach
@endif {{-- βœ… Form always visible to everyone --}}
@csrf
{{-- TRAVEL DATES --}}
@error('travel_start_date')
{{ $message }}
@enderror
@error('travel_end_date')
{{ $message }}
@enderror
Age 2–12
Below 2 yrs
{{-- Live price estimate --}}

πŸ”’ Your information is 100% secure and confidential.
Our specialist will respond within 24 hours.

{{-- CONTACT CARD --}}
πŸ—£οΈ Prefer to Talk?

Speak directly with a certified travel consultant.

Call Us WhatsApp
{{-- ============ /SIDEBAR ============ --}}
{{-- ========================= RELATED PACKAGES ========================= --}} @if($relatedPackages->count())

More Packages from {{ $package->holidaydestination->name ?? 'This Destination' }}

@foreach($relatedPackages as $rel)
@endforeach
@endif {{-- ========================= /RELATED PACKAGES ========================= --}} @endsection @push('styles') @endpush {{-- ========================= AUTH MODALS ========================= --}} {{-- ========================= /AUTH MODALS ========================= --}} @push('styles') {{-- your existing styles block already has this content, just add: --}} @endpush @push('scripts') @endpush