<div class="row seacrh-row">
    <div class="col-md-12 filters-wrapper">
        <?php if(!isset($hideSearch)): ?>
            <form method="GET">
                <input type="text" name="search" id="search" <?php if(isset($active['search'])): ?> value="<?php echo e($active['search']); ?>" <?php else: ?> value="<?php echo e(old('search')); ?>" <?php endif; ?>  placeholder="<?php echo e(trans('interface.search')); ?>">
                <button><i class="fa fa-search" aria-hidden="true"></i></button>
            </form>
        <?php endif; ?>
        <div class="hidden-xs extra-filters">
            <?php if(count($years) > 0): ?>
                <a href="<?php echo e(Request::path()); ?>?year=all" <?php if(!isset($active['year']) || $active['year'] == 'all'): ?> class="active all-filter" <?php endif; ?>>All</a> 
                <?php foreach($years as $year): ?>
                    <a href="<?php echo e(Request::path()); ?>?year=<?php echo e($year); ?>" <?php if(isset($active['year']) && $active['year'] == $year): ?> class="active" <?php endif; ?>><?php echo e($year); ?></a>
                <?php endforeach; ?>
            <?php endif; ?>
            <?php if(count($seasons) > 0): ?>
                <a href="<?php echo e(Request::path()); ?>?season=all" <?php if(!isset($active['season']) || $active['season'] == 'all'): ?> class="active all-filter" <?php endif; ?>>All</a> 
                <?php foreach($seasons as $season): ?>
                    <a href="<?php echo e(Request::path()); ?>?season=<?php echo e($season->id); ?>" <?php if(isset($active['season']) && $active['season'] == $season->id): ?> class="active" <?php endif; ?>><?php echo e($season->prefisso); ?></a>
                <?php endforeach; ?>
            <?php endif; ?>
            <?php if(count($types) > 0): ?>
                <a href="<?php echo e(Request::path()); ?>?type=all" <?php if(!isset($active['type']) || $active['type'] == 'all'): ?> class="active all-filter" <?php endif; ?>>All</a> 
                <?php foreach($types as $idType => $type): ?>
                    <a href="<?php echo e(Request::path()); ?>?type=<?php echo e($idType); ?>" <?php if(isset($active['type']) && $active['type'] == $idType): ?> class="active" <?php endif; ?>><?php echo e($type); ?></a>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
    </div>
</div>