add shipping rules
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.CustomerAddresses.index'), 'model' => 'customer_addresses'])
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.CustomerAddresses.index'),
|
||||
'model' => 'customer_addresses',
|
||||
])
|
||||
@endcomponent
|
||||
|
||||
@@ -1,118 +1,118 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<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="col-md-6">
|
||||
<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 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">
|
||||
<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-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">
|
||||
{{ Form::label('sale_delivery_id', __('shop.deliveries.name')) }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'deliveries[]',
|
||||
'list' => $deliveries ?? [],
|
||||
'values' => $customer['deliveries'] ?? null,
|
||||
'with_empty' => '',
|
||||
'class' => 'select2',
|
||||
'multiple' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@component('components.layout.box-collapse', ['title' => __('Adresses'), 'id' => 'form-customer-address'])
|
||||
@include('Admin.Shop.CustomerAddresses.list', ['dataTable' => $customer_addresses])
|
||||
@endcomponent
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('sale_delivery_id', __('shop.deliveries.name')) }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'deliveries[]',
|
||||
'list' => $deliveries ?? [],
|
||||
'values' => $customer['deliveries'] ?? null,
|
||||
'with_empty' => '',
|
||||
'class' => 'select2',
|
||||
'multiple' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@component('components.layout.box-collapse', ['title' => __('Adresses'), 'id' => 'form-customer-address'])
|
||||
@include('Admin.Shop.CustomerAddresses.list', ['dataTable' => $customer_addresses])
|
||||
@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
@@ -121,10 +121,10 @@
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initSaveForm('#customer-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initSaveForm('#customer-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
11
resources/views/Admin/Shop/DeliveryPackages/create.blade.php
Normal file
11
resources/views/Admin/Shop/DeliveryPackages/create.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.add'),
|
||||
'breadcrumb' => [__('shop.deliveries.title'), __('shop.deliveries.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Deliveries.form')
|
||||
</form>
|
||||
@endsection
|
||||
12
resources/views/Admin/Shop/DeliveryPackages/edit.blade.php
Normal file
12
resources/views/Admin/Shop/DeliveryPackages/edit.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.edit'),
|
||||
'breadcrumb' => [__('shop.deliveries.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>
|
||||
@endsection
|
||||
69
resources/views/Admin/Shop/DeliveryPackages/form.blade.php
Normal file
69
resources/views/Admin/Shop/DeliveryPackages/form.blade.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<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>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
26
resources/views/Admin/Shop/DeliveryPackages/list.blade.php
Normal file
26
resources/views/Admin/Shop/DeliveryPackages/list.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.list'),
|
||||
'breadcrumb' => [__('shop.deliveries.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Deliveries.index'), 'model' => 'deliveries', 'callback' => 'handleDelivery();'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.toggle')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handleDelivery() {
|
||||
initToggle("{{ route('Admin.Shop.Deliveries.toggleActive') }}");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<div class="row mb-3">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
36
resources/views/Admin/Shop/DeliveryPackages/show.blade.php
Normal file
36
resources/views/Admin/Shop/DeliveryPackages/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
|
||||
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.add'),
|
||||
'breadcrumb' => [__('shop.deliveries.title'), __('shop.deliveries.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Deliveries.form')
|
||||
</form>
|
||||
@endsection
|
||||
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.edit'),
|
||||
'breadcrumb' => [__('shop.deliveries.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>
|
||||
@endsection
|
||||
@@ -0,0 +1,69 @@
|
||||
<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>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,24 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.delivery_type_calculations.title'),
|
||||
'subtitle' => __('shop.delivery_type_calculations.list'),
|
||||
'breadcrumb' => [__('shop.delivery_type_calculations.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.DeliveryTypeCalculations.index'),
|
||||
'model' => 'delivery_type_calculations',
|
||||
])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<div class="row mb-3">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
@@ -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
|
||||
11
resources/views/Admin/Shop/DeliveryTypes/create.blade.php
Normal file
11
resources/views/Admin/Shop/DeliveryTypes/create.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.add'),
|
||||
'breadcrumb' => [__('shop.deliveries.title'), __('shop.deliveries.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Deliveries.store', 'id' => 'delivery-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Deliveries.form')
|
||||
</form>
|
||||
@endsection
|
||||
12
resources/views/Admin/Shop/DeliveryTypes/edit.blade.php
Normal file
12
resources/views/Admin/Shop/DeliveryTypes/edit.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.edit'),
|
||||
'breadcrumb' => [__('shop.deliveries.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>
|
||||
@endsection
|
||||
69
resources/views/Admin/Shop/DeliveryTypes/form.blade.php
Normal file
69
resources/views/Admin/Shop/DeliveryTypes/form.blade.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<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>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
23
resources/views/Admin/Shop/DeliveryTypes/list.blade.php
Normal file
23
resources/views/Admin/Shop/DeliveryTypes/list.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.delivery_types.title'),
|
||||
'subtitle' => __('shop.delivery_types.list'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.DeliveryTypes.index'),
|
||||
'model' => 'delivery_types',
|
||||
])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<div class="row mb-3">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
36
resources/views/Admin/Shop/DeliveryTypes/show.blade.php
Normal file
36
resources/views/Admin/Shop/DeliveryTypes/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