<?php
    $primaryPrice = $tour->getPrimaryPriceInfo(); // en yakın tarihin ana pazar fiyatı
    $statusLabel = $tour->is_draft ? 'Taslak' : ($tour->is_active ? ($tour->is_public ? 'Yayında' : 'Gizli') : 'Pasif');
    $statusClass = $tour->is_draft ? 'pqv-b-amber' : ($tour->is_active ? ($tour->is_public ? 'pqv-b-green' : 'pqv-b-slate') : 'pqv-b-red');
    $marketplaces = $tour->product?->marketplaces ?? collect();
    $editBase = 'agency.products.kultur-turlari';
    $uf = route("$editBase.update-field", $tour);
    $cityOptions = collect($cities)->map(fn($c) => ['value' => (string) $c->id, 'label' => $c->city ?? $c->name])->values();
    $boolOptions = [['value' => '1', 'label' => 'Evet'], ['value' => '0', 'label' => 'Hayır']];
    $tourTypeOptions = [['value' => 'domestic', 'label' => 'Yurt İçi'], ['value' => 'international', 'label' => 'Yurt Dışı']];
    $difficultyOptions = [['value' => 'easy', 'label' => 'Kolay'], ['value' => 'moderate', 'label' => 'Orta'], ['value' => 'challenging', 'label' => 'Zor'], ['value' => 'extreme', 'label' => 'Çok Zor']];
?>

<?php if (isset($component)) { $__componentOriginalafd3b985888fa2a33a2082f2c35a64dc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalafd3b985888fa2a33a2082f2c35a64dc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.layout','data' => ['dataPqvSelfurl' => ''.e(route($editBase.'.quick-view', $tour)).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['data-pqv-selfurl' => ''.e(route($editBase.'.quick-view', $tour)).'']); ?>
    
    <?php if (isset($component)) { $__componentOriginala42916bd54053bb95821e6cf6446ae2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala42916bd54053bb95821e6cf6446ae2c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.header','data' => ['slim' => true,'titleField' => 'name','titleUrl' => $uf,'titleValue' => $tour->name,'titleRequired' => true,'titlePlaceholder' => 'Tur adı']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['slim' => true,'title-field' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('name'),'title-url' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($uf),'title-value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tour->name),'title-required' => true,'title-placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Tur adı')]); ?>
         <?php $__env->slot('subtitle', null, []); ?> 
            
            <span data-qv-avatar hidden><i class="fas fa-landmark"></i></span>
            <span class="pqv-badge <?php echo e($statusClass); ?>"><?php echo e($statusLabel); ?></span>
            <span class="text-muted small fw-600"><i class="fas fa-hashtag" style="font-size:.7rem"></i> <?php echo e($tour->code ?? '—'); ?></span>
            <span class="text-muted small fw-600"><?php echo e($tour->tour_type_display_name ?? ''); ?></span>
            <?php if($tour->departureCity): ?>
                <span class="text-muted small fw-600"><i class="fas fa-location-dot" style="font-size:.7rem"></i> <?php echo e($tour->departureCity?->city ?? $tour->departureCity?->name); ?></span>
            <?php endif; ?>
         <?php $__env->endSlot(); ?>

         <?php $__env->slot('metrics', null, []); ?> 
            <div class="qv-metric">
                <span class="qv-metric-label">SÜRE</span>
                <span class="qv-metric-val"><?php echo e($tour->days); ?>G / <?php echo e($tour->nights); ?>Gc</span>
            </div>
            <div class="qv-metric" title="Ana pazarın en yakın tarihteki <?php echo e(mb_strtolower(\App\Support\TourFareCatalog::label('adult'))); ?> fiyatı">
                <span class="qv-metric-label">ANA FİYAT<?php echo e($primaryPrice && $primaryPrice['start_date'] ? ' · ' . $primaryPrice['start_date']->translatedFormat('d M') : ''); ?></span>
                <span class="qv-metric-val text-success"><?php echo e($primaryPrice ? number_format($primaryPrice['price'], 0, ',', '.') . ' ' . $primaryPrice['currency'] : '—'); ?></span>
            </div>
            <div class="qv-metric">
                <span class="qv-metric-label">YAKLAŞAN TARİH</span>
                <span class="qv-metric-val"><?php echo e($tour->upcomingDates->count()); ?></span>
            </div>
         <?php $__env->endSlot(); ?>

        <?php if($tour->is_draft): ?>
             <?php $__env->slot('actions', null, []); ?> 
                <button class="qv-action-btn qv-publish-draft" style="width:auto;padding:0 14px;color:#fff;background:linear-gradient(135deg,#16a34a,#15803d);border-color:transparent;font-weight:700;gap:6px"
                        onclick="qvPublishDraft('<?php echo e(route("$editBase.publish-draft", $tour)); ?>', this)" title="Taslaktan çıkar ve yayına al">
                    <i class="fas fa-check"></i> Taslaktan Çıkar
                </button>
             <?php $__env->endSlot(); ?>
        <?php endif; ?>

         <?php $__env->slot('tabs', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'overview','label' => 'Genel Bilgiler','icon' => 'fas fa-info-circle','active' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'overview','label' => 'Genel Bilgiler','icon' => 'fas fa-info-circle','active' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'itinerary','label' => 'Program','icon' => 'fas fa-list','count' => $tour->activeItineraries->count()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'itinerary','label' => 'Program','icon' => 'fas fa-list','count' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tour->activeItineraries->count())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'dates','label' => 'Tarihler & Fiyatlar','icon' => 'fas fa-calendar','count' => $tour->upcomingDates->count()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'dates','label' => 'Tarihler & Fiyatlar','icon' => 'fas fa-calendar','count' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tour->upcomingDates->count())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'media','label' => 'Görseller','icon' => 'fas fa-images','count' => $tour->activeTourImages->count()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'media','label' => 'Görseller','icon' => 'fas fa-images','count' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tour->activeTourImages->count())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'seo','label' => 'SEO','icon' => 'fas fa-search']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'seo','label' => 'SEO','icon' => 'fas fa-search']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'settings','label' => 'Ayarlar','icon' => 'fas fa-cog']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'settings','label' => 'Ayarlar','icon' => 'fas fa-cog']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal7a160e0e89328e649a5d556167387bab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7a160e0e89328e649a5d556167387bab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.tab','data' => ['id' => 'translations','label' => 'Çeviriler','icon' => 'fas fa-language','count' => $marketplaces->count()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'translations','label' => 'Çeviriler','icon' => 'fas fa-language','count' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($marketplaces->count())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $attributes = $__attributesOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__attributesOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7a160e0e89328e649a5d556167387bab)): ?>
