@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 }}
Kişi Başı (2 kişilik oda) {{ number_format($pricing->adult_price, 2) }} {{ $pricing->currency }}
@if($pricing->single_supplement)
Tek Kişilik Oda Farkı +{{ number_format($pricing->single_supplement, 2) }} {{ $pricing->currency }}
@endif @if($pricing->extra_bed_price)
Ek Yatak Farkı +{{ number_format($pricing->extra_bed_price, 2) }} {{ $pricing->currency }}
@endif @if($pricing->child_price_1)
1. Çocuk @if($pricing->child_min_age || $pricing->child_max_age) ({{ $pricing->child_min_age ?? 0 }}-{{ $pricing->child_max_age ?? 12 }} yaş) @endif {{ number_format($pricing->child_price_1, 2) }} {{ $pricing->currency }}
@endif @if($pricing->child_price_2)
2. Çocuk {{ number_format($pricing->child_price_2, 2) }} {{ $pricing->currency }}
@endif @if($pricing->infant_price)
Bebek @if($pricing->infant_max_age) ({{ $pricing->infant_min_age ?? 0 }}-{{ $pricing->infant_max_age }} yaş) @endif {{ number_format($pricing->infant_price, 2) }} {{ $pricing->currency }}
@endif @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