adjust deliveries by customer
This commit is contained in:
@@ -1,55 +1,55 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('product_type', 'Famille de produit') }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'product_type',
|
||||
'value' => $article_nature['product_type'] ?? null,
|
||||
'list' => $product_types ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $article_nature['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.form.textarea', [
|
||||
'name' => 'description',
|
||||
'value' => $article_nature['description'] ?? null,
|
||||
'class' => 'editor',
|
||||
'required' => false,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('product_type', 'Famille de produit') }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'product_type',
|
||||
'value' => $article_nature['product_type'] ?? null,
|
||||
'list' => $product_types ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $article_nature['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.form.textarea', [
|
||||
'name' => 'description',
|
||||
'value' => $article_nature['description'] ?? null,
|
||||
'class' => 'editor',
|
||||
'required' => false,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<x-card title="{{ __('icone') }}">
|
||||
@include('components.widgets.imgUpload', [
|
||||
'name' => 'icon',
|
||||
'id_name' => 'icon',
|
||||
'file' => $article_nature['icon'] ?? false,
|
||||
])
|
||||
</x-card>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<x-card title="{{ __('icone selection') }}">
|
||||
@include('components.widgets.imgUpload', [
|
||||
'name' => 'icon_selection',
|
||||
'id_name' => 'icon_selection',
|
||||
'file' => $article_nature['icon_selection'] ?? false,
|
||||
])
|
||||
</x-card>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<x-card title="{{ __('icone') }}">
|
||||
@include('components.widgets.imgUpload', [
|
||||
'name' => 'icon',
|
||||
'id_name' => 'icon',
|
||||
'file' => $article_nature['icon'] ?? false,
|
||||
])
|
||||
</x-card>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<x-card title="{{ __('icone selection') }}">
|
||||
@include('components.widgets.imgUpload', [
|
||||
'name' => 'icon_selection',
|
||||
'id_name' => 'icon_selection',
|
||||
'file' => $article_nature['icon_selection'] ?? false,
|
||||
])
|
||||
</x-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-save />
|
||||
@@ -59,11 +59,13 @@
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initUploadImage();
|
||||
initSaveForm('#article_nature-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
{!! JsValidator::formRequest('App\Http\Requests\Admin\Shop\StoreArticleNaturePost', '#article_nature-form') !!}
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initUploadImage();
|
||||
initSaveForm('#article_nature-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customers.title'),
|
||||
'subtitle' => __('shop.customers.add'),
|
||||
'breadcrumb' => [__('shop.customers.title')]
|
||||
'title' => __('shop.customers.title'),
|
||||
'subtitle' => __('shop.customers.add'),
|
||||
'breadcrumb' => [__('shop.customers.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Customers.form')
|
||||
</form>
|
||||
@include('Admin.Shop.Customers.form')
|
||||
@endsection
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.customers.title'),
|
||||
'subtitle' => __('shop.customers.edit'),
|
||||
'breadcrumb' => [__('shop.customers.title')]
|
||||
'title' => __('shop.customers.title'),
|
||||
'subtitle' => __('shop.customers.edit'),
|
||||
'breadcrumb' => [__('shop.customers.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>
|
||||
|
||||
@include('Admin.Shop.Customers.form')
|
||||
@endsection
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
f{{ Form::open(['route' => 'Admin.Shop.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer['id'] ?? false }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<x-card>
|
||||
@@ -116,6 +119,7 @@
|
||||
</x-layout.box-collapse>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<x-save />
|
||||
|
||||
@@ -123,6 +127,8 @@
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
{!! JsValidator::formRequest('App\Http\Requests\Admin\Shop\StoreCustomerPost', '#customer-form') !!}
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
|
||||
Reference in New Issue
Block a user