<?php $component = $__componentOriginal7a160e0e89328e649a5d556167387bab; ?>
<?php unset($__componentOriginal7a160e0e89328e649a5d556167387bab); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala42916bd54053bb95821e6cf6446ae2c)): ?>
<?php $attributes = $__attributesOriginala42916bd54053bb95821e6cf6446ae2c; ?>
<?php unset($__attributesOriginala42916bd54053bb95821e6cf6446ae2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala42916bd54053bb95821e6cf6446ae2c)): ?>
<?php $component = $__componentOriginala42916bd54053bb95821e6cf6446ae2c; ?>
<?php unset($__componentOriginala42916bd54053bb95821e6cf6446ae2c); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginal35806a9d22165045bbdc1bc197c3b156 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal35806a9d22165045bbdc1bc197c3b156 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.content','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.content'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
        
        <div id="qv-tab-overview" class="qv-tab-panel active">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                
                <?php echo $__env->make('agency.products._qv-primary-market-alert', ['tour' => $tour, 'marketplaces' => $marketplaces, 'syncUrl' => route("$editBase.sync-marketplaces", $tour)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                
                <?php echo $__env->make('agency.products._qv-general-ledger', [
                    'tour' => $tour,
                    'editBase' => $editBase,
                    'cities' => $cities,
                    'categories' => $categories,
                    'uf' => $uf,
                    'productType' => 'cultural',
                ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>

        
        <div id="qv-tab-itinerary" class="qv-tab-panel">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                
                <?php echo $__env->make('agency.products._qv-itinerary', [
                    'tour' => $tour,
                    'editBase' => $editBase,
                    'itMode' => 'cultural',
                    'items' => $tour->activeItineraries,
                ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>

        
        <?php echo $__env->make('agency.products._qv-dates-tab', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        
        <div id="qv-tab-media" class="qv-tab-panel">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                <?php echo $__env->make('agency.products._qv-media', [
                    'tour' => $tour,
                    'images' => $tour->activeTourImages,
                    'uploadUrl' => route("$editBase.media.upload-images", $tour),
                    'deleteRoute' => "$editBase.media.delete-image",
                    'coverRoute' => "$editBase.media.set-cover",
                    'featuredRoute' => "$editBase.media.toggle-featured",
                ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>

        
        <div id="qv-tab-seo" class="qv-tab-panel">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                
                <?php echo $__env->make('agency.products._qv-seo-ledger', ['tour' => $tour, 'editBase' => $editBase, 'uf' => $uf], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>

        
        <div id="qv-tab-settings" class="qv-tab-panel">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                
                <?php
                    // Evet/Hayır satırı üretici (bool alanlar hiç "boş" olmaz)
                    $qsBool = fn (string $label, string $field, $v) => [
                        'label' => $label, 'field' => $field, 'type' => 'select',
                        'options' => $boolOptions, 'value' => $v ? '1' : '0', 'text' => $v ? 'Evet' : 'Hayır',
                    ];
                    $qsNum = fn (string $label, string $field, $v, ?string $ph = null) => [
                        'label' => $label, 'field' => $field, 'type' => 'number', 'mono' => true,
                        'value' => $v, 'text' => $v === null ? '' : (string) $v, 'ph' => $ph,
                    ];
                    $qsDT = fn ($v) => $v ? \Carbon\Carbon::parse($v) : null;
                    $qsPub = $qsDT($tour->published_at);
                    $qsExp = $qsDT($tour->expires_at);
                ?>

                <div class="qv-left-stack">
                    
                    <?php echo $__env->make('agency.products._qv-marketplaces-ledger', ['allMarketplaces' => $allMarketplaces, 'selectedIds' => $marketplaces->pluck('id'), 'syncUrl' => route("$editBase.sync-marketplaces", $tour)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                    
                    <?php echo $__env->make('components.quick-view.ledger-card', ['card' => [
                        'title' => 'Ayarlar',
                        'icon' => 'fa-cog',
                        'url' => $uf,
                        'class' => 'pfx-lw',
                        'note' => 'Son Rezervasyon: kalkıştan kaç saat önce rezervasyonun kapanacağı. Otomatik Kesin Kalkış: minimum katılımcı sayısına ulaşınca kalkış kendiliğinden kesinleşir.',
                        'sections' => [
                            ['title' => 'Durum & Görünürlük', 'icon' => 'fa-toggle-on', 'rows' => [
                                $qsBool('Aktif', 'is_active', $tour->is_active),
                                $qsBool('Yayında', 'is_public', $tour->is_public),
                                $qsBool('Rezervasyona Açık', 'is_bookable', $tour->is_bookable),
                                $qsBool('Öne Çıkan', 'is_featured', $tour->is_featured),
                                $qsBool('Çok Satan', 'is_bestseller', $tour->is_bestseller),
                                $qsBool('Yeni', 'is_new', $tour->is_new),
                                $qsBool('Anında Rezervasyon', 'instant_booking', $tour->instant_booking),
                                $qsBool('İade Edilebilir', 'refundable', $tour->refundable),
                                $qsBool('Çocuk Dostu', 'child_friendly', $tour->child_friendly),
                                $qsBool('Bebek Kabul', 'infant_allowed', $tour->infant_allowed),
                            ]],
                            ['title' => 'Rezervasyon & Kesin Kalkış', 'icon' => 'fa-shield-alt', 'rows' => [
                                $qsBool('Otomatik Kesin Kalkış', 'auto_guarantee_on_min', $tour->auto_guarantee_on_min),
                            ]],
                            ['title' => 'Sayısal Ayarlar', 'icon' => 'fa-sliders', 'rows' => [
                                $qsNum('Öncelik', 'priority', $tour->priority ?? 0),
                                $qsNum('Son Rezervasyon (saat)', 'booking_deadline_hours', $tour->booking_deadline_hours),
                                ['label' => 'Yayın Tarihi', 'field' => 'published_at', 'type' => 'datetime-local', 'mono' => true,
                                 'value' => $qsPub?->format('Y-m-d\TH:i'), 'text' => $qsPub?->format('d.m.Y H:i')],
                                ['label' => 'Son Geçerlilik', 'field' => 'expires_at', 'type' => 'datetime-local', 'mono' => true,
                                 'value' => $qsExp?->format('Y-m-d\TH:i'), 'text' => $qsExp?->format('d.m.Y H:i')],
                            ]],
                        ],
                    ]], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                    
                    <?php echo $__env->make('components.quick-view.ledger-card', ['card' => [
                        'title' => 'Yaş Aralıkları',
                        'icon' => 'fa-children',
                        'url' => $uf,
                        'class' => 'pfx-lw',
                        'note' => $tour->infant_allowed
                            ? 'Buradaki yaşlar yeni tarih eklerken otomatik çekilir; tarih formundaki "Yaş Aralıkları" bölümünden o tarihe özel değiştirilebilir.'
                            : 'Bu tur bebek kabul etmiyor; bebek yaş alanları gizlendi. Yukarıdaki "Bebek Kabul" seçeneğinden açabilirsiniz.',
                        'sections' => [
                            ['title' => 'Fiyat Yaşları', 'icon' => 'fa-child-reaching', 'rows' => array_values(array_filter([
                                $qsNum('Çocuk Min Yaş', 'child_min_age', $tour->child_min_age, '2'),
                                $qsNum('Çocuk Max Yaş', 'child_max_age', $tour->child_max_age, '12'),
                                $tour->infant_allowed ? $qsNum('Bebek Min Yaş', 'infant_min_age', $tour->infant_min_age, '0') : null,
                                $tour->infant_allowed ? $qsNum('Bebek Max Yaş', 'infant_max_age', $tour->infant_max_age, '2') : null,
                            ]))],
                            ['title' => 'Katılım Sınırı', 'icon' => 'fa-user-check', 'rows' => [
                                $qsNum('Tura Katılım Min Yaş', 'min_age', $tour->min_age),
                                $qsNum('Tura Katılım Max Yaş', 'max_age', $tour->max_age),
                            ]],
                        ],
                    ]], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                    
                    <div class="pfx">
                        <div class="pfx-top">
                            <span class="pfx-top-t"><i class="fas fa-hourglass-half"></i> İptal Son Süresi</span>
                        </div>
                        <div class="pfx-body">
                            <?php echo $__env->make('agency.products._qv-hours-unit-field', ['field' => 'cancellation_deadline_hours', 'label' => 'Ücretsiz İptal (kalkıştan önce)', 'hours' => $tour->cancellation_deadline_hours, 'uf' => $uf], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                            <div class="pfx-note" style="padding-left:0;padding-bottom:0">
                                <i class="fas fa-circle-info"></i> Rezervasyonun ücretsiz iptal edilebileceği son süre; birim gün seçilse de saat olarak kaydedilir.
                            </div>
                        </div>
                    </div>

                    
                    <div class="pfx pfx-lw" data-url="<?php echo e($uf); ?>">
                        <div class="pfx-top">
                            <span class="pfx-top-t"><i class="fas fa-money-check-alt"></i> Kademeli Ödeme Planı</span>
                        </div>
                        <section class="pfx-sec">
                            <?php $__currentLoopData = [
                                $qsBool('Kademeli Ödeme Aktif', 'payment_plan_enabled', $tour->payment_plan_enabled),
                                $qsBool('Web Satışında Kullan', 'online_payment_enabled', $tour->online_payment_enabled),
                                $qsNum("Web'de İlk Alınacak (%)", 'online_deposit_percent', $tour->online_deposit_percent),
                            ]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php echo $__env->make('components.quick-view.ledger-row', ['r' => $r], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </section>
                        <div class="pfx-body">
                    <div class="qv-payplan" data-qv-payplan-save="<?php echo e(route("$editBase.payment-plan", $tour)); ?>">
                        <label class="form-label">Ödeme Aşamaları (toplam %100 olmalı) — değişiklikler otomatik kaydolur</label>
                        <div class="pp-order-note"><i class="fas fa-circle-info"></i> Ödemeler, aşamaları <strong>eklediğiniz sıraya göre</strong> (1, 2, 3…) tahsil edilir. Numaralar ödeme sırasını gösterir.</div>
                        <div data-qpp-rows>
                            <?php $__currentLoopData = ($tour->payment_plan ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $st): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="row g-2 mb-2 qpp-row">
                                    <div class="col-md-3"><input type="text" data-pp="label" name="payment_plan[<?php echo e($loop->index); ?>][label]" class="form-control form-control-sm" placeholder="Etiket" value="<?php echo e($st['label'] ?? ''); ?>"></div>
                                    <div class="col-md-2"><input type="number" data-pp="percent" name="payment_plan[<?php echo e($loop->index); ?>][percent]" class="form-control form-control-sm" placeholder="%" value="<?php echo e($st['percent'] ?? ''); ?>"></div>
                                    <div class="col-md-4"><select data-pp="trigger" name="payment_plan[<?php echo e($loop->index); ?>][trigger]" class="form-select form-select-sm">
                                        <option value="at_booking" <?php if(($st['trigger'] ?? '')==='at_booking'): echo 'selected'; endif; ?>>Rezervasyonda</option>
                                        <option value="days_before_departure" <?php if(($st['trigger'] ?? '')==='days_before_departure'): echo 'selected'; endif; ?>>Kalkıştan X gün önce</option>
                                        <option value="on_departure" <?php if(($st['trigger'] ?? '')==='on_departure'): echo 'selected'; endif; ?>>Kalkışta</option>
                                    </select></div>
                                    <div class="col-md-2"><input type="number" data-pp="offset_days" name="payment_plan[<?php echo e($loop->index); ?>][offset_days]" class="form-control form-control-sm" placeholder="Gün" value="<?php echo e($st['offset_days'] ?? ''); ?>"></div>
                                    <div class="col-md-1"><button type="button" class="btn btn-sm btn-outline-danger" data-qpp-remove><i class="fas fa-times"></i></button></div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                        <div class="mt-1">
                            <button type="button" class="btn btn-sm btn-outline-primary" data-qpp-add><i class="fas fa-plus"></i> Aşama Ekle</button>
                        </div>
                    </div>
                        </div>
                    </div>
                </div>

                <?php echo $__env->make('agency.products._qv-pricing-classes', ['pricingClasses' => $pricingClasses, 'saveUrl' => route("$editBase.pricing-classes", $tour)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>

        
        <div id="qv-tab-translations" class="qv-tab-panel">
            <?php if (isset($component)) { $__componentOriginal0b5c730a957d61f80b0044e786216866 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0b5c730a957d61f80b0044e786216866 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.quick-view.main','data' => ['class' => 'border-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('quick-view.main'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'border-0']); ?>
                
                <?php echo $__env->make('agency.products._qv-translations-ledger', ['tour' => $tour, 'marketplaces' => $marketplaces, 'fetchUrl' => route("$editBase.translations.fetch", $tour), 'saveUrl' => route("$editBase.translations.save", $tour)], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $attributes = $__attributesOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__attributesOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0b5c730a957d61f80b0044e786216866)): ?>
<?php $component = $__componentOriginal0b5c730a957d61f80b0044e786216866; ?>
<?php unset($__componentOriginal0b5c730a957d61f80b0044e786216866); ?>
<?php endif; ?>
        </div>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal35806a9d22165045bbdc1bc197c3b156)): ?>
<?php $attributes = $__attributesOriginal35806a9d22165045bbdc1bc197c3b156; ?>
<?php unset($__attributesOriginal35806a9d22165045bbdc1bc197c3b156); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal35806a9d22165045bbdc1bc197c3b156)): ?>
<?php $component = $__componentOriginal35806a9d22165045bbdc1bc197c3b156; ?>
<?php unset($__componentOriginal35806a9d22165045bbdc1bc197c3b156); ?>
<?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalafd3b985888fa2a33a2082f2c35a64dc)): ?>
<?php $attributes = $__attributesOriginalafd3b985888fa2a33a2082f2c35a64dc; ?>
<?php unset($__attributesOriginalafd3b985888fa2a33a2082f2c35a64dc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalafd3b985888fa2a33a2082f2c35a64dc)): ?>
<?php $component = $__componentOriginalafd3b985888fa2a33a2082f2c35a64dc; ?>
<?php unset($__componentOriginalafd3b985888fa2a33a2082f2c35a64dc); ?>
<?php endif; ?>

<?php echo $__env->make('agency.products._quick-view-styles', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-dates-ui', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-marketplace-prices-ui', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-pricing-classes-ui', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-general-ui', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-richtext', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-inline-blocks', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._qv-seo-ui', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('agency.products._quick-view-crud-script', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/products/kultur-turlari/quick-view.blade.php ENDPATH**/ ?>