{{-- resources/views/page/agency/themes/default/tours.blade.php --}} {{-- Ultra Modern Tour Listing & Search Results Page --}} @php $productTypeName = $productType === 'gunubirlik-tur' ? 'Günübirlik Turlar' : 'Kültür Turları'; $productTypeIcon = $productType === 'gunubirlik-tur' ? 'fa-sun' : 'fa-landmark'; // Get departure cities for filter $departureCities = \App\Models\Definition\City::whereIn('id', function($query) use ($agency, $productType) { if ($productType === 'kultur-turu') { $query->select('departure_city_id') ->from('cultural_tours') ->where('agency_id', $agency->id) ->where('is_active', true) ->where('is_public', true) ->whereNotNull('departure_city_id'); } else { $query->select('departure_city_id') ->from('day_tours') ->where('agency_id', $agency->id) ->where('is_active', true) ->whereNotNull('departure_city_id'); } })->orderBy('city')->get(); @endphp {{-- Hero Section --}}
{{ $agency->name }}

{{ $productTypeName }} Hayalinizdeki Tur Burada

Size özel seçilmiş turlarımızı keşfedin. Unutulmaz deneyimler için doğru adrestesiniz.

{{-- Stats --}}
{{ $tours->total() ?? 0 }} Aktif Tur
{{ $departureCities->count() }} Kalkış Noktası
7/24 Destek
{{-- Floating Elements --}}
{{-- Search & Filter Section --}}
{{-- Search Input --}}
{{-- Departure City --}}
{{-- Date Filter --}}
{{-- Sort --}}
{{-- Search Button --}}
{{-- Active Filters --}} @if(request('q') || request('departure_city_id') || request('date'))
Aktif Filtreler: @if(request('q')) {{ request('q') }} @endif @if(request('departure_city_id')) @php $selectedCity = $departureCities->firstWhere('id', request('departure_city_id')); @endphp @if($selectedCity) {{ $selectedCity->city }} @endif @endif @if(request('date')) {{ \Carbon\Carbon::parse(request('date'))->format('d.m.Y') }} @endif Temizle
@endif
{{-- Tours Grid Section --}}
{{-- Results Header --}}
{{ $tours->total() }} tur bulundu
{{-- Tours Grid --}} @if($tours->count() > 0)
@foreach($tours as $tour)
{{-- Card Image --}}
@if($tour->cover_image_url) {{ $tour->name }} @else
@endif {{-- Badges --}}
@if($tour->is_featured) Öne Çıkan @endif @if($tour->is_bestseller) Çok Satan @endif @if($tour->is_new) Yeni @endif
{{-- Quick Actions --}}
{{-- Overlay --}}
{{-- Card Content --}}
{{-- Category & Rating --}}
@if($tour->departureCity) {{ $tour->departureCity->city ?? $tour->departureCity->name }} @endif @if($tour->rating_average > 0) {{ number_format($tour->rating_average, 1) }} ({{ $tour->rating_count }}) @endif
{{-- Title --}}

{{ $tour->name }}

{{-- Description --}} @if($tour->short_description)

{{ Str::limit($tour->short_description, 100) }}

@endif {{-- Features --}}
{{-- Yaklaşan Tarih --}} @if($tour->upcomingDates && $tour->upcomingDates->count() > 0) @php $nextDate = $tour->upcomingDates->first(); $startDate = $productType === 'gunubirlik-tur' ? ($nextDate->tour_date ?? $nextDate->start_date) : $nextDate->start_date; @endphp {{ \Carbon\Carbon::parse($startDate)->format('d.m.Y') }} @endif @if($tour->days) {{ $tour->days }} Gün @if($tour->nights) / {{ $tour->nights }} Gece @endif @elseif($tour->start_time && $tour->end_time) {{ substr($tour->start_time, 0, 5) }} - {{ substr($tour->end_time, 0, 5) }} @endif @if($tour->max_participants) Maks. {{ $tour->max_participants }} Kişi @endif @if($tour->has_guide) Rehberli @endif
{{-- Price & CTA --}}
@endforeach
{{-- Pagination --}} @if($tours->hasPages())
{{ $tours->withQueryString()->links('pagination::tailwind') }}
@endif @else {{-- No Results --}}

Sonuç Bulunamadı

Aramanıza uygun tur bulunamadı. Farklı filtreler deneyebilir veya tüm turlara göz atabilirsiniz.

Filtreleri Sıfırla
@endif
{{-- CTA Section --}}

Aradığınızı Bulamadınız mı?

Size özel tur planı hazırlayalım. İletişime geçin, hayalinizdeki turu birlikte tasarlayalım.

@if($agency->contact_phone) Hemen Ara @endif @if($agency->contact_whatsapp) WhatsApp @endif
@push('styles') @endpush @push('scripts') @endpush