This commit is contained in:
Ludovic CANDELLIER
2021-11-07 19:58:38 +01:00
parent c7c8e18cbc
commit 63c6671c97
22 changed files with 143 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
@extends('layout.index', [
'title' => __('Botanic.species.title'),
'subtitle' => __('Botanic.species.edit'),
'breadcrumb' => [__('Botanic.species.title'), __('Botanic.species.list')]
'title' => __('botanic.species.title'),
'subtitle' => __('botanic.species.edit'),
'breadcrumb' => [__('botanic.species.title'), __('botanic.species.list')]
])
@section('content')

View File

@@ -1,16 +1,11 @@
@extends('layout.index', [
'title' => __('Botanic.varieties.title'),
'subtitle' => __('Botanic.varieties.add'),
'breadcrumb' => [__('Botanic.varieties.title'), __('Botanic.varieties.add')]
'title' => __('botanic.varieties.title'),
'subtitle' => __('botanic.varieties.add'),
'breadcrumb' => [__('botanic.varieties.title'), __('botanic.varieties.add')]
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
@include('Admin.Botanic.Varieties.form')
</form>
@endsection

View File

@@ -5,10 +5,8 @@
])
@section('content')
{{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
<input type="hidden" name="id" id="id" value="{{ $variety['id'] }}">
@include('Admin.Botanic.Varieties.form')
</form>
@endsection

View File

@@ -4,7 +4,7 @@
<div class="row mb-3">
<div class="col-3">
{{ Form::label('model', 'Familles de produit') }}<br>
@include('components.form.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2', 'with_empty' => ''])
@include('components.form.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2', 'with_empty' => '', 'required' => true])
</div>
<div class="col-6">
{{ Form::label('model_id', 'Produit') }}<br>

View File

@@ -6,11 +6,24 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Admin.Shop.Offers.index'), 'model' => 'offers', 'with_filters' => true])
@include('components.datatable', ['route' => route('Admin.Shop.Offers.index'), 'model' => 'offers', 'with_filters' => true, 'callback' => 'handleOffer();'])
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-offers-filters'])
@include('Admin.Shop.Offers.partials.filters', ['model' => 'offers'])
@endcomponent
@endcomponent
@endsection
@include('load.form.select2')
@include('load.form.select2')
@include('load.form.toggle')
@push('js')
<script>
function handleOffer() {
initToggle("{{ route('Admin.Shop.Offers.toggleActive') }}");
}
$(document).ready(function () {
initSelect2();
});
</script>
@endpush

View File

@@ -6,11 +6,11 @@
{{ Form::label('ref', 'Référence') }}<br>
{{ $article['ref'] ?? null }}
</div>
<div class="col-5">
<div class="col-6">
{{ Form::label('name', 'Nom') }}<br>
{{ $article['name'] ?? null }}
</div>
<div class="col-3">
<div class="col-3" class="text-right">
{!! $article['image'] !!}
</div>
</div>

View File

@@ -3,7 +3,7 @@
<tr>
@foreach ($prices as $price)
<td>
{{ $price['quantity'] ?? null }} : {{ $price['price'] ?? null }}
{{ $price['code'] ?? null }} - {{ $price['quantity'] ?? null }} : {{ $price['price_taxed'] ?? null }}
</td>
@endforeach
</tr>