
<?php
    $d = $d ?? null;
    $copyDates = $copyDates ?? collect();
    $suggestStart = $suggestStart ?? null;
    $suggestEnd = $suggestEnd ?? null;
    $startVal = $d && $d->start_date ? \Carbon\Carbon::parse($d->start_date)->format('Y-m-d') : ($suggestStart ?? '');
    $endVal = $d && $d->end_date ? \Carbon\Carbon::parse($d->end_date)->format('Y-m-d') : ($suggestEnd ?? '');
    // Tarih-seviyesi (pazaryeri-dışı) kopyalanabilir alanlar
    $priceFields = ['room_capacity','child_min_age','child_max_age','infant_min_age','infant_max_age','early_booking_discount','last_minute_discount','group_discount','special_discount','min_group_size','discount_reason'];

    // Pazaryeri fiyat matrisi alanları — etiketler TEK kaynaktan (App\Support\TourFareCatalog).
    // Bebek kabul edilmiyorsa bebek fiyatı hiç sorulmaz (forTour bunu eler).
    $mpFields = collect(\App\Support\TourFareCatalog::forTour((bool) $tour->infant_allowed))
        ->map(fn ($f) => ['key' => $f['column'], 'label' => $f['label'], 'short' => $f['short']])->all();
    $mpList = $tour->product?->marketplaces ?? collect();
    // Mevcut fiyatlar: [marketplace_id][classKey] => satır
    $mpExisting = [];
    if ($d) {
        foreach ($d->marketplacePrices as $mpp) {
            $ck = $mpp->tour_class_id ?? 'none';
            $mpExisting[$mpp->marketplace_id][$ck] = $mpp;
        }
    }
    $mpClasses = $pricingClasses ?? collect();
    $mpUseClasses = (bool) ($tour->use_pricing_classes ?? false);
    // Seri üretim yalnızca yeni tarih eklerken anlamlı (statik dates.blade ile aynı kural).
    $isNew = !$d;

    // ── Yaş aralıkları: yeni tarihte turun genel ayarından otomatik çekilir ──
    $ageFields = ['child_min_age', 'child_max_age', 'infant_min_age', 'infant_max_age'];
    $ageVals = [];
    foreach ($ageFields as $af) {
        $ageVals[$af] = $d ? $d->{$af} : ($tour->{$af} ?? null);
    }
    $agesEmpty = collect($ageVals)->every(fn ($v) => $v === null);
    $agesMatchTour = collect($ageFields)->every(fn ($af) => (string) ($ageVals[$af] ?? '') === (string) ($tour->{$af} ?? ''));
    $fmtAge = fn ($min, $max) => ($min === null && $max === null) ? '—' : (($min ?? '?') . '–' . ($max ?? '?') . ' yaş');
    $ageSummary = 'Çocuk ' . $fmtAge($ageVals['child_min_age'], $ageVals['child_max_age'])
        . ($tour->infant_allowed ? ' · Bebek ' . $fmtAge($ageVals['infant_min_age'], $ageVals['infant_max_age']) : '');
    $ageChip = $agesEmpty ? ['Tanımsız', 'empty'] : ($agesMatchTour ? ['Turun genel ayarı', 'auto'] : ['Bu tarihe özel', 'custom']);

    $cppOn = (bool) ($d?->use_custom_payment_plan);
    $stages = is_array($d?->payment_schedule ?? null) ? $d->payment_schedule : [];
    $stageTriggers = ['at_booking' => 'Rezervasyonda', 'days_before_departure' => 'Kalkıştan X gün önce', 'on_departure' => 'Kalkışta'];

    // Katlanır bölümlerin kapalı başlık özetleri
    $discFields = ['early_booking_discount' => 'Erken', 'last_minute_discount' => 'Son dakika', 'group_discount' => 'Grup', 'special_discount' => 'Özel'];
    $discParts = [];
    foreach ($discFields as $df => $dl) {
        if ($d && $d->$df !== null && (float) $d->$df > 0) $discParts[] = $dl . ' %' . rtrim(rtrim(number_format((float) $d->$df, 2, ',', ''), '0'), ',');
    }
    $discSummary = $discParts ? implode(' · ', $discParts) : 'İndirim tanımlanmadı';

    $ruleNames = ['early_booking_rule' => 'Erken rez.', 'last_minute_rule' => 'Son dakika', 'booking_deadline_rule' => 'Son rezervasyon'];
    $ruleParts = [];
    foreach ($ruleNames as $rn => $rl) {
        $rv = $d?->$rn;
        if (is_array($rv) && !empty($rv['mode'])) $ruleParts[] = $rl;
    }
    $ruleSummary = $ruleParts ? implode(' · ', $ruleParts) . ' tanımlı' : 'Turun genel kuralları geçerli';

    $cppSummary = $cppOn
        ? (count($stages) ? count($stages) . ' aşama tanımlı' : 'Açık — henüz aşama yok')
        : 'Turun genel ödeme planı geçerli';
