@extends('agency.layouts.app') @section('title', $tour->name) @section('page_title', 'Tur Detayı') @php $breadcrumbs = [ ['title' => 'Ana Sayfa', 'url' => route('agency.dashboard')], ['title' => 'Yurt Dışı Turları', 'url' => route('agency.products.yurtdisi-turlari.index')], ['title' => $tour->name, 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')

{{ $tour->name }}

Tur Kodu: {{ $tour->code }}
{{ $tour->days }} Gün {{ $tour->nights }} Gece
{{ $tour->departureCity?->name ?? 'Belirtilmemiş' }}
@if($tour->tour_type)
{{ $tour->tour_type_display_name }}
@endif
{{ $tour->is_active ? 'Aktif' : 'Pasif' }}
@can('update', $tour) Düzenle @endcan Geri

Genel Bilgiler

Tur Adı {{ $tour->name }}
Tur Kodu {{ $tour->code }}
Süre {{ $tour->days }} Gün / {{ $tour->nights }} Gece
Kalkış Şehri {{ $tour->departureCity?->name ?? '-' }}
Varış Şehri {{ $tour->arrivalCity?->name ?? '-' }}
Tur Tipi {{ $tour->tour_type_display_name ?? '-' }}
Durum {{ $tour->is_active ? 'Aktif' : 'Pasif' }}
@if($tour->short_description)
Kısa Açıklama
{{ $tour->short_description }}
@endif @if($tour->description)
Detaylı Açıklama
{!! $tour->description !!}
@endif
@if($tour->categories->count() > 0)

Kategoriler

@foreach($tour->categories as $category) {{ $category->name }} @endforeach
@endif @if($tour->activeTourImages->count() > 0)

Görseller

@endif @if($tour->activeItineraries->count() > 0)

Tur Programı

@foreach($tour->activeItineraries as $itinerary)
Gün {{ $itinerary->day_number }}
{{ $itinerary->title }}
@if($itinerary->location)
{{ $itinerary->location }}
@endif @if($itinerary->description)
{!! $itinerary->description !!}
@endif
@endforeach
@endif @if($tour->tourDates->count() > 0)

Fiyatlandırma (Tarih Bazlı)

@foreach($tour->tourDates as $pricing)
#{{ $pricing->code }} — {{ $pricing->formatted_date_range }}
@php $fares = \App\Support\TourFareCatalog::forTour((bool) ($tour->infant_allowed ?? true)); @endphp
@foreach($fares as $fare) @php $fVal = $pricing->{$fare['column']}; @endphp {{-- Kişi başı fiyat her zaman gösterilir; diğerleri yalnız değer varsa --}} @if($fare['key'] === 'adult' || $fVal)
{{ $fare['label'] }} @if($fare['key'] === 'child1' && ($pricing->child_min_age || $pricing->child_max_age)) ({{ $pricing->child_min_age ?? 0 }}-{{ $pricing->child_max_age ?? 12 }} yaş) @elseif($fare['key'] === 'infant' && $pricing->infant_max_age) ({{ $pricing->infant_min_age ?? 0 }}-{{ $pricing->infant_max_age }} yaş) @endif {{ $fare['per'] === 'supplement' ? '+' : '' }}{{ number_format((float) $fVal, 2) }} {{ $pricing->currency }}
@endif @endforeach @if($pricing->room_capacity)
Oda Kapasitesi {{ $pricing->room_capacity }} kişi
@endif
@endforeach
@endif @if($tour->upcomingDates->count() > 0)

Yaklaşan Tarihler

@foreach($tour->upcomingDates as $date) @endforeach
Başlangıç Bitiş Kontenjan Durum
{{ \Carbon\Carbon::parse($date->start_date)->format('d.m.Y') }} {{ \Carbon\Carbon::parse($date->end_date)->format('d.m.Y') }} {{ $date->available_seats }} / {{ $date->max_participants }} {{ $date->is_available ? 'Müsait' : 'Dolu' }}
@endif
@endsection