<?php
	$terms = isset($_GET['term']) ? $_GET['term'] : false;
	$search = get_field('search_page', 'option');
?>

<div class='header__search'>
	<div class='header__search__icon'>
		<?php echo $__env->make('elements.svg.search-icon', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
	</div>
	<form action="<?php echo e($search); ?>" class="header__search__form">
		<div class="header__search__input">
			<button type="submit" class="header__search__button">
				<?php echo $__env->make('elements.svg.search-icon', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
			</button>
			<input type="text"
				name="term"
				placeholder="<?php echo e(__('Pretraživanje', 'crofauna')); ?>"
				autocomplete="off"
				pattern=".{3,}"
				title="Minimun 3 characters"
				required
				class="header__search__term"
				<?php if($terms): ?>
					value="<?php echo e($terms); ?>"
				<?php endif; ?>
				>
		</div>
		<div class="header__search__close">
			<span></span>
			<span></span>
		</div>
	</form>
</div>
<?php /**PATH D:\Projekti\WordPress\aphea\public\app\themes\aphea\resources\views/elements/header/search.blade.php ENDPATH**/ ?>