@extends('layouts.admin') @section('content')
Tour Package Details

Code: {{ $item->package_code }}

Title: {{ $item->title }}

Slug: {{ $item->slug }}

Type: {{ $item->package_type }}

Country: {{ $item->country?->name ?? '-' }}

Destinations: {{ $item->destinations->count() ? $item->destinations->pluck('name')->implode(', ') : ($item->destinationRef?->name ?? $item->destination) }}

Tour Category: {{ $item->tourCategory?->label ?? '-' }}

Duration: {{ $item->durationLabel() }}

Prices (Adult/Child/Infant): {{ $item->adult_price }}/{{ $item->child_price }}/{{ $item->infant_price }}

Seasonal/Offer/Agent/Corporate: {{ $item->seasonal_price }}/{{ $item->offer_price }}/{{ $item->agent_price }}/{{ $item->corporate_price }}

Sold As: {{ $item->modeLabel() }}

@if ($item->isGroup())

Seats: {{ $item->available_seats ?? $item->capacity }} left of {{ $item->capacity }}

@else

Minimum Persons: {{ $item->minimumPersons() }}

@endif

Last Booking Date: {{ optional($item->booking_deadline)->format('d M Y') ?: '-' }} @if ($item->isBookingClosed()) Closed @endif

Departure Date: {{ optional($item->departure_date)->format('d M Y') ?: '-' }} 'bg-success', 'expired' => 'bg-warning text-dark', 'off' => 'bg-secondary'][$item->upcomingEventStatus()] }}'>Upcoming Event: {{ ucfirst($item->upcomingEventStatus()) }} @if ($item->is_upcoming_event) priority {{ $item->event_priority }} @endif

Video URL: {{ $item->video_url }}

{{-- Admin-authored rich text. Sanitized again here on top of the sanitizing already done at save time โ€” belt and suspenders for anything that might reach the database by some other path in the future. `description` is what the public website shows as the package's "Trip Overview". --}}
Hotel Details:
{!! \App\Support\HtmlSanitizer::clean($item->hotel_details) !!}
Transport Details:
{!! \App\Support\HtmlSanitizer::clean($item->transport_details) !!}
Inclusions:
{!! \App\Support\HtmlSanitizer::clean($item->inclusions) !!}
Exclusions:
{!! \App\Support\HtmlSanitizer::clean($item->exclusions) !!}
Terms:
{!! \App\Support\HtmlSanitizer::clean($item->terms_conditions) !!}
Description:
{!! \App\Support\HtmlSanitizer::clean($item->description) !!}

Itinerary
@forelse ($item->itineraries as $it)
Day {{ $it->day_no }} โ€” {{ $it->title }}
@if ($it->details)
{{ $it->details }}
@endif @if ($it->events->isNotEmpty())
    @foreach ($it->events as $event)
  • @if ($event->time){{ \Illuminate\Support\Carbon::parse($event->time)->format('h:i A') }} ยท @endif {{ $event->title }} @if ($event->location) โ€” {{ $event->location }}@endif @if ($event->duration) ({{ $event->duration }})@endif
  • @endforeach
@endif
@empty

No itinerary added.

@endforelse
Images
@foreach ($item->images as $img)
image_path) }}'>
@endforeach
@endsection