@extends('agency.layouts.app') @section('title', $tour->name . ' - Fiyatlandırma') @section('page_title', 'Tur Fiyatlandırması') @php $breadcrumbs = [ ['title' => 'Ana Sayfa', 'url' => route('agency.dashboard')], ['title' => 'Günübirlik Turlar', 'url' => route('agency.products.gunubirlik-turlar.index')], ['title' => $tour->name, 'url' => route('agency.products.gunubirlik-turlar.show', $tour)], ['title' => 'Fiyatlandırma', 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')

{{ $tour->name }}

Tur Kodu: {{ $tour->code }}
{{ substr($tour->start_time, 0, 5) }} - {{ substr($tour->end_time, 0, 5) }}
{{ $tour->departureCity?->city ?? 'Belirtilmemiş' }}
@include('agency.products.gunubirlik-turlar._nav', ['active' => 'pricing'])
Mevcut Varsayılan Fiyatlar
Yetişkin Fiyatı
{{ number_format($tour->adult_price, 2) }} {{ $tour->currency ?? 'TRY' }}
Standart Katılımcı Fiyatı
Çocuk Fiyatı
{{ number_format($tour->child_price, 2) }} {{ $tour->currency ?? 'TRY' }}
{{ $tour->child_min_age ?? 0 }}-{{ $tour->child_max_age ?? 12 }} Yaş Aralığı
Bebek Fiyatı
{{ number_format($tour->infant_price, 2) }} {{ $tour->currency ?? 'TRY' }}
0-{{ $tour->infant_max_age ?? 2 }} Yaş Aralığı
@csrf @method('PUT')
Varsayılan Fiyat Ayarları
Pazaryeri Özel Para Birimi Fiyatları
@if($marketplaces->isEmpty())
Bu tura atanmış herhangi bir aktif pazaryeri bulunmamaktadır. Pazar yerlerine özel para birimi fiyatları girmek için önce Ayarlar sekmesinden pazaryerlerini aktif etmelisiniz.
@else
@foreach($marketplaces as $mp)
{{ strtoupper(substr($mp->name, 0, 2)) }}
{{ $mp->name }} - Fiyat Yapılandırması
@if($mp->currencies->isEmpty())
Bu pazaryeri için herhangi bir para birimi atanmamış.
@else @foreach($mp->currencies as $curr) @php $key = $mp->id . '_' . $curr->id; $price = $marketplacePrices[$key] ?? null; $adultVal = $price ? $price->adult_price : ''; $childVal = $price ? $price->child_price : ''; $infantVal = $price ? $price->infant_price : ''; @endphp
{{ $curr->code }}
@endforeach @endif
@endforeach
@endif
İptal
@endsection @push('scripts') @endpush