Rename Admin views directory, add some functions on models
This commit is contained in:
11
resources/views/Admin/Shop/SaleChannels/create.blade.php
Normal file
11
resources/views/Admin/Shop/SaleChannels/create.blade.php
Normal 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
|
||||
15
resources/views/Admin/Shop/SaleChannels/edit.blade.php
Normal file
15
resources/views/Admin/Shop/SaleChannels/edit.blade.php
Normal 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
|
||||
22
resources/views/Admin/Shop/SaleChannels/form.blade.php
Normal file
22
resources/views/Admin/Shop/SaleChannels/form.blade.php
Normal 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
|
||||
9
resources/views/Admin/Shop/SaleChannels/list.blade.php
Normal file
9
resources/views/Admin/Shop/SaleChannels/list.blade.php
Normal 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
|
||||
36
resources/views/Admin/Shop/SaleChannels/show.blade.php
Normal file
36
resources/views/Admin/Shop/SaleChannels/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