Add producers
This commit is contained in:
15
resources/views/Shop/Shelves/partials/category.blade.php
Normal file
15
resources/views/Shop/Shelves/partials/category.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
|
||||
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.layout.partials.category_add')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('Shop.layout.partials.category_articles')
|
||||
</div>
|
||||
</div>
|
||||
27
resources/views/Shop/Shelves/partials/category_add.blade.php
Normal file
27
resources/views/Shop/Shelves/partials/category_add.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
@include('components.form.button', ['id' => 'by_cards', 'icon' => 'fa-th', 'class' => 'btn-success'])
|
||||
@include('components.form.button', ['id' => 'by_rows', 'icon' => 'fa-list', 'class' => 'btn-success'])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<!--
|
||||
<form name="product_sorting" class="mt-0">
|
||||
<label>Trier par</label>
|
||||
@include('components.form.select', ['name' => 'sorting', 'list' => ['Pertinence']])
|
||||
</form>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('#by_rows').click(function() {
|
||||
var url = "{{ route('Shop.Categories.show', ['id' => $category['id'], 'by_rows' => true]) }}";
|
||||
window.location = url;
|
||||
})
|
||||
$('#by_cards').click(function() {
|
||||
var url = "{{ route('Shop.Categories.show', ['id' => $category['id']]) }}";
|
||||
window.location = url;
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-success shadow">
|
||||
<i class="fa fa-3x fa-seedling float-left"></i>
|
||||
Ajouter au panier<br>la liste des <strong>semences</strong>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-warning shadow">
|
||||
<i class="fab fa-3x fa-pagelines float-left"></i>
|
||||
Ajouter au panier<br>la liste des <strong>plants</strong>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="row">
|
||||
@if ($articles)
|
||||
@foreach ($articles as $product_name => $article)
|
||||
<div class="col-3 mb-3">
|
||||
@include('Shop.Articles.partials.article')
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="row pt-3">
|
||||
<div class="col-12">
|
||||
Il y a {{ $articles ? count($articles) : 0 }} article(s) dans la liste
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
@if ($articles)
|
||||
@foreach ($articles as $product_name => $article)
|
||||
@include('Shop.Articles.partials.article_rows')
|
||||
@endforeach
|
||||
@endif
|
||||
23
resources/views/Shop/Shelves/shelve.blade.php
Normal file
23
resources/views/Shop/Shelves/shelve.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('Shop.Tags.partials.filter')
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-8">
|
||||
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
|
||||
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.Shelves.partials.category_add')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($display_by_rows ?? false)
|
||||
@include('Shop.Shelves.partials.category_articles_rows')
|
||||
@else
|
||||
@include('Shop.Shelves.partials.category_articles')
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user