@extends('layouts.admin') @section('content')
| Serial | Title | Type | Country | Destination | Category | Duration | Sold As | Min / Seats | Adult Price | Status | Upcoming Event | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item->title }} | {{ $packageTypes[$item->package_type] ?? $item->package_type }} | {{ $item->country?->name ?? '-' }} | {{ $item->destinations->count() ? $item->destinations->pluck('name')->implode(', ') : ($item->destinationRef?->name ?? $item->destination) }} | {{ $item->tourCategory?->label ?? '-' }} | {{ $item->durationLabel() }} | {{ $item->isGroup() ? 'Tour Arrangement' : 'Individual' }} | @if ($item->isGroup()) {{ $item->available_seats ?? $item->capacity }}/{{ $item->capacity }} seats @else min {{ $item->minimumPersons() }} pax @endif | {{ $item->adult_price }} | @if ($item->is_active && ! $item->isVisibleOnWebsite()) Departed — hidden on website @endif | @php $eventStatus = $item->upcomingEventStatus(); $eventBadge = [ \App\Models\TourPackage::EVENT_ACTIVE => ['bg-success', 'Active'], \App\Models\TourPackage::EVENT_EXPIRED => ['bg-warning text-dark', 'Expired'], \App\Models\TourPackage::EVENT_OFF => ['bg-secondary', 'Off'], ][$eventStatus]; @endphp{{ $eventBadge[1] }} @if ($item->departure_date) {{ $item->departure_date->format('d M Y') }} @endif | View Edit |