fixes
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customers.title'),
|
||||
'subtitle' => __('shop.customers.edit'),
|
||||
'breadcrumb' => [__('shop.customers.title')]
|
||||
'title' => __('shop.customer_addresses.title'),
|
||||
'subtitle' => __('shop.customer_addresses.edit'),
|
||||
'breadcrumb' => [__('shop.customer_addresses.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer['id'] }}">
|
||||
@include('Admin.Shop.Customers.form')
|
||||
</form>
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.CustomerAddresses.store', 'id' => 'customer_address-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer_address['id'] ?? null }}">
|
||||
@include('Admin.Shop.CustomerAddresses.form')
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('sale_delivery_id', __('shop.deliveries.name')) }}
|
||||
@include('components.form.select', [
|
||||
'label' => __('shop.deliveries.name'),
|
||||
'name' => 'deliveries[]',
|
||||
'list' => $deliveries ?? [],
|
||||
'values' => $customer['deliveries'] ?? null,
|
||||
|
||||
15
resources/views/Admin/Shop/CustomerInvoices/create.blade.php
Normal file
15
resources/views/Admin/Shop/CustomerInvoices/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customer_addresses.title'),
|
||||
'subtitle' => __('shop.customer_addresses.add'),
|
||||
'breadcrumb' => [__('shop.customers.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open([
|
||||
'route' => 'Admin.Shop.CustomerAddresses.store',
|
||||
'id' => 'customer_address-form',
|
||||
'autocomplete' => 'off',
|
||||
]) }}
|
||||
@include('components.address')
|
||||
</form>
|
||||
@endsection
|
||||
12
resources/views/Admin/Shop/CustomerInvoices/edit.blade.php
Normal file
12
resources/views/Admin/Shop/CustomerInvoices/edit.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customer_addresses.title'),
|
||||
'subtitle' => __('shop.customer_addresses.edit'),
|
||||
'breadcrumb' => [__('shop.customer_addresses.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.CustomerAddresses.store', 'id' => 'customer_address-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer_address['id'] ?? null }}">
|
||||
@include('Admin.Shop.CustomerAddresses.form')
|
||||
</form>
|
||||
@endsection
|
||||
135
resources/views/Admin/Shop/CustomerInvoices/form.blade.php
Normal file
135
resources/views/Admin/Shop/CustomerInvoices/form.blade.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('first_name', 'Prénom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'first_name',
|
||||
'value' => $customer['first_name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('last_name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'last_name',
|
||||
'value' => $customer['last_name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('company', 'Société') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'company',
|
||||
'value' => $customer['company'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tva', 'TVA') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'tva',
|
||||
'value' => $customer['tva'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('email', 'Email') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'email',
|
||||
'value' => $customer['email'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('phone', 'Téléphone') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'phone',
|
||||
'value' => $customer['phone'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('address', 'Adresse') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'address',
|
||||
'value' => $customer['address'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('address2', 'Adresse complémentaire') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'address2',
|
||||
'value' => $customer['address2'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">
|
||||
{{ Form::label('zipcode', 'Code postal') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'zipcode',
|
||||
'value' => $customer['zipcode'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-8">
|
||||
{{ Form::label('city', 'Ville') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'city',
|
||||
'value' => $customer['city'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
@include('components.form.select', [
|
||||
'label' => __('shop.deliveries.name'),
|
||||
'name' => 'deliveries[]',
|
||||
'list' => $deliveries ?? [],
|
||||
'values' => $customer['deliveries'] ?? null,
|
||||
'with_empty' => '',
|
||||
'class' => 'select2',
|
||||
'multiple' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@if ($customer['addresses'])
|
||||
@include('components.address', [
|
||||
'with_country' => false,
|
||||
'prefix' => 'addresses[0]',
|
||||
'with_tab' => true,
|
||||
'item' => $customer['addresses'][0],
|
||||
])
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initSaveForm('#customer-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
11
resources/views/Admin/Shop/CustomerInvoices/list.blade.php
Normal file
11
resources/views/Admin/Shop/CustomerInvoices/list.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<x-card>
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.CustomerInvoices.index'),
|
||||
'model' => 'customer_invoices',
|
||||
'with_print' => false,
|
||||
'with_filters' => false,
|
||||
])
|
||||
<x-layout.modal title="Filtres" id="modal-customer_invoices-filters">
|
||||
@include('Admin.Shop.CustomerInvoices.partials.filters', ['model' => 'customer_invoices'])
|
||||
</x-layout.modal>
|
||||
</x-card>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<input type="text" name="customer_id" value="{{ $customer['id'] ?? false }}">
|
||||
</form>
|
||||
36
resources/views/Admin/Shop/CustomerInvoices/show.blade.php
Normal file
36
resources/views/Admin/Shop/CustomerInvoices/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
|
||||
15
resources/views/Admin/Shop/CustomerOrders/create.blade.php
Normal file
15
resources/views/Admin/Shop/CustomerOrders/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customer_addresses.title'),
|
||||
'subtitle' => __('shop.customer_addresses.add'),
|
||||
'breadcrumb' => [__('shop.customers.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open([
|
||||
'route' => 'Admin.Shop.CustomerAddresses.store',
|
||||
'id' => 'customer_address-form',
|
||||
'autocomplete' => 'off',
|
||||
]) }}
|
||||
@include('components.address')
|
||||
</form>
|
||||
@endsection
|
||||
12
resources/views/Admin/Shop/CustomerOrders/edit.blade.php
Normal file
12
resources/views/Admin/Shop/CustomerOrders/edit.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customer_addresses.title'),
|
||||
'subtitle' => __('shop.customer_addresses.edit'),
|
||||
'breadcrumb' => [__('shop.customer_addresses.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.CustomerAddresses.store', 'id' => 'customer_address-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer_address['id'] ?? null }}">
|
||||
@include('Admin.Shop.CustomerAddresses.form')
|
||||
</form>
|
||||
@endsection
|
||||
135
resources/views/Admin/Shop/CustomerOrders/form.blade.php
Normal file
135
resources/views/Admin/Shop/CustomerOrders/form.blade.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('first_name', 'Prénom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'first_name',
|
||||
'value' => $customer['first_name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('last_name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'last_name',
|
||||
'value' => $customer['last_name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('company', 'Société') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'company',
|
||||
'value' => $customer['company'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tva', 'TVA') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'tva',
|
||||
'value' => $customer['tva'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('email', 'Email') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'email',
|
||||
'value' => $customer['email'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('phone', 'Téléphone') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'phone',
|
||||
'value' => $customer['phone'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('address', 'Adresse') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'address',
|
||||
'value' => $customer['address'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('address2', 'Adresse complémentaire') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'address2',
|
||||
'value' => $customer['address2'] ?? null,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">
|
||||
{{ Form::label('zipcode', 'Code postal') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'zipcode',
|
||||
'value' => $customer['zipcode'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-8">
|
||||
{{ Form::label('city', 'Ville') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'city',
|
||||
'value' => $customer['city'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
@include('components.form.select', [
|
||||
'label' => __('shop.deliveries.name'),
|
||||
'name' => 'deliveries[]',
|
||||
'list' => $deliveries ?? [],
|
||||
'values' => $customer['deliveries'] ?? null,
|
||||
'with_empty' => '',
|
||||
'class' => 'select2',
|
||||
'multiple' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@if ($customer['addresses'])
|
||||
@include('components.address', [
|
||||
'with_country' => false,
|
||||
'prefix' => 'addresses[0]',
|
||||
'with_tab' => true,
|
||||
'item' => $customer['addresses'][0],
|
||||
])
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initSaveForm('#customer-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
11
resources/views/Admin/Shop/CustomerOrders/list.blade.php
Normal file
11
resources/views/Admin/Shop/CustomerOrders/list.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<x-card>
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.CustomerOrders.index'),
|
||||
'model' => 'customer_orders',
|
||||
'with_print' => false,
|
||||
'with_filters' => false,
|
||||
])
|
||||
<x-layout.modal title="Filtres" id="modal-customer_orders-filters">
|
||||
@include('Admin.Shop.CustomerOrders.partials.filters', ['model' => 'customer_orders'])
|
||||
</x-layout.modal>
|
||||
</x-card>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<input type="text" name="customer_id" value="{{ $customer['id'] ?? false }}">
|
||||
</form>
|
||||
36
resources/views/Admin/Shop/CustomerOrders/show.blade.php
Normal file
36
resources/views/Admin/Shop/CustomerOrders/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
|
||||
@@ -114,9 +114,15 @@
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-6">
|
||||
<x-layout.box-collapse title='Adresses' id='form-customer-address'>
|
||||
<x-layout.box-collapse title='Adresses' id='customer-addresses'>
|
||||
@include('Admin.Shop.CustomerAddresses.list', ['dataTable' => $customer_addresses])
|
||||
</x-layout.box-collapse>
|
||||
<x-layout.box-collapse title='Factures' id='customer-invoices'>
|
||||
@include('Admin.Shop.CustomerInvoices.list', ['dataTable' => $customer_invoices])
|
||||
</x-layout.box-collapse>
|
||||
<x-layout.box-collapse title='Commandes' id='customer-orders'>
|
||||
@include('Admin.Shop.CustomerOrders.list', ['dataTable' => $customer_orders])
|
||||
</x-layout.box-collapse>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -124,12 +130,14 @@
|
||||
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
@include('load.layout.chevron')
|
||||
|
||||
@push('js')
|
||||
{!! JsValidator::formRequest('App\Http\Requests\Admin\Shop\StoreCustomerPost', '#customer-form') !!}
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initChevron();
|
||||
initSelect2();
|
||||
initSaveForm('#customer-form');
|
||||
});
|
||||
|
||||
@@ -47,17 +47,15 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.table-responsive -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="card-header clearfix">
|
||||
<!--
|
||||
<a href="{{ route('Admin.Shop.Orders.create') }}" class="btn btn-sm btn-info btn-flat pull-left">
|
||||
Nouvelle commande
|
||||
</a>
|
||||
-->
|
||||
<a href="{{ route('Admin.Shop.Orders.index') }}" class="btn btn-sm btn-default btn-flat pull-right">
|
||||
Voir toutes les commandes
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
@@ -5,16 +5,17 @@
|
||||
'value' => $calcul['type_id'] ?? false,
|
||||
'list' => $delivery_types ?? [],
|
||||
'label' => __('shop.delivery_types.name'),
|
||||
'with_empty' => '',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
<x-form.inputs.number name="weight" value="{{ $calcul['weight'] ?? 0}}" label="Poids" />
|
||||
<x-form.inputs.number name="weight" value="{{ $calcul['weight'] ?? 0 }}" label="Poids" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<x-form.inputs.money name="price" value="{{ $calcul['price'] ?? 0}}" label="Prix" />
|
||||
<x-form.inputs.money name="price" value="{{ $calcul['price'] ?? 0 }}" label="Prix" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +24,6 @@
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.delivery_type_calculations.title'),
|
||||
'subtitle' => __('shop.delivery_type_calculations.list'),
|
||||
'breadcrumb' => [__('shop.delivery_type_calculations.title')]
|
||||
'breadcrumb' => [__('shop.delivery_type_calculations.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@@ -9,7 +9,8 @@
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.DeliveryTypeCalculations.index'),
|
||||
'model' => 'delivery_type_calculations',
|
||||
'with_filters' => true,
|
||||
'with_filters' => false,
|
||||
'with_print' => false,
|
||||
])
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -18,7 +19,7 @@
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.add'),
|
||||
'breadcrumb' => [__('shop.deliveries.title'), __('shop.deliveries.add')]
|
||||
'title' => __('shop.delivery_types.title'),
|
||||
'subtitle' => __('shop.delivery_types.add'),
|
||||
'breadcrumb' => [__('shop.delivery_types.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Deliveries.form')
|
||||
</form>
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.DeliveryTypes.form')
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.edit'),
|
||||
'breadcrumb' => [__('shop.deliveries.title')]
|
||||
'title' => __('shop.delivery_types.title'),
|
||||
'subtitle' => __('shop.delivery_types.edit'),
|
||||
'breadcrumb' => [__('shop.delivery_types.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $delivery['id'] }}">
|
||||
@include('Admin.Shop.Deliveries.form')
|
||||
</form>
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.DeliveryTypes.form')
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@@ -1,69 +1,33 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-xl-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('sale_channel_id', __('shop.sale_channels.name')) }}
|
||||
@include('components.form.select', ['name' => 'sale_channel_id', 'list' => $sale_channels ?? [], 'value' => $delivery['sale_channel_id'] ?? null, 'with_empty' => '', 'class' => 'select2'])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
{{ Form::label('active', __('Actif')) }}<br/>
|
||||
@include("components.form.toggle", ['name' => 'active', 'value' => $delivery['active'] ?? false, 'on' => __('active'), 'off' => __('inactive')])
|
||||
</div>
|
||||
<div class="col-3">
|
||||
{{ Form::label('is_public', __('Type')) }}
|
||||
@include('components.form.toggle', ['name' => 'is_public', 'value' => $delivery['is_public'] ?? false, 'on' => __('public'), 'off' => __('administré')])
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('at_house', __('Défaut')) }}
|
||||
@include('components.form.checkboxes.icheck', ['name' => 'at_house', 'value' => $delivery['at_house'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('name', __('Nom')) }}
|
||||
@include('components.form.input', ['name' => 'name', 'value' => $delivery['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('', __('Description')) }}
|
||||
<textarea name="description" class="form-control">{{ $delivery['description'] ?? '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.address', ['with_country' => false])
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-3">
|
||||
{{ Form::label('event_date_begin', __('Date de début')) }}
|
||||
@include('components.form.datepicker', ['name' => 'event_date_begin', 'value' => $delivery['event_date_begin'] ?? null])
|
||||
</div>
|
||||
<div class="col-3">
|
||||
{{ Form::label('event_date_end', __('Date de fin')) }}
|
||||
@include('components.form.datepicker', ['name' => 'event_date_end', 'value' => $delivery['event_date_end'] ?? null])
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', __('Nom')) }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $delivery['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('', __('Description')) }}
|
||||
<textarea name="description" class="form-control">{{ $delivery['description'] ?? '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-save />
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,38 +1,37 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $family['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.form.textarea', [
|
||||
'name' => 'description',
|
||||
'value' => $description ?? null,
|
||||
'class' => 'editor',
|
||||
'required' => false,
|
||||
])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
<x-save />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $family['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.form.textarea', [
|
||||
'name' => 'description',
|
||||
'value' => $description ?? null,
|
||||
'class' => 'editor',
|
||||
'required' => false,
|
||||
])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.form.buttons.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
'prefix' => 'invoices',
|
||||
'addresses' => $customer['invoice_addresses'],
|
||||
'with_name' => true,
|
||||
'route_del' => route(''),
|
||||
])
|
||||
</x-card>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
if ($errors->registration) {
|
||||
if ($errors->registration->all()) {
|
||||
$classIdent = 'd-none';
|
||||
$classRegister = '';
|
||||
} else {
|
||||
|
||||
@@ -1,39 +1,31 @@
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
'title' => __('home.title'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('Shop.Tags.partials.filter')
|
||||
|
||||
@if (!empty($text))
|
||||
<div class="row m-0 mb-3">
|
||||
<div class="col-12 p-3 green-dark" style="font-size: 1.2em;">{!! $text !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 p-0">
|
||||
@foreach ($shelves as $shelve)
|
||||
@include('Shop.Homepage.partials.sliderByShelve')
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@include('Shop.Tags.partials.filter')
|
||||
|
||||
@if (!empty($text))
|
||||
<div class="row m-0 mb-3">
|
||||
<div class="col-12 p-3 green-dark" style="font-size: 1.2em;">{!! $text !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 p-0">
|
||||
@foreach ($shelves as $shelve)
|
||||
@include('Shop.Homepage.partials.sliderByShelve')
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@include('load.slick')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.slider').slick({
|
||||
lazyLoad: 'ondemand',
|
||||
slidesToShow: 5,
|
||||
slidesToScroll: 1,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 5000
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
initSlick();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<button type="button" class="btn bg-light green-dark p-0" data-toggle="dropdown">
|
||||
@if (App\Repositories\Shop\Customers::isConnected())
|
||||
<img src="{{ App\Repositories\Shop\Customers::getAvatar() }}" class="img-fluid" title="{{ App\Repositories\Shop\Customers::getName() }}">
|
||||
{!! App\Repositories\Shop\CustomerAvatars::getImg() !!}
|
||||
@else
|
||||
<img src="/img/header/login.svg" width="36px">
|
||||
<img src='/img/header/login.svg' width='36px' alt='login'>
|
||||
@endif
|
||||
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu" aria-labelledby="dLabel">
|
||||
<ul class="dropdown-menu" aria-labelledby="Connexion">
|
||||
@if (App\Repositories\Shop\Customers::isConnected())
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.Customers.profile') }}" title="Accèdez à vos factures, remises ..." rel="nofollow">
|
||||
|
||||
@@ -1,10 +1,22 @@
|
||||
@if(!defined('LOAD_SLICKJS'))
|
||||
@if (!defined('LOAD_SLICKJS'))
|
||||
@push('css')
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick.css') }}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick-theme.css') }}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/assets/plugins/slick/slick-theme.css') }}" />
|
||||
@endpush
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{ asset('/assets/plugins/slick/slick.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('/assets/plugins/slick/slick.min.js') }}"></script>
|
||||
<script>
|
||||
function initSlick(sel = '.slider') {
|
||||
return $(sel).slick({
|
||||
lazyLoad: 'ondemand',
|
||||
slidesToShow: 5,
|
||||
slidesToScroll: 1,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 5000
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@php(define('LOAD_SLICKJS', true))
|
||||
@endif
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user