Rename Admin views directory, add some functions on models
This commit is contained in:
15
resources/views/Admin/Shop/Variations/create.blade.php
Normal file
15
resources/views/Admin/Shop/Variations/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.variations.title'),
|
||||
'subtitle' => __('Shop.variations.add'),
|
||||
'breadcrumb' => [__('Shop.variations.title'), __('Shop.variations.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Variations.store', 'id' => 'article-family-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Variations.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Shop/Variations/edit.blade.php
Normal file
16
resources/views/Admin/Shop/Variations/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Variations.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" value="{{ $variation['id'] }}">
|
||||
@include('Admin.Shop.Variations.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
37
resources/views/Admin/Shop/Variations/form.blade.php
Normal file
37
resources/views/Admin/Shop/Variations/form.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ Form::label('package_id', 'Package') }}
|
||||
@include('components.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $variation['package_id'] ?? false, 'required' => true, 'with_empty' => ''])
|
||||
</div>
|
||||
<div class="col-2">
|
||||
{{ Form::label('quantity', 'Quantité') }}
|
||||
@include('components.input', ['name' => 'quantity', 'value' => $variation['quantity'] ?? false, 'required' => true])
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('unity_id', 'Unité') }}
|
||||
@include('components.select', ['name' => 'unity_id', 'list' => $unities ?? [], 'value' => $variation['unity_id'] ?? false, 'required' => true, 'with_empty' => ''])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($variation['description']) ? $variation['description'] : null, 'class' => 'editor', 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.editor')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
9
resources/views/Admin/Shop/Variations/list.blade.php
Normal file
9
resources/views/Admin/Shop/Variations/list.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.variations.title'),
|
||||
'subtitle' => __('Shop.variations.list'),
|
||||
'breadcrumb' => [__('Shop.variations.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Variations.index'), 'model' => 'variations'])
|
||||
@endsection
|
||||
36
resources/views/Admin/Shop/Variations/show.blade.php
Normal file
36
resources/views/Admin/Shop/Variations/show.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('Shop.Products') }}" method="GET">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<h2>{{ $prix_total }} €</h2>
|
||||
<h4>{{ $residence['type_produit']['name'] }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('Hestimmo.modules.Lot.partials.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user