
<?php
    $categories = $section['resolved']['categories'] ?? collect();
    $data = $section['data'] ?? [];
?>
<?php if($categories->isNotEmpty()): ?>
<section class="v-section">
    <div class="v-container">
        <header class="v-section__header">
            <?php if(!empty($data['subtitle'])): ?><span class="v-section__eyebrow"><?php echo e($data['subtitle']); ?></span><?php endif; ?>
            <h2 class="v-section__title"><?php echo e($data['title'] ?? 'Tur Temaları'); ?></h2>
        </header>
        <div class="v-theme-scroller">
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $url = $preview ? '#' : route('customer.agency.tours.index', ['agency' => $agency->slug, 'category_id' => $category->id]);
                ?>
                <a href="<?php echo e($url); ?>" class="v-theme-card">
                    <?php if($category->image): ?>
                        
                        <?php $categoryImage = preg_match('#^(data:|https?://)#', $category->image) ? $category->image : asset('storage/' . ltrim($category->image, '/')); ?>
                        <img src="<?php echo e($categoryImage); ?>" alt="<?php echo e($category->name); ?>" loading="lazy">
                    <?php else: ?>
                        <span class="v-theme-card__fallback" <?php if($category->color_code): ?> style="background: <?php echo e($category->color_code); ?>" <?php endif; ?>>
                            <?php if (isset($component)) { $__componentOriginal1d587595677eea2b7eb65f0cd1501da8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d587595677eea2b7eb65f0cd1501da8 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.voyage.icon','data' => ['name' => 'map']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('voyage.icon'); ?>
<?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(['name' => 'map']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1d587595677eea2b7eb65f0cd1501da8)): ?>
<?php $attributes = $__attributesOriginal1d587595677eea2b7eb65f0cd1501da8; ?>
<?php unset($__attributesOriginal1d587595677eea2b7eb65f0cd1501da8); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1d587595677eea2b7eb65f0cd1501da8)): ?>
<?php $component = $__componentOriginal1d587595677eea2b7eb65f0cd1501da8; ?>
<?php unset($__componentOriginal1d587595677eea2b7eb65f0cd1501da8); ?>
<?php endif; ?>
                        </span>
                    <?php endif; ?>
                    <span class="v-theme-card__label"><?php echo e($category->name); ?></span>
                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/site/templates/voyage/sections/tour_categories.blade.php ENDPATH**/ ?>