@extends('Shop.layout.layout', [
	'title' => __('home.title'),
])

@section('content')

	{{ Form::open(['id' => 'category-form', 'autocomplete' => 'off']) }}
		<input type="hidden" id="display_by_rows" name="display_by_rows" value="{{ $display_by_rows ?? false }}">
		<input type="hidden" id="product_type" name="product_type" value="{{ $product_type ?? false }}">
		<input type="hidden" id="article_nature" name="article_nature" value="{{ $article_nature ?? false }}">

		<div class="row">
			<div class="col-12">
				@include('Shop.Shelves.partials.category_add')
			</div>
		</div>

		<div class="row mb-3">
			<div class="col-9">
				@include('Shop.Shelves.partials.breadcrumb')
			</div>
			<div class="col-3 text-right">
				@include('Shop.Shelves.partials.display-type')
			</div>
		</div>

		<div class="row">
			<div class="col-12">
				<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
			</div>
		</div>

		@if (count($tags))
			<div class="mb-3">
				@include('Shop._partials.display_filters')
			</div>
			@include('Shop.Tags.partials.filter')
		@endif
			
		@if ($display_by_rows ?? false)
			@include('Shop.Shelves.partials.category_articles_rows')
		@else
			@include('Shop.Shelves.partials.category_articles')
		@endif
	{{ Form::close() }}

@endsection

@include('load.layout.modal')
@include('load.basket')

@push('js')
	<script>
		initBasket();
	</script>
@endpush
