@extends('layouts.admin') @section('content')
Tour Packages
Add Package
Reset
@foreach ($items as $item) @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 @endforeach
Serial Title Type Country Destination Category Duration Sold As Min / Seats Adult Price Status Upcoming Event Action
@csrf @method('PATCH')
{{ $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 }}
@csrf @method('PATCH')
@if ($item->is_active && ! $item->isVisibleOnWebsite()) Departed — hidden on website @endif
{{ $eventBadge[1] }} @if ($item->departure_date) {{ $item->departure_date->format('d M Y') }} @endif
@csrf @method('PATCH')
View Edit
@csrf
@csrf @method('DELETE')
@endsection @push('scripts') @endpush