<form method="method" action="{{ route('Shop.Searches.search') }}" id="search-general">

	<div class="input-group">
		<div class="input-group-prepend">
			@include('components.form.select', [
				'name' => 'product_type',
				'list' => [
					'botanic' => 'Semences & Plants',
					'merchandise' => 'Marchandises',
				],
				'value' => $search['product_type'] ?? null,

			])
	  	</div>
	  	<input type="text" name="search" value="{{ $search['search'] ?? null }}" class="form-control search-btn" aria-label="Chercher">
	  	<div class="input-group-append">
	  		<span class="input-group-text"><i class="btn btn-sm fa fa-search"></i></span>
	  	</div>
	</div>
</form>

@push('js')
	<script>
		$(function() {
			$('#search-general .fa-search').click(function() {
				$('#search-general').submit();
			});
		});
	</script>
@endpush