
<?php
    $compact = $compact ?? false;
    $popular = $popular ?? [];
    $activeType = $activeType ?? null;
    $searchAction = $preview ? '#' : route('customer.agency.tours.search', $agency->slug);
?>
<?php if($tourTypes->isNotEmpty()): ?>
<div class="v-search-band<?php echo e($compact ? ' v-search-band--compact' : ''); ?>">
    <form action="<?php echo e($searchAction); ?>" method="GET" class="v-search-band__form" <?php if($preview): ?> onsubmit="return false" <?php endif; ?>>
        <div class="v-search-band__tabs" role="tablist">
            <?php $__currentLoopData = $tourTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <button type="button"
                        class="v-search-band__tab<?php echo e(($activeType?->id ?? $tourTypes->first()->id) === $type->id ? ' is-active' : ''); ?>"
                        data-type-slug="<?php echo e($type->route_slug); ?>">
                    <?php if (isset($component)) { $__componentOriginal1d587595677eea2b7eb65f0cd1501da8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d587595677eea2b7eb65f0cd1501da8 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.voyage.icon','data' => ['name' => $type->code === 'gunubirlik-tur' ? 'sun' : ($type->code === 'yurtdisi-turu' ? 'globe' : 'route')]] + (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' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($type->code === 'gunubirlik-tur' ? 'sun' : ($type->code === 'yurtdisi-turu' ? 'globe' : 'route'))]); ?>
<?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 echo e($type->name); ?></span>
                </button>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>

        <input type="hidden" name="type" value="<?php echo e(($activeType ?? $tourTypes->first())->route_slug); ?>" id="vSearchType">

        <div class="v-search-band__row">
            <label class="v-search-band__field">
                <span class="v-search-band__label">
                    <?php if (isset($component)) { $__componentOriginal1d587595677eea2b7eb65f0cd1501da8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d587595677eea2b7eb65f0cd1501da8 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.voyage.icon','data' => ['name' => 'pin']] + (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' => 'pin']); ?>
<?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; ?> Gidilecek Yer
                </span>
                <input type="text" name="q" value="<?php echo e(request('q')); ?>"
                       placeholder="Şehir, bölge ya da tur adı" class="v-search-band__input" autocomplete="off">
            </label>
            <button type="submit" class="v-search-band__submit">
                <?php if (isset($component)) { $__componentOriginal1d587595677eea2b7eb65f0cd1501da8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d587595677eea2b7eb65f0cd1501da8 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.voyage.icon','data' => ['name' => 'search']] + (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' => 'search']); ?>
<?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>HEMEN ARA</span>
            </button>
        </div>

        <?php if(!$compact && count($popular)): ?>
            <div class="v-search-band__popular">
                <span class="v-search-band__popular-label">Popüler Aramalar</span>
                <?php $__currentLoopData = $popular; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pill): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <a href="<?php echo e($preview ? '#' : ($pill['url'] ?? '#')); ?>" class="v-search-band__pill"><?php echo e($pill['label'] ?? ''); ?></a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endif; ?>
    </form>
</div>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/site/templates/voyage/partials/search-band.blade.php ENDPATH**/ ?>