{{-- resources/views/page/agency/themes/default/tour-detail.blade.php --}} @php $productTypeName = $productType === 'gunubirlik-tur' ? 'Günübirlik Tur' : 'Kültür Turu'; $isKulturTuru = $productType === 'kultur-turu'; $isGunubirlik = $productType === 'gunubirlik-tur'; // Fiyat ve Para Birimi if ($isKulturTuru) { $defaultPricing = $tour->activePricings->where('is_default', true)->first() ?? $tour->activePricings->first(); $adultPrice = $defaultPricing->adult_price ?? 0; $currency = $defaultPricing->currency ?? 'TRY'; } else { $adultPrice = $tour->base_price_adult ?? $tour->adult_price ?? 0; $currency = $tour->currency ?? 'TRY'; } $currencySymbol = match ($currency) { 'TRY', 'TL' => '₺', 'USD' => '$', 'EUR' => '€', 'GBP' => '£', default => $currency }; // Görseller $galleryImages = $tour->galleryImages ?? collect(); $allImages = collect(); if ($tour->coverImage) { $allImages->push($tour->coverImage); } $allImages = $allImages->merge($galleryImages); @endphp {{-- MODERN HERO SECTION --}}
@if($allImages->count() > 0) @foreach($allImages as $index => $image)
@endforeach @else
Henüz fotoğraf galerisi eklenmemiş
@endif
{{-- Breadcrumb --}}
@if($tour->code)
{{ $tour->code }}
@endif
{{ $productTypeName }} @if($tour->is_featured) Öne Çıkan @endif @if($tour->is_new) ✨ Yeni @endif @if($tour->difficulty_level) @php $diffMap = [ 'easy' => ['label' => 'Kolay', 'class' => 'easy'], 'moderate' => ['label' => 'Orta', 'class' => 'moderate'], 'challenging' => ['label' => 'Zorlu', 'class' => 'challenging'], 'extreme' => ['label' => 'Ekstrem', 'class' => 'extreme'], ]; $diff = $diffMap[$tour->difficulty_level] ?? ['label' => ucfirst($tour->difficulty_level), 'class' => '']; @endphp {{ $diff['label'] }} @endif

{{ $tour->name }}

@if($tour->departureCity)
{{ $tour->departureCity->city ?? $tour->departureCity->name }} Çıkışlı
@endif @if($isKulturTuru)
{{ $tour->nights }} Gece / {{ $tour->days }} Gün
@elseif($isGunubirlik)
@if($tour->departure_time && $tour->return_time) {{ \Carbon\Carbon::parse($tour->departure_time)->format('H:i') }} - {{ \Carbon\Carbon::parse($tour->return_time)->format('H:i') }} @else Günübirlik @endif
@endif @if(isset($tour->activeItineraries) && $tour->activeItineraries->count() > 0)
{{ $tour->activeItineraries->count() }} Durak
@endif {{-- Languages --}} @if(!empty($tour->languages) && is_array($tour->languages) && count($tour->languages) > 0)
{{ implode(', ', array_map('ucfirst', $tour->languages)) }}
@endif {{-- Capacity --}} @if($tour->max_participants)
Maks. {{ $tour->max_participants }} Kişi
@endif {{-- Child Friendly --}} @if($tour->child_friendly)
Çocuk Dostu
@endif {{-- Refundable --}} @if($tour->refundable)
İade Edilebilir
@endif
@if($allImages->count() > 0) @endif
{{-- MAIN CONTENT GRID --}}
{{-- LEFT COLUMN --}}
{{-- HIGHLIGHTS BAR (Günübirlik/Kültür Farklılaşması) --}}
@if($isGunubirlik)
Yemek {{ $tour->meal_included ? ($tour->meal_type ?? 'Dahil') : 'Hariç' }}
Rehberlik {{ $tour->has_guide ? 'Profesyonel Rehber' : 'Rehbersiz' }}
Ulaşım {{ $tour->transportation_type ?? 'Lüks Araçlar' }}
@if($tour->min_age)
Yaş Sınırı {{ $tour->min_age }}+ Yaş
@endif @else
Konaklama {{ $tour->nights }} Gece
Ulaşım {{ $tour->transportation_type ?? 'Uçak/Otobüs' }}
Kontenjan Sınırlı
@endif
{{-- TABS NAVIGATION --}}
@if($tour->video_url) @endif
{{-- SECTION: DESCRIPTION & HIGHLIGHTS --}}

