@extends('layouts.site') @section('title', 'Tours - Visit Sri Lanka 360') @php $packages = $packages ?? collect(); $types = $types ?? collect(); $qType = request('type'); $qDest = request('destination'); $qMin = request('min'); $qMax = request('max'); $typeLabel = $types->firstWhere('slug', $qType)->name ?? null; @endphp @section('content') {{-- HERO --}} {{-- overlays --}} Explore Sri Lanka Tour Packages Choose a package, filter by type and price, and book your journey. {{-- FILTER BAR --}} {{-- Type --}} Tour Type All Types @foreach($types as $t) slug)>{{ $t->name }} @endforeach {{-- Price From --}} Price From {{-- Price To --}} Price To {{-- Actions --}} Search Reset {{-- Active filter chips --}} @if($typeLabel) Type: {{ $typeLabel }} @endif @if($qMin || $qMax) Price: {{ $qMin ?: '0' }} – {{ $qMax ?: '∞' }} @endif {{-- RESULTS --}} Available Packages Showing {{ method_exists($packages, 'total') ? $packages->total() : $packages->count() }} tours @if(method_exists($packages, 'count') && $packages->count()) @foreach($packages as $p) @php $img = $p->cover_image ? asset('storage/' . ltrim($p->cover_image, '/')) : 'https://placehold.co/1200x800'; $destCount = $p->destinations?->count() ?? 0; $price = $p->price_from ? number_format((float) $p->price_from, 0) : null; @endphp {{ $p->type?->name ?? 'Tour Package' }} @if($price) {{ $p->currency }} {{ $price }} /{{ $p->price_unit }} @endif {{ $p->name }} @if($p->short_description) {{ $p->short_description }} @endif {{ (int) $p->duration_days }} Days {{ $destCount ?: '-' }} Places {{ (int) $p->min_travellers }} Min Pax View Details @endforeach {{-- Pagination --}} @if(method_exists($packages, 'links')) {{ $packages->links() }} @endif @else No tours found Try changing filters or reset. Reset filters @endif @endsection
Choose a package, filter by type and price, and book your journey.
Showing {{ method_exists($packages, 'total') ? $packages->total() : $packages->count() }} tours
{{ $p->short_description }}
Try changing filters or reset.