
<?php
    $uf = $uf ?? route("$editBase.update-field", $tour);
    $tagsArr = is_array($tour->tags ?? null) ? $tour->tags : [];
    $previewTitle = $tour->meta_title ?: $tour->name;
    $previewDesc  = $tour->meta_description ?: ($tour->short_description ?: 'Bu tur için henüz bir açıklama girilmedi.');
    $host = preg_replace('#^https?://#', '', rtrim(config('app.url'), '/'));
    // editBase 'agency.products.kultur-turlari' → 'kultur-turlari'
    $urlSegment = $urlSegment ?? \Illuminate\Support\Str::afterLast($editBase, '.');
    $previewUrl = $host . ' › ' . $urlSegment . ' › ' . ($tour->slug ?? '');
?>

<div class="pqv-section qv-seo"
     data-qv-seo
     data-fallback-title="<?php echo e($tour->name); ?>"
     data-fallback-desc="<?php echo e($tour->short_description); ?>"
     data-host="<?php echo e($host); ?>"
     data-slug="<?php echo e($tour->slug); ?>">

    <div class="pqv-sec-title"><i class="fas fa-search"></i> SEO ve Meta Bilgileri</div>

    
    <div class="qv-serp" data-qv-serp>
        <div class="qv-serp-head"><i class="fab fa-google"></i> Arama sonucu önizlemesi</div>
        <div class="qv-serp-card">
            <div class="qv-serp-url" data-serp-url><?php echo e($previewUrl); ?></div>
            <div class="qv-serp-title" data-serp-title><?php echo e($previewTitle); ?></div>
            <div class="qv-serp-desc" data-serp-desc><?php echo e($previewDesc); ?></div>
        </div>
    </div>

    <div class="pqv-grid">
        <div class="qv-seo-field" data-seo="title" data-max="60" style="grid-column:1/-1">
            <?php echo $__env->make('agency.products._qv-field', ['field' => 'meta_title', 'label' => 'Meta Başlık', 'display' => $tour->meta_title, 'wide' => true], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <div class="qv-seo-meta"><span class="form-text">Boş bırakılırsa tur adı kullanılır</span><span class="qv-cc">0/60</span></div>
        </div>
        <div class="qv-seo-field" data-seo="desc" data-max="160" style="grid-column:1/-1">
            <?php echo $__env->make('agency.products._qv-field', ['field' => 'meta_description', 'label' => 'Meta Açıklama', 'type' => 'textarea', 'display' => $tour->meta_description], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <div class="qv-seo-meta"><span class="form-text">Boş bırakılırsa kısa açıklama kullanılır</span><span class="qv-cc">0/160</span></div>
        </div>
        <div class="qv-seo-field" style="grid-column:1/-1">
            <?php echo $__env->make('agency.products._qv-field', ['field' => 'meta_keywords', 'label' => 'Anahtar Kelimeler', 'display' => $tour->meta_keywords, 'wide' => true], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <div class="qv-seo-meta"><span class="form-text">Virgülle ayrılmış anahtar kelimeler</span></div>
        </div>
    </div>

    
    <div class="mt-3">
        <div class="pqv-label mb-1">Etiketler (Tags)</div>
        <div class="qv-tags" data-qv-tags data-qv-url="<?php echo e($uf); ?>">
            <div class="qv-tags-box" data-qv-tags-box>
                <?php $__currentLoopData = $tagsArr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <span class="qv-tag" data-qv-tag><?php echo e($tag); ?><button type="button" class="qv-tag-x" data-qv-tag-remove><i class="fas fa-times"></i></button></span>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <input type="text" class="qv-tag-input" data-qv-tag-input placeholder="Etiket yazıp Enter'a basın">
        </div>
        <span class="form-text">Enter tuşuna basarak etiket ekleyin</span>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/products/_qv-seo-inline.blade.php ENDPATH**/ ?>