?>

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

<div class="qdf">

    <?php if($copyDates->count()): ?>
        <label class="qdf-copy">
            <i class="fas fa-wand-magic-sparkles"></i>
            <span>Başka tarihten doldur</span>
            <select data-qd-copyfrom>
                <option value="">— Tarih seçin, fiyatlar ve ayarlar kopyalansın —</option>
                <?php $__currentLoopData = $copyDates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cd): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(!$d || $cd->id !== $d->id): ?>
                        <option value="<?php echo e($cd->id); ?>"
                                data-prices='<?php echo json_encode(collect($priceFields)->mapWithKeys(fn ($f) => [$f => $cd->$f])->toArray(), 15, 512) ?>'
                                data-mp-prices='<?php echo json_encode($cd->marketplacePrices->reduce(function ($acc, $p) use ($mpFields) { $ck = $p->tour_class_id ?? 'none'; $acc[$p->marketplace_id][$ck] = collect($mpFields)->mapWithKeys(fn ($f) => [$f['key'] => $p->{$f['key']}])->toArray(); return $acc; }, [])) ?>'>
                            #<?php echo e($cd->code); ?> · <?php echo e($cd->start_date?->format('d.m.Y')); ?> · <?php echo e($cd->adult_price !== null ? number_format($cd->adult_price, 0, ',', '.') . ' ' . $cd->currency : 'fiyatsız'); ?>

                        </option>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </label>
    <?php endif; ?>

    
    <div class="qdf-fold open" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="true">
            <i class="fas fa-calendar-day"></i>
            <span class="qdf-fold-t">Tarih</span>
            <span class="qdf-fold-s">Başlangıç seçilince bitiş tur süresine göre otomatik dolar</span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body>
        <div class="qdf-rows">
            <label class="qdf-row">
                <span class="qdf-l">Başlangıç <b>*</b></span>
                <span class="qdf-v"><input type="date" name="start_date" value="<?php echo e($startVal); ?>" data-qd-start required></span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Bitiş <em>otomatik</em></span>
                <span class="qdf-v"><input type="date" name="end_date" value="<?php echo e($endVal); ?>" data-qd-end required></span>
            </label>
        </div>
        </div>
    </div>

    
    <div class="qdf-fold open" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="true">
            <i class="fas fa-users"></i>
            <span class="qdf-fold-t">Kapasite</span>
            <span class="qdf-fold-s">Toplam kapasite, bu tarihte satışa açılacak kişi sayısıdır</span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body>
        <div class="qdf-rows">
            <label class="qdf-row">
                <span class="qdf-l">Toplam Kapasite <b>*</b></span>
                <span class="qdf-v"><input type="number" min="1" name="total_capacity" value="<?php echo e($d?->total_capacity); ?>" placeholder="Örn. 30" required></span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Min. Katılımcı</span>
                <span class="qdf-v"><input type="number" min="0" name="min_participants" value="<?php echo e($d?->min_participants); ?>" placeholder="Kesin kalkış eşiği"></span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Oda Kapasitesi</span>
                <span class="qdf-v"><input type="number" min="1" name="room_capacity" value="<?php echo e($d?->room_capacity); ?>" placeholder="1 odada maks. kişi"></span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Yetişkin Kont.</span>
                <span class="qdf-v"><input type="number" min="0" name="adult_capacity" value="<?php echo e($d?->adult_capacity); ?>" placeholder="Sınırsız"></span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Çocuk Kont.</span>
                <span class="qdf-v"><input type="number" min="0" name="child_capacity" value="<?php echo e($d?->child_capacity); ?>" placeholder="Sınırsız"></span>
            </label>
            <?php if($tour->infant_allowed): ?>
                <label class="qdf-row">
                    <span class="qdf-l">Bebek Kont.</span>
                    <span class="qdf-v"><input type="number" min="0" name="infant_capacity" value="<?php echo e($d?->infant_capacity); ?>" placeholder="Sınırsız"></span>
                </label>
            <?php endif; ?>
        </div>
        </div>
    </div>

    
    <div class="qdf-fold open" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="true">
            <i class="fas fa-tags"></i>
            <span class="qdf-fold-t">Pazaryeri Fiyatları</span>
            <span class="qdf-fold-s">Satır: pazaryeri · Sütun: fiyat tipi</span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body>
            <?php echo $__env->make('agency.products._qv-date-prices-mini', [
                'marketplaces' => $mpList,
                'existing' => $mpExisting,
                'fields' => $mpFields,
                'classes' => $mpClasses,
                'useClasses' => $mpUseClasses,
            ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        </div>
    </div>

    
    <div class="qdf-fold open" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="true">
            <i class="fas fa-toggle-on"></i>
            <span class="qdf-fold-t">Sezon &amp; Durum</span>
            <span class="qdf-fold-s">Yayın durumu, kesin kalkış ve tarihe özel not</span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body>
        <div class="qdf-rows">
            <label class="qdf-row">
                <span class="qdf-l">Sezon</span>
                <span class="qdf-v">
                    <select name="season_type">
                        <?php $__currentLoopData = ['low' => 'Düşük', 'medium' => 'Orta', 'high' => 'Yüksek', 'peak' => 'Zirve']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v => $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($v); ?>" <?php if(($d->season_type ?? 'medium') === $v): echo 'selected'; endif; ?>><?php echo e($l); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </span>
            </label>
            <label class="qdf-row">
                <span class="qdf-l">Durum</span>
                <span class="qdf-v">
                    <select name="status">
                        <?php $__currentLoopData = ['draft' => 'Taslak', 'published' => 'Yayında', 'booking_open' => 'Rez. Açık', 'booking_closed' => 'Rez. Kapalı', 'confirmed' => 'Onaylı', 'in_progress' => 'Devam Ediyor', 'completed' => 'Tamamlandı', 'cancelled' => 'İptal']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v => $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($v); ?>" <?php if(($d->status ?? 'booking_open') === $v): echo 'selected'; endif; ?>><?php echo e($l); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </span>
            </label>
            <div class="qdf-row wide top">
                <span class="qdf-l">Notlar</span>
                <span class="qdf-v"><textarea name="special_notes" placeholder="Bu tarihe özel iç not"><?php echo e($d?->special_notes); ?></textarea></span>
            </div>
        </div>
        <div class="qdf-switches">
            <label class="qdf-sw"><input type="checkbox" name="is_active" value="1" <?php echo e(!$d || $d->is_active ? 'checked' : ''); ?>><span>Aktif</span></label>
            <label class="qdf-sw"><input type="checkbox" name="is_bookable" value="1" <?php echo e(!$d || $d->is_bookable ? 'checked' : ''); ?>><span>Rezervasyona Açık</span></label>
            <label class="qdf-sw"><input type="checkbox" name="guarantee_departure" value="1" <?php echo e($d && $d->guarantee_departure ? 'checked' : ''); ?>><span>Kesin Kalkış</span></label>
            <label class="qdf-sw"><input type="checkbox" name="auto_guarantee_on_min" value="1" <?php echo e($d ? ($d->auto_guarantee_on_min ? 'checked' : '') : (($tour->auto_guarantee_on_min ?? false) ? 'checked' : '')); ?>><span>Min. katılımcıda otomatik kesin kalkış</span></label>
        </div>
        </div>
    </div>

    
    <div class="qdf-fold" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="false">
            <i class="fas fa-child-reaching"></i>
            <span class="qdf-fold-t">Yaş Aralıkları</span>
            <span class="qdf-fold-s" data-qd-ages-summary><?php echo e($ageSummary); ?></span>
            <span class="qd-fold-chip is-<?php echo e($ageChip[1]); ?>" data-qd-ages-chip><?php echo e($ageChip[0]); ?></span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body hidden>
            <p class="qdf-hint"><i class="fas fa-circle-info"></i> Boş bırakılan alanlarda turun genel ayarı geçerlidir; buradaki değerler yalnızca bu tarihe uygulanır.</p>
            <div class="qdf-rows">
                <label class="qdf-row">
                    <span class="qdf-l">Çocuk Min Yaş</span>
                    <span class="qdf-v"><input type="number" name="child_min_age" value="<?php echo e($ageVals['child_min_age']); ?>" placeholder="<?php echo e($tour->child_min_age ?? 2); ?>" data-qd-age="cmin"></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Çocuk Max Yaş</span>
                    <span class="qdf-v"><input type="number" name="child_max_age" value="<?php echo e($ageVals['child_max_age']); ?>" placeholder="<?php echo e($tour->child_max_age ?? 12); ?>" data-qd-age="cmax"></span>
                </label>
                <?php if($tour->infant_allowed): ?>
                    <label class="qdf-row">
                        <span class="qdf-l">Bebek Min Yaş</span>
                        <span class="qdf-v"><input type="number" name="infant_min_age" value="<?php echo e($ageVals['infant_min_age']); ?>" placeholder="<?php echo e($tour->infant_min_age ?? 0); ?>" data-qd-age="imin"></span>
                    </label>
                    <label class="qdf-row">
                        <span class="qdf-l">Bebek Max Yaş</span>
                        <span class="qdf-v"><input type="number" name="infant_max_age" value="<?php echo e($ageVals['infant_max_age']); ?>" placeholder="<?php echo e($tour->infant_max_age ?? 2); ?>" data-qd-age="imax"></span>
                    </label>
                <?php endif; ?>
            </div>
        </div>
    </div>

    
    <div class="qdf-fold" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="false">
            <i class="fas fa-percent"></i>
            <span class="qdf-fold-t">İndirimler</span>
            <span class="qdf-fold-s"><?php echo e($discSummary); ?></span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body hidden>
            <div class="qdf-rows">
                <label class="qdf-row">
                    <span class="qdf-l">Erken Rezervasyon</span>
                    <span class="qdf-v qdf-suffix"><input type="number" step="0.01" min="0" name="early_booking_discount" value="<?php echo e($d?->early_booking_discount); ?>" placeholder="0"><small>%</small></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Son Dakika</span>
                    <span class="qdf-v qdf-suffix"><input type="number" step="0.01" min="0" name="last_minute_discount" value="<?php echo e($d?->last_minute_discount); ?>" placeholder="0"><small>%</small></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Grup</span>
                    <span class="qdf-v qdf-suffix"><input type="number" step="0.01" min="0" name="group_discount" value="<?php echo e($d?->group_discount); ?>" placeholder="0"><small>%</small></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Grup Min Kişi</span>
                    <span class="qdf-v"><input type="number" min="0" name="min_group_size" value="<?php echo e($d?->min_group_size); ?>" placeholder="Örn. 10"></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Özel İndirim</span>
                    <span class="qdf-v qdf-suffix"><input type="number" step="0.01" min="0" name="special_discount" value="<?php echo e($d?->special_discount); ?>" placeholder="0"><small>%</small></span>
                </label>
                <label class="qdf-row">
                    <span class="qdf-l">Özel İnd. Nedeni</span>
                    <span class="qdf-v"><input type="text" name="discount_reason" value="<?php echo e($d?->discount_reason); ?>" placeholder="Kampanya adı"></span>
                </label>
            </div>
        </div>
    </div>

    
    <div class="qdf-fold" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="false">
            <i class="fas fa-hourglass-half"></i>
            <span class="qdf-fold-t">Zaman Kuralları</span>
            <span class="qdf-fold-s"><?php echo e($ruleSummary); ?></span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body hidden>
            <?php echo $__env->make('agency.products._qv-deadline-rule', ['name' => 'early_booking_rule', 'label' => 'Erken rezervasyon indirimi — şu ana kadar geçerli', 'rule' => $d?->early_booking_rule, 'anchors' => ['departure' => 'Kalkış', 'publish' => 'Yayın Tarihi']], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <?php echo $__env->make('agency.products._qv-deadline-rule', ['name' => 'last_minute_rule', 'label' => 'Son dakika indirimi — şu andan itibaren geçerli', 'rule' => $d?->last_minute_rule, 'anchors' => ['departure' => 'Kalkış', 'booking_close' => 'Rez. Kapanışı']], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <?php echo $__env->make('agency.products._qv-deadline-rule', ['name' => 'booking_deadline_rule', 'label' => 'Son rezervasyon — rezervasyon şu ana kadar açık', 'rule' => $d?->booking_deadline_rule, 'anchors' => ['departure' => 'Kalkış', 'publish' => 'Yayın Tarihi']], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        </div>
    </div>

    
    <div class="qdf-fold" data-qd-fold>
        <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="false">
            <i class="fas fa-money-check-dollar"></i>
            <span class="qdf-fold-t">Ödeme Planı</span>
            <span class="qdf-fold-s"><?php echo e($cppSummary); ?></span>
            <i class="fas fa-chevron-down qdf-fold-chev"></i>
        </button>
        <div class="qdf-fold-b" data-qd-fold-body hidden>
            <div class="qdf-switches">
                <label class="qdf-sw"><input type="checkbox" name="use_custom_payment_plan" value="1" data-qd-cpp-toggle <?php if($cppOn): echo 'checked'; endif; ?>><span>Bu tarih için özel kademeli ödeme planı kullan</span></label>
            </div>
            <div data-qd-cpp-wrap style="<?php echo e($cppOn ? '' : 'display:none'); ?>">
                <p class="qdf-hint"><i class="fas fa-circle-info"></i> Aşamalar <b>eklendikleri sırayla</b> (1, 2, 3…) tahsil edilir ve toplamları %100 olmalıdır.</p>
                <div data-qd-stage-rows>
                    <?php $__currentLoopData = $stages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $st): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="qd-form qd-stage-row">
                            <div class="qd-fld"><label>Etiket</label><input type="text" name="payment_schedule[<?php echo e($i); ?>][label]" value="<?php echo e($st['label'] ?? ''); ?>" class="qd-inp" placeholder="Ör: Kapora" <?php if(!$cppOn): echo 'disabled'; endif; ?>></div>
                            <div class="qd-fld"><label>Yüzde %</label><input type="number" min="0" max="100" name="payment_schedule[<?php echo e($i); ?>][percent]" value="<?php echo e($st['percent'] ?? ''); ?>" class="qd-inp" <?php if(!$cppOn): echo 'disabled'; endif; ?>></div>
                            <div class="qd-fld"><label>Tetikleyici</label><select name="payment_schedule[<?php echo e($i); ?>][trigger]" class="qd-inp" <?php if(!$cppOn): echo 'disabled'; endif; ?>><?php $__currentLoopData = $stageTriggers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v => $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($v); ?>" <?php if(($st['trigger'] ?? '') === $v): echo 'selected'; endif; ?>><?php echo e($l); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div>
                            <div class="qd-fld"><label>Gün (X)</label><input type="number" min="0" name="payment_schedule[<?php echo e($i); ?>][offset_days]" value="<?php echo e($st['offset_days'] ?? ''); ?>" class="qd-inp" <?php if(!$cppOn): echo 'disabled'; endif; ?>></div>
                            <div class="qd-fld qd-stage-act"><button type="button" class="pqv-iconbtn danger" data-qd-stage-remove title="Aşamayı sil"><i class="fas fa-times"></i></button></div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <button type="button" class="qdf-addstage" data-qd-stage-add><i class="fas fa-plus"></i> Aşama Ekle</button>
            </div>
        </div>
    </div>

    <?php if($isNew): ?>
        
        <div class="qdf-fold" data-qd-fold>
            <button type="button" class="qdf-fold-h" data-qd-fold-toggle aria-expanded="false">
                <i class="fas fa-repeat"></i>
                <span class="qdf-fold-t">Seri Tarih</span>
                <span class="qdf-fold-s">Aynı fiyatlarla birden çok tarih üret</span>
                <i class="fas fa-chevron-down qdf-fold-chev"></i>
            </button>
            <div class="qdf-fold-b" data-qd-fold-body hidden>
                <div class="qdf-switches">
                    <label class="qdf-sw"><input type="checkbox" name="__series_enabled" value="1" data-qd-series-toggle><span>Seri oluştur</span></label>
                </div>
                <div data-qd-series-wrap style="display:none">
                    <div class="qdf-rows">
                        <label class="qdf-row">
                            <span class="qdf-l">Tekrar Sıklığı</span>
                            <span class="qdf-v">
                                <select name="repeat_frequency" disabled>
                                    <?php $__currentLoopData = ['weekly' => 'Haftalık', 'biweekly' => '2 haftada bir', 'monthly' => 'Aylık', 'interval' => 'Her N günde bir']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v => $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($v); ?>"><?php echo e($l); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </span>
                        </label>
                        <label class="qdf-row">
                            <span class="qdf-l">Gün Aralığı (N)</span>
                            <span class="qdf-v"><input type="number" name="repeat_interval_days" min="1" max="365" placeholder="Örn. 10" disabled></span>
                        </label>
                        <label class="qdf-row">
                            <span class="qdf-l">Kaç Tarih?</span>
                            <span class="qdf-v"><input type="number" name="repeat_count" min="1" max="52" placeholder="Örn. 8" disabled></span>
                        </label>
                    </div>
                    <p class="qdf-hint"><i class="fas fa-circle-info"></i> İlk tarih yukarıdaki başlangıç/bitiş tarihidir; sonrakiler seçilen sıklıkla ötelenir.</p>
                </div>
            </div>
        </div>
    <?php endif; ?>
</div>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/products/_qv-date-fields-kultur.blade.php ENDPATH**/ ?>