Rename Admin views directory, add some functions on models
This commit is contained in:
28
resources/views/Admin/Shop/Customers/create.blade.php
Normal file
28
resources/views/Admin/Shop/Customers/create.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('customers.title'),
|
||||
'subtitle' => __('customers.create.title'),
|
||||
'breadcrumb' => [__('customers.title'), __('customers.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Admin.Shop.Customers.index") }}" class="btn btn-default">
|
||||
{{ __('customers.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Admin.Shop.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Shop/Customers/edit.blade.php
Normal file
16
resources/views/Admin/Shop/Customers/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Clients',
|
||||
'subtitle' => 'Edition d\'un client',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Customers.update', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer['id'] }}">
|
||||
@include('Admin.Shop.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
23
resources/views/Admin/Shop/Customers/form.blade.php
Normal file
23
resources/views/Admin/Shop/Customers/form.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => (isset($family['name'])) ? $family['name'] : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
11
resources/views/Admin/Shop/Customers/list.blade.php
Normal file
11
resources/views/Admin/Shop/Customers/list.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.customers.title'),
|
||||
'subtitle' => __('Shop.customers.list'),
|
||||
'breadcrumb' => [__('Shop.customers.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Customers.index'), 'model' => 'customers'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
36
resources/views/Admin/Shop/Customers/show.blade.php
Normal file
36
resources/views/Admin/Shop/Customers/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