Rename Admin views directory, add some functions on models

This commit is contained in:
Ludovic CANDELLIER
2021-07-27 22:12:58 +02:00
parent daeece59c9
commit 9a0601d473
229 changed files with 81 additions and 349 deletions

View File

@@ -0,0 +1,11 @@
@extends('layout.index', [
'title' => __('sale_channels.title'),
'subtitle' => __('sale_channels.create.title'),
'breadcrumb' => [__('sale_channels.title'), __('sale_channels.create.title')]
])
@section('content')
{{ Form::open(['route' => 'Admin.Shop.SaleChannels.store', 'id' => 'sale_channels-form', 'autocomplete' => 'off']) }}
@include('Admin.Shop.SaleChannels.form')
</form>
@endsection

View File

@@ -0,0 +1,15 @@
@extends('layout.index', [
'title' => __('sale_channels.title'),
'subtitle' => __('sale_channels.edit'),
'breadcrumb' => ['SaleChannel']
])
@section('content')
{{ Form::open(['route' => 'Admin.Shop.SaleChannels.store', 'id' => 'sale_channels-form', 'autocomplete' => 'off']) }}
<input type="hidden" name="id" value="{{ $sale_channel['id'] }}">
@include('Admin.Shop.SaleChannels.form')
</form>
@endsection

View File

@@ -0,0 +1,22 @@
<div class="row">
<div class="col-md-8">
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'name', 'value' => $sale_channel['name'] ?? null, 'required' => true])
{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'value' => $sale_channel['description'] ?? null, 'class' => 'editor', 'required' => false])
</div>
</div>
@include('components.save')
@include('load.form.editor.editor')
@push('js')
<script>
$(function() {
initEditor();
});
</script>
@endpush

View File

@@ -0,0 +1,9 @@
@extends('layout.index', [
'title' => __('Shop.sale_channels.title'),
'subtitle' => __('Shop.sale_channels.list'),
'breadcrumb' => [__('Shop.sale_channels.title')]
])
@section('content')
@include('components.datatable', ['route' => route('Admin.Shop.SaleChannels.index'), 'model' => 'sale_channels'])
@endsection

View 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