Tur Hakkında

@if($tour->short_description)
{{ $tour->short_description }}
@endif @php $recurringDays = method_exists($tour, 'getRecurringDaysNames') ? $tour->getRecurringDaysNames() : []; @endphp @if(!empty($recurringDays))
Hareket Günleri: {{ implode(', ', $recurringDays) }}
@endif @php $destinations = !empty($tour->destinations) ? $tour->destinations : ($tour->visit_locations ?? []); @endphp @if(!empty($destinations)) {{-- Duraklar/Gezilecek Yerler --}}
Gezilecek Yerler:
@foreach($destinations as $location) {{ $location }} @endforeach
@endif
{!! $tour->description !!}
{{-- PROGRAM TIMELINE --}} @if($isKulturTuru && isset($tour->activeItineraries) && $tour->activeItineraries->count() > 0)

Tur Programı

@foreach($tour->activeItineraries->groupBy('day_number') as $day => $itineraries)
{{ $day }}. Gün

{{ $itineraries->first()->title ?? $day . '. Gün Programı' }}

@foreach($itineraries as $item)
@if($item->start_time)
{{ \Carbon\Carbon::parse($item->start_time)->format('H:i') }}
@endif
{!! $item->description !!}
@endforeach
@endforeach
@elseif($isGunubirlik && isset($tour->activeItineraries) && $tour->activeItineraries->count() > 0) {{-- Günübirlik İçin Basitleştirilmiş Akış --}}

Tur Akışı

@foreach($tour->activeItineraries as $item)
{{ $item->start_time ? \Carbon\Carbon::parse($item->start_time)->format('H:i') : '' }}
{{ $item->title }}
{!! $item->description !!}
@endforeach
@endif
{{-- SECTION: INCLUSIONS / EXCLUSIONS --}}

Fiyata Dahil

{!! $tour->inclusions ?? 'Bilgi bulunmuyor.' !!}

Fiyata Dahil Değil

{!! $tour->exclusions ?? 'Bilgi bulunmuyor.' !!}
@if($tour->notes || $tour->requirements)

Önemli Bilgilendirme

@if($tour->requirements)
Gereklilikler: {!! $tour->requirements !!}
@endif @if($tour->notes)
{!! $tour->notes !!}
@endif
@endif @if($tour->cancellation_policy)

İptal Koşulları

{!! $tour->cancellation_policy !!}
@endif @if($tour->terms_conditions)

Şartlar ve Koşullar

{!! $tour->terms_conditions !!}
@endif
{{-- SECTION: DATES TABLE --}}

Tur Tarihleri

@if($upcomingDates->total() > 0) {{ $upcomingDates->total() }} Tarih Müsait @endif
@if($upcomingDates && $upcomingDates->count() > 0)
@foreach($upcomingDates as $date) @php $startDate = $isGunubirlik ? ($date->tour_date ?? $date->start_date) : $date->start_date; $price = $date->adult_price ?? $adultPrice; $carbonDate = \Carbon\Carbon::parse($startDate); @endphp
{{ $carbonDate->format('d') }} {{ $carbonDate->translatedFormat('M') }}

{{ $carbonDate->translatedFormat('d F Y l') }}

@if(!$isGunubirlik && $date->end_date) Bitiş: {{ \Carbon\Carbon::parse($date->end_date)->translatedFormat('d F Y') }} @endif @if($isGunubirlik) {{ \Carbon\Carbon::parse($startDate)->format('Y') }} Dönemi @endif
{{ $currencySymbol }} {{ number_format($price, 0, ',', '.') }}
@endforeach
{{-- Pagination --}}
{{ $upcomingDates->withQueryString()->links() }}
@else

Planlanmış bir tarih bulunamadı. Lütfen iletişime geçin.

@endif
{{-- SECTION: VIDEO --}} @if($tour->video_url)

Tur Videosu

@endif
{{-- RIGHT SIDEBAR (STICKY) --}}
{{-- Gallery Modal --}}
@push('styles') @endpush @push('scripts') @endpush