@extends('agency.layouts.app') @section('title', $tour->name . ' - Tarihler') @section('page_title', 'Tur Tarihleri') @php $breadcrumbs = [ ['title' => 'Ana Sayfa', 'url' => route('agency.dashboard')], ['title' => 'Kültür Turları', 'url' => route('agency.products.kultur-turlari.index')], ['title' => $tour->name, 'url' => route('agency.products.kultur-turlari.show', $tour)], ['title' => 'Tarihler', 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')
Tur Kodu: {{ $tour->code }}

{{ $tour->name }}

{{ $tour->departureCity->city ?? 'Belirtilmemiş' }} → {{ $tour->arrivalCity->city ?? 'Belirtilmemiş' }}
{{ $tour->duration }} {{ $tour->duration_type === 'days' ? 'Gün' : 'Saat' }}
{{ $dates->count() }} Tarih

Tur Tarihleri

Turunuzun gerçekleşeceği tarihleri ve kapasitelerini yönetin

{{ $dates->count() }} Tarih
{{ $dates->where('is_active', true)->count() }} Aktif
{{ $dates->sum('sold_count') }} Satış
@if($dates->count() > 0)
@foreach($dates as $date) @endforeach
Tarih Bilgileri Kapasite Fiyatlandırma Durum İşlemler
{{ $date->code }} {{ $date->formatted_date_range }} @if($date->start_time) {{ $date->start_time->format('H:i') }} @endif @if($date->guarantee_departure) Garanti Kalkış @endif
@php $percentage = $date->total_capacity > 0 ? ($date->sold_count / $date->total_capacity) * 100 : 0; $class = ''; if($percentage >= 90) $class = 'danger'; elseif($percentage >= 70) $class = 'warning'; @endphp
{{ $date->remaining_capacity }}/{{ $date->total_capacity }}
{{ $date->sold_count }} satış @if($date->reserved_count > 0) , {{ $date->reserved_count }} rezerve @endif
{{ number_format($date->adult_price, 0) }} {{ $date->currency }}
@if($date->tourPricing)
{{ $date->tourPricing->pricing_name }}
@endif
{{ $date->is_active ? 'AKTİF' : 'PASİF' }} {{ $date->status_display_name }}
@if($date->sold_count == 0) @endif
@else
Henüz tur tarihi eklenmemiş

Turunuzun gerçekleşeceği tarihleri eklemeye başlayın

@endif
@endsection @push('scripts') @endpush