{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'value' => isset($family['description']) ? $family['description'] : null, 'class' => 'editor', 'required' => true])
@@ -28,10 +30,12 @@
@include('components.save')
+@include('load.form.editor')
+
@push('js')
-
+
@endpush
\ No newline at end of file
diff --git a/resources/views/Botanic/Admin/Families/list.blade.php b/resources/views/admin/Botanic/Families/list.blade.php
similarity index 68%
rename from resources/views/Botanic/Admin/Families/list.blade.php
rename to resources/views/admin/Botanic/Families/list.blade.php
index dfdeb3a5..f4473d13 100644
--- a/resources/views/Botanic/Admin/Families/list.blade.php
+++ b/resources/views/admin/Botanic/Families/list.blade.php
@@ -6,6 +6,6 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Botanic.Admin.Families.index'), 'model' => 'families'])
+ @include('components.datatable', ['route' => route('Admin.Botanic.Families.index'), 'model' => 'families'])
@endcomponent
@endsection
\ No newline at end of file
diff --git a/resources/views/Botanic/Admin/Families/show.blade.php b/resources/views/admin/Botanic/Families/show.blade.php
similarity index 100%
rename from resources/views/Botanic/Admin/Families/show.blade.php
rename to resources/views/admin/Botanic/Families/show.blade.php
diff --git a/resources/views/Botanic/Admin/Genres/create.blade.php b/resources/views/admin/Botanic/Genres/create.blade.php
similarity index 71%
rename from resources/views/Botanic/Admin/Genres/create.blade.php
rename to resources/views/admin/Botanic/Genres/create.blade.php
index 7181a3c9..ded401c4 100644
--- a/resources/views/Botanic/Admin/Genres/create.blade.php
+++ b/resources/views/admin/Botanic/Genres/create.blade.php
@@ -6,8 +6,8 @@
@section('content')
- {{ Form::open(['route' => 'Botanic.Admin.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
- @include('Botanic.Admin.Genres.form')
+ {{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+ @include('Admin.Botanic.Genres.form')
@endsection
diff --git a/resources/views/Botanic/Admin/Genres/edit.blade.php b/resources/views/admin/Botanic/Genres/edit.blade.php
similarity index 58%
rename from resources/views/Botanic/Admin/Genres/edit.blade.php
rename to resources/views/admin/Botanic/Genres/edit.blade.php
index a0a2c3de..ca6716df 100644
--- a/resources/views/Botanic/Admin/Genres/edit.blade.php
+++ b/resources/views/admin/Botanic/Genres/edit.blade.php
@@ -6,10 +6,10 @@
@section('content')
- {{ Form::open(['route' => 'Botanic.Admin.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
-
+ {{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
- @include('Botanic.Admin.Genres.form')
+ @include('Admin.Botanic.Genres.form')
diff --git a/resources/views/admin/Botanic/Genres/form.blade.php b/resources/views/admin/Botanic/Genres/form.blade.php
new file mode 100644
index 00000000..8bafd6f0
--- /dev/null
+++ b/resources/views/admin/Botanic/Genres/form.blade.php
@@ -0,0 +1,43 @@
+
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $genre['name'] ?? null, 'required' => true])
+
+
+
+
+
+ {{ Form::label('family', 'Famille') }}
+ @include('components.select', ['name' => 'family_id', 'list' => $families, 'value' => $genre['family_id'] ?? null, 'required' => false])
+
+
+
+
+
+
+ {{ Form::label('alias', 'Alias') }}
+ @include('components.input', ['name' => 'alias', 'value' => $genre['alias'] ?? null, 'required' => false])
+
+
+
+
+
+ {{ Form::label('latin', 'Nom latin') }}
+ @include('components.input', ['name' => 'latin', 'value' => $genre['latin'] ?? null, 'required' => false])
+
+
+
+
+
+ {{ Form::label('description', 'Description') }}
+ @include('components.textarea', ['name' => 'description', 'value' => $genre['description'] ?? null, 'class' => 'editor', 'required' => false])
+
+
+
+
+
+
+@include('components.save')
\ No newline at end of file
diff --git a/resources/views/Botanic/Admin/Genres/list.blade.php b/resources/views/admin/Botanic/Genres/list.blade.php
similarity index 69%
rename from resources/views/Botanic/Admin/Genres/list.blade.php
rename to resources/views/admin/Botanic/Genres/list.blade.php
index 85fd8a58..7474e9bf 100644
--- a/resources/views/Botanic/Admin/Genres/list.blade.php
+++ b/resources/views/admin/Botanic/Genres/list.blade.php
@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Botanic.Admin.Genres.index'), 'model' => 'genres'])
+ @include('components.datatable', ['route' => route('Admin.Botanic.Genres.index'), 'model' => 'genres'])
@endcomponent
@endsection
diff --git a/resources/views/Botanic/Admin/Genres/show.blade.php b/resources/views/admin/Botanic/Genres/show.blade.php
similarity index 100%
rename from resources/views/Botanic/Admin/Genres/show.blade.php
rename to resources/views/admin/Botanic/Genres/show.blade.php
diff --git a/resources/views/Botanic/Admin/Species/create.blade.php b/resources/views/admin/Botanic/Species/create.blade.php
similarity index 73%
rename from resources/views/Botanic/Admin/Species/create.blade.php
rename to resources/views/admin/Botanic/Species/create.blade.php
index 346f53de..2528a538 100644
--- a/resources/views/Botanic/Admin/Species/create.blade.php
+++ b/resources/views/admin/Botanic/Species/create.blade.php
@@ -6,8 +6,8 @@
@section('content')
- {{ Form::open(['route' => 'Botanic.Admin.Species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Botanic.Admin.Species.form')
+ {{ Form::open(['route' => 'Admin.Botanic.Species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
+ @include('Admin.Botanic.Species.form')
@endsection
diff --git a/resources/views/admin/Botanic/Species/edit.blade.php b/resources/views/admin/Botanic/Species/edit.blade.php
new file mode 100644
index 00000000..d67fe89b
--- /dev/null
+++ b/resources/views/admin/Botanic/Species/edit.blade.php
@@ -0,0 +1,14 @@
+@extends('layout.index', [
+ 'title' => __('Botanic.species.title'),
+ 'subtitle' => __('Botanic.species.edit'),
+ 'breadcrumb' => [__('Botanic.species.title'), __('Botanic.species.list')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Botanic.Species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
+
+ @include('Admin.Botanic.Species.form')
+
+
+@endsection
diff --git a/resources/views/admin/Botanic/Species/form.blade.php b/resources/views/admin/Botanic/Species/form.blade.php
new file mode 100644
index 00000000..d8b3fa8f
--- /dev/null
+++ b/resources/views/admin/Botanic/Species/form.blade.php
@@ -0,0 +1,56 @@
+@include('boilerplate::load.fileinput')
+@include('boilerplate::load.select2')
+@include('boilerplate::load.tinymce')
+
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $specie['name'] ?? null, 'required' => true])
+
+
+ {{ Form::label('latin', 'Nom latin') }}
+ @include('components.input', ['name' => 'latin', 'value' => $specie['latin'] ?? null, 'required' => false])
+
+
+
+
+
+ {{ Form::label('genre', 'Genre') }}
+ @include('components.select', ['name' => 'genre_id', 'list' => $genres, 'value' => $specie['genre_id'] ?? null, 'class' => 'select2', 'with_empty' => '', 'required' => false])
+
+
+ {{ Form::label('alias', 'Alias') }}
+ @include('components.input', ['name' => 'alias', 'value' => $specie['alias'] ?? null])
+
+
+
+
+
+ {{ Form::label('description', 'Description') }}
+ @include('components.textarea', ['name' => 'description', 'value' => $specie['description'] ?? null, 'class' => 'editor', 'required' => false])
+
+
+
+
+
+
+ {{ Form::label('photo', 'Photos') }}
+ @include('components.file', ['name' => 'name', 'value' => $specie['name'] ?? null])
+
+
+
+@include('components.save')
+
+@include('load.form.upload.fileinput')
+@include('load.form.select2')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/Botanic/Admin/Species/list.blade.php b/resources/views/admin/Botanic/Species/list.blade.php
similarity index 69%
rename from resources/views/Botanic/Admin/Species/list.blade.php
rename to resources/views/admin/Botanic/Species/list.blade.php
index 33faae64..25b59ad9 100644
--- a/resources/views/Botanic/Admin/Species/list.blade.php
+++ b/resources/views/admin/Botanic/Species/list.blade.php
@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Botanic.Admin.Species.index'), 'model' => 'species'])
+ @include('components.datatable', ['route' => route('Admin.Botanic.Species.index'), 'model' => 'species'])
@endcomponent
@endsection
diff --git a/resources/views/Botanic/Admin/Species/show.blade.php b/resources/views/admin/Botanic/Species/show.blade.php
similarity index 100%
rename from resources/views/Botanic/Admin/Species/show.blade.php
rename to resources/views/admin/Botanic/Species/show.blade.php
diff --git a/resources/views/Botanic/Admin/Varieties/create.blade.php b/resources/views/admin/Botanic/Varieties/create.blade.php
similarity index 76%
rename from resources/views/Botanic/Admin/Varieties/create.blade.php
rename to resources/views/admin/Botanic/Varieties/create.blade.php
index e86678b2..2aac8f62 100644
--- a/resources/views/Botanic/Admin/Varieties/create.blade.php
+++ b/resources/views/admin/Botanic/Varieties/create.blade.php
@@ -8,9 +8,9 @@
@section('content')
- {{ Form::open(['route' => 'Botanic.Admin.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
+ {{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Botanic.Admin.Varieties.form')
+ @include('Admin.Botanic.Varieties.form')
@endsection
diff --git a/resources/views/Botanic/Admin/Varieties/edit.blade.php b/resources/views/admin/Botanic/Varieties/edit.blade.php
similarity index 77%
rename from resources/views/Botanic/Admin/Varieties/edit.blade.php
rename to resources/views/admin/Botanic/Varieties/edit.blade.php
index 7903b8b7..9c8d7477 100644
--- a/resources/views/Botanic/Admin/Varieties/edit.blade.php
+++ b/resources/views/admin/Botanic/Varieties/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Botanic.Admin.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
+ {{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Botanic.Admin.Varieties.form')
+ @include('Admin.Botanic.Varieties.form')
@endsection
diff --git a/resources/views/admin/Botanic/Varieties/form.blade.php b/resources/views/admin/Botanic/Varieties/form.blade.php
new file mode 100644
index 00000000..38808cff
--- /dev/null
+++ b/resources/views/admin/Botanic/Varieties/form.blade.php
@@ -0,0 +1,55 @@
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $name ?? null, 'required' => true])
+
+
+ {{ Form::label('genre', 'Espèce') }}
+ @include('components.select', ['name' => 'specie_id', 'list' => $species, 'value' => $specie_id ?? null, 'class' => 'select2 form-control', 'with_empty' => '', 'required' => false])
+
+
+
+
+
+ {{ Form::label('tags', 'Tags') }}
+ @include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $tags ?? null, 'class' => 'select2 form-control', 'multiple' => true])
+
+
+
+
+
+ {{ Form::label('description', 'Description') }}
+ @include('components.textarea', ['name' => 'description', 'value' => $description ?? null, 'class' => 'editor', 'rows' => 5, 'required' => false])
+
+
+
+
+
+
+ @include('components.uploader.widget', ['load_url' => route('Admin.Botanic.Varieties.getImages', ['id' => $id ?? false]), 'delete_url' => route('Admin.Botanic.Varieties.deleteImage'), 'name' => 'images'])
+
+
+
+
+@include('components.save')
+
+@include('load.form.appender')
+@include('load.form.editor')
+@include('load.form.save')
+@include('load.form.select2')
+@include('load.layout.chevron')
+@include('boilerplate::load.fileinput')
+@include('boilerplate::load.tinymce')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/Botanic/Admin/Varieties/list.blade.php b/resources/views/admin/Botanic/Varieties/list.blade.php
similarity index 68%
rename from resources/views/Botanic/Admin/Varieties/list.blade.php
rename to resources/views/admin/Botanic/Varieties/list.blade.php
index 8582eb20..18eab489 100644
--- a/resources/views/Botanic/Admin/Varieties/list.blade.php
+++ b/resources/views/admin/Botanic/Varieties/list.blade.php
@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Botanic.Admin.Varieties.index'), 'model' => 'varieties'])
+ @include('components.datatable', ['route' => route('Admin.Botanic.Varieties.index'), 'model' => 'varieties'])
@endcomponent
@endsection
diff --git a/resources/views/Botanic/Admin/Varieties/show.blade.php b/resources/views/admin/Botanic/Varieties/show.blade.php
similarity index 100%
rename from resources/views/Botanic/Admin/Varieties/show.blade.php
rename to resources/views/admin/Botanic/Varieties/show.blade.php
diff --git a/resources/views/admin/Core/App/Application/create.blade.php b/resources/views/admin/Core/App/Application/create.blade.php
new file mode 100644
index 00000000..a1df72b6
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('countries.title'),
+ 'subtitle' => __('countries.add'),
+ 'breadcrumb' => [
+ __('Country.title') => 'Admin.Country.index'
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Country.store', 'id' => 'country-form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Country.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/App/Application/dashboard.blade.php b/resources/views/admin/Core/App/Application/dashboard.blade.php
new file mode 100644
index 00000000..add932b1
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/dashboard.blade.php
@@ -0,0 +1,12 @@
+@extends('layout.index', [
+ 'title' => __('DueDiligence.distributors.title'),
+ 'subtitle' => __('DueDiligence.distributors.list'),
+ 'breadcrumb' => [__('DueDiligence.distributors.title')]
+])
+
+@section('content')
+
+ @include('apps.DueDiligence.admin.Distributor.partials.dashboard')
+
+@endsection
+
diff --git a/resources/views/admin/Core/App/Application/edit.blade.php b/resources/views/admin/Core/App/Application/edit.blade.php
new file mode 100644
index 00000000..36f051f5
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layout.index', [
+ 'title' => __('countries.title'),
+ 'subtitle' => __('countries.edit'),
+ 'breadcrumb' => [
+ __('countries.title') => 'Admin.Country.index'
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Country.store', 'id' => 'country-form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Country.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/App/Application/exports/excel.blade.php b/resources/views/admin/Core/App/Application/exports/excel.blade.php
new file mode 100644
index 00000000..c2ad0bcd
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/exports/excel.blade.php
@@ -0,0 +1,3 @@
+
+ @include('apps.DueDiligence.admin.Distributor.partials.table', ['logo2' => public_path('/storage/partner/fundglobam/images/logo.png') ])
+
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/Application/exports/print.blade.php b/resources/views/admin/Core/App/Application/exports/print.blade.php
new file mode 100644
index 00000000..fc1c0793
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/exports/print.blade.php
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+ @include('apps.DueDiligence.admin.Distributor.partials.table', ['logo' => '/storage/partner/fundglobam/images/logo.png'])
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/Application/form.blade.php b/resources/views/admin/Core/App/Application/form.blade.php
new file mode 100644
index 00000000..54b7b4f5
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/form.blade.php
@@ -0,0 +1,31 @@
+@include('load.form.select2')
+
+
+
+ {{ Form::label('name', __('name')) }}
+ @include('components.input-translate', ['name' => 'name', 'value' => $country['name'] ?? null, 'translations' => $country->translations['name'] ?? null, 'required' => true])
+
+
+ {{ Form::label('zone', __('zone')) }}
+ @include('components.select', ['name' => 'zone', 'value' => $country['zone_id'] ?? null, 'list' => $zones ?? null, 'required' => true])
+
+
+
+
+
+ {{ Form::label('name', __('region')) }}
+ @include('components.select', ['name' => 'region', 'value' => $country['region'] ?? null, 'list' => $regions ?? null, 'required' => true])
+
+
+ {{ Form::label('nale', __('subregion')) }}
+ @include('components.select', ['name' => 'zone', 'value' => $country['subregion'] ?? null, 'list' => $subregions ?? null, 'required' => true])
+
+
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/Application/index.blade.php b/resources/views/admin/Core/App/Application/index.blade.php
new file mode 100644
index 00000000..34e27fca
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/index.blade.php
@@ -0,0 +1,57 @@
+@extends('layout.index', [
+ 'title' => __('application.title'),
+ 'subtitle' => __('application.list'),
+ 'breadcrumb' => [
+ ]
+])
+
+@include('load.form.select2')
+@include('load.form.toggle')
+
+
+@section('content')
+
+
+
+
+
+
+
+
+ @component('components.card')
+ @include('admin.Core.App.Application.partials.dashboard')
+ @endcomponent
+
+
+
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.App.Application.index'), 'model' => 'applications', 'with_filters' => true, 'with_exports' => true, 'callback' => 'handleApplication();'])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-applications-filters'])
+ @include('admin.Core.App.Application.partials.filters', ['model' => 'applications'])
+ @endcomponent
+
+
+
+
+@endsection
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/App/Application/list.blade.php b/resources/views/admin/Core/App/Application/list.blade.php
new file mode 100644
index 00000000..b92dd18c
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/list.blade.php
@@ -0,0 +1,31 @@
+
{{ __('documentation_types') }}
+
+@include('components.datatable', ['route' => route('Admin.DocumentationType.index'), 'model' => 'documentation_types', 'with_filters' => true, 'with_exports' => true, 'create_callback' => 'DocumentationTypeCreate();', 'edit_callback' => 'DocumentationTypeEdit(id);'])
+
+@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-documentation_types-filters'])
+ @include('apps.admin.DocumentationType.partials.filters', ['model' => 'documentation_types'])
+@endcomponent
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/App/Application/modal.blade.php b/resources/views/admin/Core/App/Application/modal.blade.php
new file mode 100644
index 00000000..0a2bb705
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/modal.blade.php
@@ -0,0 +1,76 @@
+{{ Form::open(['route' => 'DueDiligence.Admin.CountryParam.store', 'id' => 'country_param-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+
+
+
+
+
+
+
+
+ {{ Form::label('name', __('date')) }}
+ @include('components.form.datepicker', ['name' => 'date', 'value' => $country_param['date'] ?? null])
+
+
+ {{ Form::label('name', __('ope_rrai')) }}
+ @include('components.input', ['name' => 'rrai', 'value' => $country_param['rrai'] ?? null])
+
+
+ {{ Form::label('name', __('color')) }}
+ @include('components.select', ['name' => 'index', 'list' => App\Repositories\DueDiligence\CountryParams::getRiskColors(), 'value' => $country_param['index'] ?? null, 'with_empty' => ''])
+
+
+ {{ Form::label('name', __('broken_arrows')) }}
+ @include('components.input', ['name' => 'broken', 'value' => $country_param['broken'] ?? null])
+
+
+
+
+
+ {{ Form::label('name', __('comments')) }}
+ @include('components.form.editor', ['name' => 'comments', 'value' => $country_param['comments'] ?? null])
+
+
+
+
+
+ @include('components.widgets.pdfPreview',['container' => 'country_param-file'])
+
+ {{ Form::label('name', __('file')) }}
+ @include('components.file', ['name' => 'file', 'value' => $country_param['file'] ?? null])
+
+
+
+
+
+
diff --git a/resources/views/Shop/Admin/Articles/partials/seo.blade.php b/resources/views/admin/Core/App/Application/partials/dashboard.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/seo.blade.php
rename to resources/views/admin/Core/App/Application/partials/dashboard.blade.php
diff --git a/resources/views/admin/Core/App/Application/partials/filters.blade.php b/resources/views/admin/Core/App/Application/partials/filters.blade.php
new file mode 100644
index 00000000..b696f04d
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/partials/filters.blade.php
@@ -0,0 +1,2 @@
+
diff --git a/resources/views/admin/Core/App/Application/show.blade.php b/resources/views/admin/Core/App/Application/show.blade.php
new file mode 100644
index 00000000..92265776
--- /dev/null
+++ b/resources/views/admin/Core/App/Application/show.blade.php
@@ -0,0 +1,16 @@
+@extends('layout.index', [
+ 'title' => __('DueDiligence.distributors.title'),
+ 'subtitle' => __('DueDiligence.distributors.show'),
+ 'breadcrumb' => [
+ __('DueDiligence.title') => 'DueDiligence.Admin.index',
+ __('DueDiligence.distributors.title') => 'DueDiligence.Admin.Distributor.index'
+ ]
+])
+
+@section('content')
+
+ @component('components.card')
+ @include('apps.DueDiligence.admin.Distributor.form')
+ @endcomponent
+
+@endsection
diff --git a/resources/views/admin/Core/App/ApplicationModule/create.blade.php b/resources/views/admin/Core/App/ApplicationModule/create.blade.php
new file mode 100644
index 00000000..d595b4f9
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('application_modules.title'),
+ 'subtitle' => __('application_modules.add'),
+ 'breadcrumb' => [
+ __('Country.title') => 'Admin.Core.App.ApplicationModule.index'
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.App.ApplicationModule.store', 'id' => 'application_module-form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.App.ApplicationModule.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/App/ApplicationModule/dashboard.blade.php b/resources/views/admin/Core/App/ApplicationModule/dashboard.blade.php
new file mode 100644
index 00000000..add932b1
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/dashboard.blade.php
@@ -0,0 +1,12 @@
+@extends('layout.index', [
+ 'title' => __('DueDiligence.distributors.title'),
+ 'subtitle' => __('DueDiligence.distributors.list'),
+ 'breadcrumb' => [__('DueDiligence.distributors.title')]
+])
+
+@section('content')
+
+ @include('apps.DueDiligence.admin.Distributor.partials.dashboard')
+
+@endsection
+
diff --git a/resources/views/admin/Core/App/ApplicationModule/edit.blade.php b/resources/views/admin/Core/App/ApplicationModule/edit.blade.php
new file mode 100644
index 00000000..259321af
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/edit.blade.php
@@ -0,0 +1,24 @@
+@extends('layout.index', [
+ 'title' => __('application_modules.title'),
+ 'subtitle' => __('application_modules.edit'),
+ 'breadcrumb' => [
+ __('Application_Module.title') => 'Admin.Core.App.ApplicationModule.index'
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.App.ApplicationModule.store', 'id' => 'application_module-form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.App.ApplicationModule.form')
+ @endcomponent
+
+
+
+@endsection
+
diff --git a/resources/views/admin/Core/App/ApplicationModule/exports/excel.blade.php b/resources/views/admin/Core/App/ApplicationModule/exports/excel.blade.php
new file mode 100644
index 00000000..c2ad0bcd
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/exports/excel.blade.php
@@ -0,0 +1,3 @@
+
+ @include('apps.DueDiligence.admin.Distributor.partials.table', ['logo2' => public_path('/storage/partner/fundglobam/images/logo.png') ])
+
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/ApplicationModule/exports/print.blade.php b/resources/views/admin/Core/App/ApplicationModule/exports/print.blade.php
new file mode 100644
index 00000000..fc1c0793
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/exports/print.blade.php
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+ @include('apps.DueDiligence.admin.Distributor.partials.table', ['logo' => '/storage/partner/fundglobam/images/logo.png'])
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/ApplicationModule/form.blade.php b/resources/views/admin/Core/App/ApplicationModule/form.blade.php
new file mode 100644
index 00000000..608a469d
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/form.blade.php
@@ -0,0 +1,25 @@
+
+
+ {{ Form::label('name', __('application')) }}
+ @include('components.select', ['name' => 'application_id', 'value' => $application_module['application_id'] ?? null, 'list' => $applications, 'required' => true, 'with_empty' => ''])
+
+
+
+
+
+ {{ Form::label('name', __('name')) }}
+ @include('components.input-translate', ['name' => 'name', 'value' => $application_module['name'] ?? null, 'translations' => $application_module->translations['name'] ?? null, 'required' => true])
+
+
+
+@include('load.form.select2')
+@include('load.form.save')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Core/App/ApplicationModule/index.blade.php b/resources/views/admin/Core/App/ApplicationModule/index.blade.php
new file mode 100644
index 00000000..082f9bfb
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/index.blade.php
@@ -0,0 +1,57 @@
+@extends('layout.index', [
+ 'title' => __('application_module.title'),
+ 'subtitle' => __('application_module.list'),
+ 'breadcrumb' => [
+ ]
+])
+
+@include('load.form.select2')
+@include('load.form.toggle')
+
+
+@section('content')
+
+
+
+
+
+
+
+
+ @component('components.card')
+ @include('admin.Core.App.ApplicationModule.partials.dashboard')
+ @endcomponent
+
+
+
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.App.ApplicationModule.index'), 'model' => 'application_modules', 'with_filters' => true, 'with_exports' => true, 'callback' => 'handleApplicationModule();'])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-application_modules-filters'])
+ @include('admin.Core.App.ApplicationModule.partials.filters', ['model' => 'applications'])
+ @endcomponent
+
+
+
+
+@endsection
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/App/ApplicationModule/list.blade.php b/resources/views/admin/Core/App/ApplicationModule/list.blade.php
new file mode 100644
index 00000000..b92dd18c
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/list.blade.php
@@ -0,0 +1,31 @@
+
{{ __('documentation_types') }}
+
+@include('components.datatable', ['route' => route('Admin.DocumentationType.index'), 'model' => 'documentation_types', 'with_filters' => true, 'with_exports' => true, 'create_callback' => 'DocumentationTypeCreate();', 'edit_callback' => 'DocumentationTypeEdit(id);'])
+
+@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-documentation_types-filters'])
+ @include('apps.admin.DocumentationType.partials.filters', ['model' => 'documentation_types'])
+@endcomponent
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/App/ApplicationModule/modal.blade.php b/resources/views/admin/Core/App/ApplicationModule/modal.blade.php
new file mode 100644
index 00000000..0a2bb705
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/modal.blade.php
@@ -0,0 +1,76 @@
+{{ Form::open(['route' => 'DueDiligence.Admin.CountryParam.store', 'id' => 'country_param-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+
+
+
+
+
+
+
+
+ {{ Form::label('name', __('date')) }}
+ @include('components.form.datepicker', ['name' => 'date', 'value' => $country_param['date'] ?? null])
+
+
+ {{ Form::label('name', __('ope_rrai')) }}
+ @include('components.input', ['name' => 'rrai', 'value' => $country_param['rrai'] ?? null])
+
+
+ {{ Form::label('name', __('color')) }}
+ @include('components.select', ['name' => 'index', 'list' => App\Repositories\DueDiligence\CountryParams::getRiskColors(), 'value' => $country_param['index'] ?? null, 'with_empty' => ''])
+
+
+ {{ Form::label('name', __('broken_arrows')) }}
+ @include('components.input', ['name' => 'broken', 'value' => $country_param['broken'] ?? null])
+
+
+
+
+
+ {{ Form::label('name', __('comments')) }}
+ @include('components.form.editor', ['name' => 'comments', 'value' => $country_param['comments'] ?? null])
+
+
+
+
+
+ @include('components.widgets.pdfPreview',['container' => 'country_param-file'])
+
+ {{ Form::label('name', __('file')) }}
+ @include('components.file', ['name' => 'file', 'value' => $country_param['file'] ?? null])
+
+
+
+
+
+
diff --git a/resources/views/Shop/Admin/Articles/partials/shipping.blade.php b/resources/views/admin/Core/App/ApplicationModule/partials/dashboard.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/shipping.blade.php
rename to resources/views/admin/Core/App/ApplicationModule/partials/dashboard.blade.php
diff --git a/resources/views/admin/Core/App/ApplicationModule/partials/filters.blade.php b/resources/views/admin/Core/App/ApplicationModule/partials/filters.blade.php
new file mode 100644
index 00000000..b696f04d
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/partials/filters.blade.php
@@ -0,0 +1,2 @@
+
diff --git a/resources/views/admin/Core/App/ApplicationModule/show.blade.php b/resources/views/admin/Core/App/ApplicationModule/show.blade.php
new file mode 100644
index 00000000..92265776
--- /dev/null
+++ b/resources/views/admin/Core/App/ApplicationModule/show.blade.php
@@ -0,0 +1,16 @@
+@extends('layout.index', [
+ 'title' => __('DueDiligence.distributors.title'),
+ 'subtitle' => __('DueDiligence.distributors.show'),
+ 'breadcrumb' => [
+ __('DueDiligence.title') => 'DueDiligence.Admin.index',
+ __('DueDiligence.distributors.title') => 'DueDiligence.Admin.Distributor.index'
+ ]
+])
+
+@section('content')
+
+ @component('components.card')
+ @include('apps.DueDiligence.admin.Distributor.form')
+ @endcomponent
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Permission/create.blade.php b/resources/views/admin/Core/Auth/Permission/create.blade.php
new file mode 100644
index 00000000..72e2fa36
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('Admin.permission.title'),
+ 'subtitle' => __('Admin.permission.add'),
+ 'breadcrumb' => [
+ __('Admin.permission.title') => 'Admin.Core.Auth.Permission.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.Permission.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.Permission.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Permission/edit.blade.php b/resources/views/admin/Core/Auth/Permission/edit.blade.php
new file mode 100644
index 00000000..b239c86d
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layout.index', [
+ 'title' => __('Admin.permission.title'),
+ 'subtitle' => __('Admin.permission.add'),
+ 'breadcrumb' => [
+ __('Admin.permission.title') => 'Admin.Core.Auth.Permission.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.Permission.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.Permission.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Permission/form.blade.php b/resources/views/admin/Core/Auth/Permission/form.blade.php
new file mode 100644
index 00000000..71e413bc
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/form.blade.php
@@ -0,0 +1,25 @@
+
+
+ {{ __('module') }}
+ @include('components.select', ['name' => 'application_module_id', 'value' => $permission['application_module_id'] ?? null, 'list' => $application_modules ?? null])
+
+
+
+
+
+ {{ __('name') }}
+ @include('components.input', ['name' => 'name', 'value' => $permission['name'] ?? null])
+
+
+
+@if (isset($roles) && count($roles))
+ @include('admin.Core.Auth.User.roles')
+@endif
+
+@include('load.form.save')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Core/Auth/Permission/index.blade.php b/resources/views/admin/Core/Auth/Permission/index.blade.php
new file mode 100644
index 00000000..608adbf3
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/index.blade.php
@@ -0,0 +1,20 @@
+@extends('layout.index', [
+ 'title' => __('Permission.title'),
+ 'subtitle' => __('Permission.list'),
+ 'breadcrumb' => [
+ __('Permission.title') => 'Admin.Core.Auth.Permission.index',
+ ]
+])
+
+@include('load.form.select2')
+
+@section('content')
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.Auth.Permission.index'), 'model' => 'permissions'])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-filters'])
+ @include('admin.Core.Auth.Permission.partials.filters')
+ @endcomponent
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Permission/manage.blade.php b/resources/views/admin/Core/Auth/Permission/manage.blade.php
new file mode 100644
index 00000000..1b539baa
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/manage.blade.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/Permission/partials/filters.blade.php b/resources/views/admin/Core/Auth/Permission/partials/filters.blade.php
new file mode 100644
index 00000000..82e46b03
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/partials/filters.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/admin/Core/Auth/Permission/show.blade.php b/resources/views/admin/Core/Auth/Permission/show.blade.php
new file mode 100644
index 00000000..2fdb5490
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Permission/show.blade.php
@@ -0,0 +1,28 @@
+@extends('layout.index', [
+ 'title' => __('families.title'),
+ 'subtitle' => __('families.title'),
+ 'breadcrumb' => [__('families.title')]
+])
+
+@section('content')
+
+
+
+
+
+
+
+
+
{{ name }}
+
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Role/create.blade.php b/resources/views/admin/Core/Auth/Role/create.blade.php
new file mode 100644
index 00000000..a09b90c1
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('Admin.role.title'),
+ 'subtitle' => __('Admin.role.add'),
+ 'breadcrumb' => [
+ __('Admin.role.title') => 'Admin.Core.Auth.Role.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.Role.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.Role.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Role/edit.blade.php b/resources/views/admin/Core/Auth/Role/edit.blade.php
new file mode 100644
index 00000000..2751719d
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layout.index', [
+ 'title' => __('Admin.role.title'),
+ 'subtitle' => __('Admin.role.add'),
+ 'breadcrumb' => [
+ __('Admin.role.title') => 'Admin.Core.Auth.Role.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.Role.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.Role.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Role/form.blade.php b/resources/views/admin/Core/Auth/Role/form.blade.php
new file mode 100644
index 00000000..7c6f013b
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/form.blade.php
@@ -0,0 +1,20 @@
+
+
+
{{ __('permissions') }}
+
+ @include('admin.Core.Auth.Role.table-permission')
+
+
+@include('load.form.save')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Core/Auth/Role/index.blade.php b/resources/views/admin/Core/Auth/Role/index.blade.php
new file mode 100644
index 00000000..451c555c
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/index.blade.php
@@ -0,0 +1,29 @@
+@extends('layout.index', [
+ 'title' => __('Role.title'),
+ 'subtitle' => __('Role.list'),
+ 'breadcrumb' => [
+ __('Role.title') => 'Admin.Core.Auth.Role.index',
+ ]
+])
+
+@include('load.form.select2')
+
+@section('content')
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.Auth.Role.index'), 'model' => 'roles', 'callback' => 'handleRoleActive();'])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-roles-filters'])
+ @include('admin.Core.Auth.Role.partials.filters')
+ @endcomponent
+@endsection
+
+@include('load.form.toggle')
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/Auth/Role/manage.blade.php b/resources/views/admin/Core/Auth/Role/manage.blade.php
new file mode 100644
index 00000000..0acb00fc
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/manage.blade.php
@@ -0,0 +1,47 @@
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/Role/partials/filters.blade.php b/resources/views/admin/Core/Auth/Role/partials/filters.blade.php
new file mode 100644
index 00000000..82e46b03
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/partials/filters.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/admin/Core/Auth/Role/row-permission.blade.php b/resources/views/admin/Core/Auth/Role/row-permission.blade.php
new file mode 100644
index 00000000..c4e8737b
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/row-permission.blade.php
@@ -0,0 +1,15 @@
+@if (count($module['permissions']))
+
+ {{ $module['name'] }}
+
+
+ @foreach ($module['permissions'] as $permission)
+
+
+ {{ $permission['name'] }}
+
+ @endforeach
+
+
+
+@endif
\ No newline at end of file
diff --git a/resources/views/admin/Core/Auth/Role/show.blade.php b/resources/views/admin/Core/Auth/Role/show.blade.php
new file mode 100644
index 00000000..2fdb5490
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/show.blade.php
@@ -0,0 +1,28 @@
+@extends('layout.index', [
+ 'title' => __('families.title'),
+ 'subtitle' => __('families.title'),
+ 'breadcrumb' => [__('families.title')]
+])
+
+@section('content')
+
+
+
+
+
+
+
+
+
{{ name }}
+
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Role/table-permission.blade.php b/resources/views/admin/Core/Auth/Role/table-permission.blade.php
new file mode 100644
index 00000000..60f1f9a8
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Role/table-permission.blade.php
@@ -0,0 +1,13 @@
+
+
+
+ {{ __('module') }}
+ {{ __('actions') }}
+
+
+
+ @foreach ($modules as $module)
+ @include('admin.Core.Auth.Role.row-permission')
+ @endforeach
+
+
diff --git a/resources/views/admin/Core/Auth/Team/create.blade.php b/resources/views/admin/Core/Auth/Team/create.blade.php
new file mode 100644
index 00000000..b06c0a8e
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('Admin.user.title'),
+ 'subtitle' => __('Admin.user.add'),
+ 'breadcrumb' => [
+ __('Admin.user.title') => 'Admin.Core.Auth.User.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.User.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Team/edit.blade.php b/resources/views/admin/Core/Auth/Team/edit.blade.php
new file mode 100644
index 00000000..76de896c
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layout.index', [
+ 'title' => __('Admin.user.title'),
+ 'subtitle' => __('Admin.user.add'),
+ 'breadcrumb' => [
+ __('Admin.user.title') => 'Admin.Core.Auth.User.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.User.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Team/form.blade.php b/resources/views/admin/Core/Auth/Team/form.blade.php
new file mode 100644
index 00000000..0d4831d9
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/form.blade.php
@@ -0,0 +1,65 @@
+
+
+
+
+
+ {{ __('name') }} *
+ @include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
+
+
+
+ {{ __('firstname') }} *
+ @include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
+
+
+
+
+
+ {{ __('login') }} *
+ @include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
+
+
+ {{ __('password') }} *
+ @include('components.password', ['name' => 'password'])
+
+
+
+
+
+ {{ __('email') }} *
+ @include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
+
+
+
+ {{ __('phone') }}
+ @include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
+
+
+
+
+
+ {{ __('entity') }} *
+ @include('components.select', ['name' => 'third_party_id', 'list' => $third_parties ?? null, 'value' => $third_party_id ?? null, 'with_empty' => true ])
+
+
+ {{ __('team') }} *
+ @include('components.select', ['name' => 'team_id', 'list' => $teams ?? null, 'value' => $team_id ?? null, 'with_empty' => true ])
+
+
+ {{ __('status') }} *
+ @include('components.select', ['name' => 'status_id', 'list' => $statuses ?? null, 'value' => $status_id ?? null, 'with_empty' => true ])
+
+
+
+
+
+
+
+ {{ __('avatar') }}
+
+
+
+
+
+@include('admin.Core.Auth.User.roles')
+
diff --git a/resources/views/admin/Core/Auth/Team/form.twig b/resources/views/admin/Core/Auth/Team/form.twig
new file mode 100644
index 00000000..a1cef42b
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/form.twig
@@ -0,0 +1,23 @@
+
+
+
diff --git a/resources/views/admin/Core/Auth/Team/index.blade.php b/resources/views/admin/Core/Auth/Team/index.blade.php
new file mode 100644
index 00000000..f7af4d18
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/index.blade.php
@@ -0,0 +1,20 @@
+@extends('layout.index', [
+ 'title' => __('Team.title'),
+ 'subtitle' => __('Team.list'),
+ 'breadcrumb' => [
+ __('Team.title') => 'Admin.Core.Auth.Team.index',
+ ]
+])
+
+@include('load.form.select2')
+
+@section('content')
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.Auth.Team.index'), 'model' => 'users'])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-filters'])
+ @include('admin.Core.Auth.Team.partials.filters')
+ @endcomponent
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/Team/manage.blade.php b/resources/views/admin/Core/Auth/Team/manage.blade.php
new file mode 100644
index 00000000..1b539baa
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/manage.blade.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/Team/manage.twig b/resources/views/admin/Core/Auth/Team/manage.twig
new file mode 100644
index 00000000..3fe4ef8b
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/manage.twig
@@ -0,0 +1,82 @@
+{% import "macros.forms" as forms %}
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/Team/partials/filters.blade.php b/resources/views/admin/Core/Auth/Team/partials/filters.blade.php
new file mode 100644
index 00000000..82e46b03
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/partials/filters.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/admin/Core/Auth/Team/show.blade.php b/resources/views/admin/Core/Auth/Team/show.blade.php
new file mode 100644
index 00000000..2fdb5490
--- /dev/null
+++ b/resources/views/admin/Core/Auth/Team/show.blade.php
@@ -0,0 +1,28 @@
+@extends('layout.index', [
+ 'title' => __('families.title'),
+ 'subtitle' => __('families.title'),
+ 'breadcrumb' => [__('families.title')]
+])
+
+@section('content')
+
+
+
+
+
+
+
+
+
{{ name }}
+
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/User/create.blade.php b/resources/views/admin/Core/Auth/User/create.blade.php
new file mode 100644
index 00000000..b06c0a8e
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/create.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('Admin.user.title'),
+ 'subtitle' => __('Admin.user.add'),
+ 'breadcrumb' => [
+ __('Admin.user.title') => 'Admin.Core.Auth.User.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.User.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/User/edit.blade.php b/resources/views/admin/Core/Auth/User/edit.blade.php
new file mode 100644
index 00000000..76de896c
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layout.index', [
+ 'title' => __('Admin.user.title'),
+ 'subtitle' => __('Admin.user.add'),
+ 'breadcrumb' => [
+ __('Admin.user.title') => 'Admin.Core.Auth.User.index',
+ ]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+
+
+
+ @include('components.save')
+
+ @component('components.card')
+ @include('admin.Core.Auth.User.form')
+ @endcomponent
+
+
+
+@endsection
diff --git a/resources/views/admin/Core/Auth/User/form.blade.php b/resources/views/admin/Core/Auth/User/form.blade.php
new file mode 100644
index 00000000..0d4831d9
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/form.blade.php
@@ -0,0 +1,65 @@
+
+
+
+
+
+ {{ __('name') }} *
+ @include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
+
+
+
+ {{ __('firstname') }} *
+ @include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
+
+
+
+
+
+ {{ __('login') }} *
+ @include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
+
+
+ {{ __('password') }} *
+ @include('components.password', ['name' => 'password'])
+
+
+
+
+
+ {{ __('email') }} *
+ @include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
+
+
+
+ {{ __('phone') }}
+ @include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
+
+
+
+
+
+ {{ __('entity') }} *
+ @include('components.select', ['name' => 'third_party_id', 'list' => $third_parties ?? null, 'value' => $third_party_id ?? null, 'with_empty' => true ])
+
+
+ {{ __('team') }} *
+ @include('components.select', ['name' => 'team_id', 'list' => $teams ?? null, 'value' => $team_id ?? null, 'with_empty' => true ])
+
+
+ {{ __('status') }} *
+ @include('components.select', ['name' => 'status_id', 'list' => $statuses ?? null, 'value' => $status_id ?? null, 'with_empty' => true ])
+
+
+
+
+
+
+
+ {{ __('avatar') }}
+
+
+
+
+
+@include('admin.Core.Auth.User.roles')
+
diff --git a/resources/views/admin/Core/Auth/User/index.blade.php b/resources/views/admin/Core/Auth/User/index.blade.php
new file mode 100644
index 00000000..d9e014ae
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/index.blade.php
@@ -0,0 +1,57 @@
+@extends('layout.index', [
+ 'title' => __('User.title'),
+ 'subtitle' => __('User.list'),
+ 'breadcrumb' => [
+ __('User.title') => 'Admin.Core.Auth.User.index',
+ ]
+])
+
+@include('load.form.select2')
+
+@section('content')
+
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Core.Auth.User.index'), 'model' => 'users', 'callback' => 'handleUser();', 'create_callback' => 'UserCreate();', 'edit_callback' => 'UserEdit(id);', 'with_filters' => true])
+ @endcomponent
+
+ @component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-users-filters'])
+ @include('admin.Core.Auth.User.partials.filters', ['model' => 'users'])
+ @endcomponent
+
+@endsection
+
+@include('load.layout.chevron')
+@include('load.layout.modal')
+@include('load.form.toggle')
+@include('load.form.upload.upload')
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Core/Auth/User/manage.blade.php b/resources/views/admin/Core/Auth/User/manage.blade.php
new file mode 100644
index 00000000..1b539baa
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/manage.blade.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/User/modal.blade.php b/resources/views/admin/Core/Auth/User/modal.blade.php
new file mode 100644
index 00000000..fd889ab5
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/modal.blade.php
@@ -0,0 +1,61 @@
+{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'user-form', 'autocomplete' => 'off']) }}
+
+
+
+
+
+
+
+
+ {{ __('name') }} *
+ @include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
+
+
+
+ {{ __('firstname') }} *
+ @include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
+
+
+
+
+
+ {{ __('login') }} *
+ @include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
+
+
+ {{ __('password') }} *
+ @include('components.password', ['name' => 'password'])
+
+
+
+
+
+ {{ __('email') }} *
+ @include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
+
+
+
+ {{ __('phone') }}
+ @include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
+
+
+
+
+
+
+
+ {{ __('avatar') }}
+ @include('components.file', ['name' => 'avatar'])
+
+
+
+
+ @include('admin.Core.Auth.User.roles')
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/User/modalProfile.blade.php b/resources/views/admin/Core/Auth/User/modalProfile.blade.php
new file mode 100644
index 00000000..c86cba66
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/modalProfile.blade.php
@@ -0,0 +1,59 @@
+{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'user-form', 'autocomplete' => 'off']) }}
+
+
+
+
+
+
+
+
+ {{ __('name') }} *
+ @include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
+
+
+
+ {{ __('firstname') }} *
+ @include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
+
+
+
+
+
+ {{ __('login') }} *
+ @include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
+
+
+ {{ __('password') }} *
+ @include('components.password', ['name' => 'password'])
+
+
+
+
+
+ {{ __('email') }} *
+ @include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
+
+
+
+ {{ __('phone') }}
+ @include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
+
+
+
+
+
+
+
+ {{ __('avatar') }}
+ @include('components.file', ['name' => 'avatar'])
+
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/User/partials/filters.blade.php b/resources/views/admin/Core/Auth/User/partials/filters.blade.php
new file mode 100644
index 00000000..9caff2e9
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/partials/filters.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/admin/Core/Auth/User/partials/identifier.blade.php b/resources/views/admin/Core/Auth/User/partials/identifier.blade.php
new file mode 100644
index 00000000..b3424235
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/partials/identifier.blade.php
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/resources/views/admin/Core/Auth/User/partials/roles.blade.php b/resources/views/admin/Core/Auth/User/partials/roles.blade.php
new file mode 100644
index 00000000..5297f5d4
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/partials/roles.blade.php
@@ -0,0 +1,3 @@
+@foreach ($roles as $role)
+ {{ $role->name }}
+@endforeach
\ No newline at end of file
diff --git a/resources/views/admin/Core/Auth/User/roles.blade.php b/resources/views/admin/Core/Auth/User/roles.blade.php
new file mode 100644
index 00000000..005ecbc9
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/roles.blade.php
@@ -0,0 +1,19 @@
+@if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_*'))
+
+ @component('components.layout.box-collapse', ['title' => __('roles'), 'id' => 'form-roles'])
+
+
+ @foreach ($roles as $id => $role)
+
+ @if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_' . $role))
+
+
+ {{ $role }}
+
+ @endif
+
+ @endforeach
+
+
+ @endcomponent
+@endif
diff --git a/resources/views/admin/Core/Auth/User/show.blade.php b/resources/views/admin/Core/Auth/User/show.blade.php
new file mode 100644
index 00000000..2fdb5490
--- /dev/null
+++ b/resources/views/admin/Core/Auth/User/show.blade.php
@@ -0,0 +1,28 @@
+@extends('layout.index', [
+ 'title' => __('families.title'),
+ 'subtitle' => __('families.title'),
+ 'breadcrumb' => [__('families.title')]
+])
+
+@section('content')
+
+
+
+
+
+
+
+
+
{{ name }}
+
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/admin/Shop/ArticleNatures/create.blade.php b/resources/views/admin/Shop/ArticleNatures/create.blade.php
new file mode 100644
index 00000000..2d7c732b
--- /dev/null
+++ b/resources/views/admin/Shop/ArticleNatures/create.blade.php
@@ -0,0 +1,15 @@
+@extends('layout.index', [
+ 'title' => __('article_natures.title'),
+ 'subtitle' => __('article_natures.add'),
+ 'breadcrumb' => [__('article_natures.title'), __('article_natures.add')]
+])
+
+@include('boilerplate::load.fileinput')
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.ArticleNatures.store', 'id' => 'article-nature-form', 'autocomplete' => 'off', 'files' => true]) }}
+ @include('Admin.Shop.ArticleNatures.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/ArticleNatures/edit.blade.php b/resources/views/admin/Shop/ArticleNatures/edit.blade.php
new file mode 100644
index 00000000..131795dc
--- /dev/null
+++ b/resources/views/admin/Shop/ArticleNatures/edit.blade.php
@@ -0,0 +1,16 @@
+@extends('layout.index', [
+ 'title' => __('article_natures.title'),
+ 'subtitle' => __('article_natures.edit'),
+ 'breadcrumb' => [__('article_natures.title'), __('article_natures.edit')]
+])
+
+@include('boilerplate::load.fileinput')
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.ArticleNatures.update', 'id' => 'article-nature-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+ @include('Admin.Shop.ArticleNatures.form')
+
+
+@endsection
diff --git a/resources/views/Shop/Admin/ArticleFamilies/form.blade.php b/resources/views/admin/Shop/ArticleNatures/form.blade.php
similarity index 59%
rename from resources/views/Shop/Admin/ArticleFamilies/form.blade.php
rename to resources/views/admin/Shop/ArticleNatures/form.blade.php
index d6f1723e..98097bb1 100644
--- a/resources/views/Shop/Admin/ArticleFamilies/form.blade.php
+++ b/resources/views/admin/Shop/ArticleNatures/form.blade.php
@@ -3,10 +3,10 @@
{{ Form::label('name', 'Nom') }}
- @include('components.input', ['name' => 'name', 'value' => (isset($family['name'])) ? $family['name'] : null, 'required' => true])
+ @include('components.input', ['name' => 'name', 'value' => $article_nature['name'] ?? null, 'required' => true])
{{ Form::label('description', 'Description') }}
- @include('components.textarea', ['name' => 'description', 'value' => isset($family['description']) ? $family['description'] : null, 'class' => 'editor', 'required' => false])
+ @include('components.textarea', ['name' => 'description', 'value' => $article_nature['description'] ?? null, 'class' => 'editor', 'required' => false])
diff --git a/resources/views/admin/Shop/ArticleNatures/list.blade.php b/resources/views/admin/Shop/ArticleNatures/list.blade.php
new file mode 100644
index 00000000..6011f9e0
--- /dev/null
+++ b/resources/views/admin/Shop/ArticleNatures/list.blade.php
@@ -0,0 +1,9 @@
+@extends('layout.index', [
+ 'title' => __('Shop.article_natures.title'),
+ 'subtitle' => __('Shop.article_natures.list'),
+ 'breadcrumb' => [__('Shop.article_natures.title')]
+])
+
+@section('content')
+ @include('components.datatable', ['route' => route('Admin.Shop.ArticleNatures.index'), 'model' => 'article_natures'])
+@endsection
diff --git a/resources/views/Shop/Admin/ArticleFamilies/show.blade.php b/resources/views/admin/Shop/ArticleNatures/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/ArticleFamilies/show.blade.php
rename to resources/views/admin/Shop/ArticleNatures/show.blade.php
diff --git a/resources/views/Shop/Admin/Articles/create.blade.php b/resources/views/admin/Shop/Articles/create.blade.php
similarity index 73%
rename from resources/views/Shop/Admin/Articles/create.blade.php
rename to resources/views/admin/Shop/Articles/create.blade.php
index cbf56444..65414d33 100644
--- a/resources/views/Shop/Admin/Articles/create.blade.php
+++ b/resources/views/admin/Shop/Articles/create.blade.php
@@ -6,8 +6,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Shop.Admin.Articles.form')
+ {{ Form::open(['route' => 'Admin.Shop.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
+ @include('Admin.Shop.Articles.form')
@endsection
diff --git a/resources/views/admin/Shop/Articles/edit.blade.php b/resources/views/admin/Shop/Articles/edit.blade.php
new file mode 100644
index 00000000..abd9ff38
--- /dev/null
+++ b/resources/views/admin/Shop/Articles/edit.blade.php
@@ -0,0 +1,15 @@
+@extends('layout.index', [
+ 'title' => __('Shop.articles.title'),
+ 'subtitle' => __('Shop.articles.edit'),
+ 'breadcrumb' => [__('Shop.articles.title'), __('Shop.articles.edit')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+
+ @include('Admin.Shop.Articles.form')
+
+
+@endsection
diff --git a/resources/views/Shop/Admin/Articles/form.blade.php b/resources/views/admin/Shop/Articles/form.blade.php
similarity index 72%
rename from resources/views/Shop/Admin/Articles/form.blade.php
rename to resources/views/admin/Shop/Articles/form.blade.php
index e08e1a18..e48043e0 100644
--- a/resources/views/Shop/Admin/Articles/form.blade.php
+++ b/resources/views/admin/Shop/Articles/form.blade.php
@@ -10,9 +10,9 @@
-
- Tarifs
- @if(isset($prices_count)){{ $prices_count }} @endif
+
+ {{ __('Shop.offers.title') }}
+ @if(isset($offers_count)){{ $offers_count }} @endif
@@ -44,23 +44,23 @@
- @include('Shop.Admin.Articles.partials.characteristics')
+ @include('Admin.Shop.Articles.partials.characteristics')
-
- @include('Shop.Admin.Articles.partials.prices')
+
+
- @include('Shop.Admin.Articles.partials.shipping')
+ @include('Admin.Shop.Articles.partials.shipping')
- @include('Shop.Admin.Articles.partials.stock')
+ @include('Admin.Shop.Articles.partials.stock')
- @include('Shop.Admin.Articles.partials.seo')
+ @include('Admin.Shop.Articles.partials.seo')
@@ -72,28 +72,29 @@
@include('components.save')
-@include('boilerplate::load.fileinput')
-@include('boilerplate::load.select2')
-@include('load.set_options')
-@include('boilerplate::load.tinymce')
-@include('load.appender')
-@include('load.toggle')
+@include('load.form.appender')
+@include('load.form.editor')
@include('load.form.save')
+@include('load.form.select2')
+@include('load.form.set_options')
+@include('load.form.toggle')
+@include('load.form.upload.fileinput')
+@include('load.layout.chevron')
@push('js')
diff --git a/resources/views/Shop/Admin/Articles/list.blade.php b/resources/views/admin/Shop/Articles/list.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/Articles/list.blade.php
rename to resources/views/admin/Shop/Articles/list.blade.php
index 0964e221..9108d340 100644
--- a/resources/views/Shop/Admin/Articles/list.blade.php
+++ b/resources/views/admin/Shop/Articles/list.blade.php
@@ -5,10 +5,10 @@
])
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.Articles.index'), 'model' => 'articles', 'with_filters' => true])
+ @include('components.datatable', ['route' => route('Admin.Shop.Articles.index'), 'model' => 'articles', 'with_filters' => true])
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-articles-filters'])
- @include('Shop.Admin.Articles.partials.filters')
+ @include('Admin.Shop.Articles.partials.filters')
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php b/resources/views/admin/Shop/Articles/partials/characteristics.blade.php
similarity index 57%
rename from resources/views/Shop/Admin/Articles/partials/characteristics.blade.php
rename to resources/views/admin/Shop/Articles/partials/characteristics.blade.php
index 51ee4df2..47d9ce45 100644
--- a/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/characteristics.blade.php
@@ -1,59 +1,63 @@
-
-
- {{ Form::label('ref', 'Référence') }}
- @include('components.input', ['name' => 'ref', 'value' => $article['ref'] ?? null])
-
-
+
+
{{ Form::label('model', 'Familles de produit') }}
- @include('components.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2 form-control'])
+ @include('components.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2'])
{{ Form::label('model_id', 'Produit') }}
- @include('components.select', ['name' => 'product_id', 'id_name' => 'product_id', 'list' => $products ?? [], 'value' => $article['product_id'] ?? null, 'class' => 'select2 form-control'])
+ @include('components.select', ['name' => 'product_id', 'id_name' => 'product_id', 'list' => $products ?? [], 'value' => $article['product_id'] ?? null, 'class' => 'select2'])
+
+
+ {{ Form::label('ref', 'Référence') }}
+ @include('components.input', ['name' => 'ref', 'value' => $article['ref'] ?? null])
-
+
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'name', 'value' => $article['name'] ?? null, 'required' => true])
- {{ Form::label('family_id', 'Famille d\'articles') }}
- @include('components.select', ['name' => 'article_family_id', 'list' => $families_options, 'value' => $article['article_family_id'] ?? null, 'class' => 'select2 form-control'])
+ {{ Form::label('article_nature_id', __('Shop.article_natures.name')) }}
+ @include('components.select', ['name' => 'article_nature_id', 'list' => $natures_options, 'value' => $article['article_nature_id'] ?? null, 'class' => 'select2'])
-
+
- {{ Form::label('categories', 'Rayons') }}
- @include('components.select', ['name' => 'categories[]', 'list' => $categories_options, 'values' => $article['categories'] ?? null, 'class' => 'select2 form-control', 'multiple' => true])
+ {{ Form::label('categories', __('Shop.shelves.title')) }}
+ @include('components.select', ['name' => 'categories[]', 'list' => $categories_options, 'values' => $article['categories'] ?? null, 'class' => 'select2', 'multiple' => true])
-
+
{{ Form::label('tags', 'Tags') }}
- @include('Shop.Admin.Articles.partials.product.tags')
- @include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $article['tags'] ?? null, 'class' => 'select2 form-control', 'multiple' => true])
+ @include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $article['tags'] ?? null, 'class' => 'select2', 'multiple' => true])
-
-
-
+
+
+
+
+ @include('Admin.Shop.Articles.partials.product.description')
+
+
+
+
{{ Form::label('description', 'Description') }}
- @include('Shop.Admin.Articles.partials.product.description')
@include('components.textarea', ['name' => 'description', 'value' => $article['description'] ?? null, 'class' => 'editor', 'required' => true])
- @include('Shop.Admin.Articles.partials.product.images')
- @include('components.uploader.widget', ['load_url' => route('Shop.Admin.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Shop.Admin.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
+ @include('Admin.Shop.Articles.partials.product.images')
+ @include('components.uploader.widget', ['load_url' => route('Admin.Shop.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Admin.Shop.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
@@ -70,18 +74,19 @@
var product_type = $(this).val();
switch (product_type) {
case 'App\\Models\\Botanic\\Specie':
- loadSpecies();
+ var url = '{{ route('Admin.Botanic.Species.getSelect') }}';
break;
case 'App\\Models\\Botanic\\Variety':
default:
- loadVarieties();
+ var url = '{{ route('Admin.Botanic.Varieties.getSelect') }}';
break;
}
+ loadProducts(url);
});
- function loadVarieties() {
+ function loadProducts(url) {
$.ajax({
- url : '{{ route('Botanic.Admin.Varieties.getSelect') }}',
+ url : url,
method : 'POST',
data: {model: $('#product_type').val()},
success : function(data) {
@@ -92,21 +97,5 @@
});
}
- function loadSpecies() {
- console.log('loadSpecies');
- console.log($('#product_type').val());
- $.ajax({
- url : '{{ route('Botanic.Admin.Species.getSelect') }}',
- method : 'POST',
- data: {model: $('#product_type').val()},
- success : function(data) {
- setOptions('#product_id', data);
- // $("#product_id").select2({data: data});
- // $("#product_id").trigger('change');
- }
- });
- }
-
- // loadVarieties();
@endpush
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Articles/partials/filters.blade.php b/resources/views/admin/Shop/Articles/partials/filters.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/filters.blade.php
rename to resources/views/admin/Shop/Articles/partials/filters.blade.php
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/attributes.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/attributes.blade.php
similarity index 60%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/attributes.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/attributes.blade.php
index 622b50fe..0267a44d 100644
--- a/resources/views/Shop/Admin/Articles/partials/generic_prices/attributes.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/generic_prices/attributes.blade.php
@@ -1,4 +1,4 @@
- @include('Shop.Admin.Articles.partials.prices.block_attribute_new')
+ @include('Admin.Shop.Articles.partials.prices.block_attribute_new')
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_attribute.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/block_attribute.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/block_attribute.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/block_attribute.blade.php
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_attribute_new.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/block_attribute_new.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/block_attribute_new.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/block_attribute_new.blade.php
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price.blade.php
similarity index 81%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price.blade.php
index ffc104de..8949c4c8 100644
--- a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price.blade.php
@@ -3,6 +3,6 @@
- @include('Shop.Admin.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
+ @include('Admin.Shop.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price_new.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price_new.blade.php
similarity index 60%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price_new.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price_new.blade.php
index b04a8520..e50b86b9 100644
--- a/resources/views/Shop/Admin/Articles/partials/generic_prices/block_generic_price_new.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/generic_prices/block_generic_price_new.blade.php
@@ -1,5 +1,5 @@
- @include('Shop.Admin.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
+ @include('Admin.Shop.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/generic_prices.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/generic_prices.blade.php
similarity index 87%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/generic_prices.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/generic_prices.blade.php
index 0605063e..6c3c292e 100644
--- a/resources/views/Shop/Admin/Articles/partials/generic_prices/generic_prices.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/generic_prices/generic_prices.blade.php
@@ -1,5 +1,5 @@
- @include('Shop.Admin.Articles.partials.generic_prices.list-generic_prices')
+ @include('Admin.Shop.Articles.partials.generic_prices.list-generic_prices')
@@ -22,7 +22,7 @@
function handleAddGeneric() {
$('#add-new-generic_price').click(function() {
var id = $('#article_price_generic_id').val();
- var content = $.get("{{ route('Shop.Admin.PriceGenerics.getPrice') }}/" + id, function(data) {
+ var content = $.get("{{ route('Admin.Shop.PriceGenerics.getPrice') }}/" + id, function(data) {
$('#append_generic_price').html(data);
handleDeleteGenericPrice();
});
@@ -36,7 +36,7 @@
// $('#append_generic_price').html('');
/*
- confirm_delete(id, "{## route('Shop.Admin.GenericPrices.destroy') }}", function() {
+ confirm_delete(id, "{## route('Admin.Shop.GenericPrices.destroy') }}", function() {
$selector.remove();
});
*/
diff --git a/resources/views/Shop/Admin/Articles/partials/generic_prices/list-generic_prices.blade.php b/resources/views/admin/Shop/Articles/partials/generic_prices/list-generic_prices.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/Articles/partials/generic_prices/list-generic_prices.blade.php
rename to resources/views/admin/Shop/Articles/partials/generic_prices/list-generic_prices.blade.php
index 24374dc5..6643e1bc 100644
--- a/resources/views/Shop/Admin/Articles/partials/generic_prices/list-generic_prices.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/generic_prices/list-generic_prices.blade.php
@@ -1,6 +1,6 @@
@if (isset($generics) && (count($generics)))
@foreach ($generics as $generic)
- @include('Shop.Admin.Articles.partials.generic_prices.block_generic_price')
+ @include('Admin.Shop.Articles.partials.generic_prices.block_generic_price')
@endforeach
@endif
diff --git a/resources/views/admin/Shop/Articles/partials/prices.blade.php b/resources/views/admin/Shop/Articles/partials/prices.blade.php
new file mode 100644
index 00000000..7be50f00
--- /dev/null
+++ b/resources/views/admin/Shop/Articles/partials/prices.blade.php
@@ -0,0 +1,2 @@
+@include('Admin.Shop.Articles.partials.prices.prices', ['prices' => $article['prices']['prices'] ?? null])
+@include('Admin.Shop.Articles.partials.generic_prices.generic_prices', ['generics' => $article['prices']['generics'] ?? null])
diff --git a/resources/views/Shop/Admin/Articles/partials/prices/attributes.blade.php b/resources/views/admin/Shop/Articles/partials/prices/attributes.blade.php
similarity index 60%
rename from resources/views/Shop/Admin/Articles/partials/prices/attributes.blade.php
rename to resources/views/admin/Shop/Articles/partials/prices/attributes.blade.php
index 622b50fe..0267a44d 100644
--- a/resources/views/Shop/Admin/Articles/partials/prices/attributes.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/prices/attributes.blade.php
@@ -1,4 +1,4 @@
- @include('Shop.Admin.Articles.partials.prices.block_attribute_new')
+ @include('Admin.Shop.Articles.partials.prices.block_attribute_new')
diff --git a/resources/views/Shop/Admin/Articles/partials/prices/block_price.blade.php b/resources/views/admin/Shop/Articles/partials/prices/block_price.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/prices/block_price.blade.php
rename to resources/views/admin/Shop/Articles/partials/prices/block_price.blade.php
diff --git a/resources/views/Shop/Admin/Articles/partials/prices/block_price_new.blade.php b/resources/views/admin/Shop/Articles/partials/prices/block_price_new.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/prices/block_price_new.blade.php
rename to resources/views/admin/Shop/Articles/partials/prices/block_price_new.blade.php
diff --git a/resources/views/Shop/Admin/Articles/partials/prices/list-prices.blade.php b/resources/views/admin/Shop/Articles/partials/prices/list-prices.blade.php
similarity index 83%
rename from resources/views/Shop/Admin/Articles/partials/prices/list-prices.blade.php
rename to resources/views/admin/Shop/Articles/partials/prices/list-prices.blade.php
index 209e1128..b78f8fc5 100644
--- a/resources/views/Shop/Admin/Articles/partials/prices/list-prices.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/prices/list-prices.blade.php
@@ -1,6 +1,6 @@
@if (isset($prices) && (count($prices)))
@for ($i = 0; $i < count($prices); $i++)
- @include('Shop.Admin.Articles.partials.prices.block_price', ['key' => $i, 'price' => $prices[$i]])
+ @include('Admin.Shop.Articles.partials.prices.block_price', ['key' => $i, 'price' => $prices[$i]])
@endfor
@endif
diff --git a/resources/views/Shop/Admin/Articles/partials/prices/prices.blade.php b/resources/views/admin/Shop/Articles/partials/prices/prices.blade.php
similarity index 90%
rename from resources/views/Shop/Admin/Articles/partials/prices/prices.blade.php
rename to resources/views/admin/Shop/Articles/partials/prices/prices.blade.php
index 04294aaf..17e9986b 100644
--- a/resources/views/Shop/Admin/Articles/partials/prices/prices.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/prices/prices.blade.php
@@ -1,7 +1,7 @@
-@include('Shop.Admin.Articles.partials.prices.block_price_new')
+@include('Admin.Shop.Articles.partials.prices.block_price_new')
- @include('Shop.Admin.Articles.partials.prices.list-prices')
+ @include('Admin.Shop.Articles.partials.prices.list-prices')
Ajouter un tarif
@@ -52,7 +52,7 @@
function load_unities($selector, package_id) {
$.ajax({
- url : "{{ route('Shop.Admin.Unities.getOptionsByPackage') }}",
+ url : "{{ route('Admin.Shop.Unities.getOptionsByPackage') }}",
method : 'POST',
data: { package_id: package_id },
success : function(data) {
@@ -67,7 +67,7 @@
var $selector = $(this).parents('.row-price');
var id = $selector.find('.price_id').val();
- confirm_delete(id, laroute.route('Shop.Admin.ArticlePrices.destroy', {id : id}), function() {
+ confirm_delete(id, laroute.route('Admin.Shop.ArticlePrices.destroy', {id : id}), function() {
$selector.remove();
});
});
diff --git a/resources/views/admin/Shop/Articles/partials/product/description.blade.php b/resources/views/admin/Shop/Articles/partials/product/description.blade.php
new file mode 100644
index 00000000..dd756741
--- /dev/null
+++ b/resources/views/admin/Shop/Articles/partials/product/description.blade.php
@@ -0,0 +1,16 @@
+@if (!empty($article['product']['description']))
+ @component('components.layout.box-collapse', ['id' => 'product_description', 'title' => 'Informations héritées'])
+ @foreach ($article['inherited'] as $inherited)
+ @component('components.card', ['title' => $inherited['name'], 'class' => 'mb-3'])
+ {!! $inherited['description'] !!}
+
+ @if ($inherited['tags'])
+
Tags
+ @foreach ($inherited['tags'] as $tag)
+
{{ $tag['name'] }}
+ @endforeach
+ @endif
+ @endcomponent
+ @endforeach
+ @endcomponent
+@endif
\ No newline at end of file
diff --git a/resources/views/admin/Shop/Articles/partials/product/images.blade.php b/resources/views/admin/Shop/Articles/partials/product/images.blade.php
new file mode 100644
index 00000000..a13fe8a3
--- /dev/null
+++ b/resources/views/admin/Shop/Articles/partials/product/images.blade.php
@@ -0,0 +1 @@
+@include('components.uploader.widget', ['load_url' => route('Admin.Botanic.Varieties.getImages', ['id' => $article['product_id'] ?? false, 'can_edit' => 0]), 'name' => 'images', 'title' => 'Photos produits', 'prefix' => 'product_', 'can_edit' => false, 'collapsed' => true ])
diff --git a/resources/views/Shop/Admin/Articles/partials/product/tags.blade.php b/resources/views/admin/Shop/Articles/partials/product/tags.blade.php
similarity index 91%
rename from resources/views/Shop/Admin/Articles/partials/product/tags.blade.php
rename to resources/views/admin/Shop/Articles/partials/product/tags.blade.php
index 291eca02..cf3fbc24 100644
--- a/resources/views/Shop/Admin/Articles/partials/product/tags.blade.php
+++ b/resources/views/admin/Shop/Articles/partials/product/tags.blade.php
@@ -1,7 +1,7 @@
@if (!empty($article['product']['tags']))
@component('components.layout.box-collapse', ['id' => 'product_tags', 'title' => 'Tags produit'])
@foreach ($article['product']['tags'] as $tag)
- {{ $tag->name }}
+ {{ $tag['name'] }}
@endforeach
@endcomponent
@endif
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Articles/partials/stock.blade.php b/resources/views/admin/Shop/Articles/partials/seo.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/partials/stock.blade.php
rename to resources/views/admin/Shop/Articles/partials/seo.blade.php
diff --git a/resources/views/admin/Shop/Articles/partials/shipping.blade.php b/resources/views/admin/Shop/Articles/partials/shipping.blade.php
new file mode 100644
index 00000000..e69de29b
diff --git a/resources/views/admin/Shop/Articles/partials/stock.blade.php b/resources/views/admin/Shop/Articles/partials/stock.blade.php
new file mode 100644
index 00000000..e69de29b
diff --git a/resources/views/Shop/Admin/Articles/show.blade.php b/resources/views/admin/Shop/Articles/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Articles/show.blade.php
rename to resources/views/admin/Shop/Articles/show.blade.php
diff --git a/resources/views/Shop/Admin/Categories/create.blade.php b/resources/views/admin/Shop/Categories/create.blade.php
similarity index 73%
rename from resources/views/Shop/Admin/Categories/create.blade.php
rename to resources/views/admin/Shop/Categories/create.blade.php
index 8cb4309b..97c2e8db 100644
--- a/resources/views/Shop/Admin/Categories/create.blade.php
+++ b/resources/views/admin/Shop/Categories/create.blade.php
@@ -6,8 +6,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Categories.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Shop.Admin.Categories.form')
+ {{ Form::open(['route' => 'Admin.Shop.Categories.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
+ @include('Admin.Shop.Categories.form')
@endsection
diff --git a/resources/views/Shop/Admin/Categories/edit.blade.php b/resources/views/admin/Shop/Categories/edit.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/Categories/edit.blade.php
rename to resources/views/admin/Shop/Categories/edit.blade.php
index 17683077..e983513f 100644
--- a/resources/views/Shop/Admin/Categories/edit.blade.php
+++ b/resources/views/admin/Shop/Categories/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Categories.store', 'id' => 'form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Categories.store', 'id' => 'form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Categories.form')
+ @include('Admin.Shop.Categories.form')
@endsection
diff --git a/resources/views/Shop/Admin/Categories/form.blade.php b/resources/views/admin/Shop/Categories/form.blade.php
similarity index 87%
rename from resources/views/Shop/Admin/Categories/form.blade.php
rename to resources/views/admin/Shop/Categories/form.blade.php
index d5274c0f..ece795bc 100644
--- a/resources/views/Shop/Admin/Categories/form.blade.php
+++ b/resources/views/admin/Shop/Categories/form.blade.php
@@ -31,7 +31,7 @@
{{ Form::label('photo', 'Photos') }}
- @include('components.uploader.widget', ['load_url' => route('Shop.Admin.Categories.getImages', ['id' => (isset($id)) ? $id : false]), 'delete_url' => route('Shop.Admin.Categories.deleteImage') ])
+ @include('components.uploader.widget', ['load_url' => route('Admin.Shop.Categories.getImages', ['id' => (isset($id)) ? $id : false]), 'delete_url' => route('Admin.Shop.Categories.deleteImage') ])
diff --git a/resources/views/admin/Shop/Categories/list.blade.php b/resources/views/admin/Shop/Categories/list.blade.php
new file mode 100644
index 00000000..9754ce71
--- /dev/null
+++ b/resources/views/admin/Shop/Categories/list.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.index', [
+ 'title' => __('Shop.shelves.title'),
+ 'subtitle' => __('Shop.shelves.list'),
+ 'breadcrumb' => [__('Shop.shelves.title')]
+])
+
+@section('content')
+
+
+
+ @component('components.card')
+ @include('components.datatable', ['route' => route('Admin.Shop.Categories.index'), 'model' => 'categories'])
+ @endcomponent
+
+
+ @include('Admin.Shop.Categories.partials.tree')
+
+
+
+@endsection
+
diff --git a/resources/views/Shop/Admin/Categories/partials/tree.blade.php b/resources/views/admin/Shop/Categories/partials/tree.blade.php
similarity index 95%
rename from resources/views/Shop/Admin/Categories/partials/tree.blade.php
rename to resources/views/admin/Shop/Categories/partials/tree.blade.php
index f33b16a6..2372b8b2 100644
--- a/resources/views/Shop/Admin/Categories/partials/tree.blade.php
+++ b/resources/views/admin/Shop/Categories/partials/tree.blade.php
@@ -58,7 +58,7 @@
$.ajax({
method: "POST",
- url: "{{ route('Shop.Admin.Categories.moveTree') }}",
+ url: "{{ route('Admin.Shop.Categories.moveTree') }}",
data: { node_id: node.id, type: position, target_id: target_node.id }
});
// console.log(e);
diff --git a/resources/views/Shop/Admin/Categories/show.blade.php b/resources/views/admin/Shop/Categories/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Categories/show.blade.php
rename to resources/views/admin/Shop/Categories/show.blade.php
diff --git a/resources/views/Shop/Admin/Customers/create.blade.php b/resources/views/admin/Shop/Customers/create.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/Customers/create.blade.php
rename to resources/views/admin/Shop/Customers/create.blade.php
index 588bbbcd..b5c52c0d 100644
--- a/resources/views/Shop/Admin/Customers/create.blade.php
+++ b/resources/views/admin/Shop/Customers/create.blade.php
@@ -8,11 +8,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Customers.form')
+ @include('Admin.Shop.Customers.form')
@endsection
diff --git a/resources/views/Shop/Admin/Customers/edit.blade.php b/resources/views/admin/Shop/Customers/edit.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/Customers/edit.blade.php
rename to resources/views/admin/Shop/Customers/edit.blade.php
index 17c0e9c9..a3314d90 100644
--- a/resources/views/Shop/Admin/Customers/edit.blade.php
+++ b/resources/views/admin/Shop/Customers/edit.blade.php
@@ -8,9 +8,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Customers.update', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Customers.update', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Customers.form')
+ @include('Admin.Shop.Customers.form')
@endsection
diff --git a/resources/views/Shop/Admin/Customers/form.blade.php b/resources/views/admin/Shop/Customers/form.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Customers/form.blade.php
rename to resources/views/admin/Shop/Customers/form.blade.php
diff --git a/resources/views/Shop/Admin/Customers/list.blade.php b/resources/views/admin/Shop/Customers/list.blade.php
similarity index 81%
rename from resources/views/Shop/Admin/Customers/list.blade.php
rename to resources/views/admin/Shop/Customers/list.blade.php
index 1170532e..28055c7c 100644
--- a/resources/views/Shop/Admin/Customers/list.blade.php
+++ b/resources/views/admin/Shop/Customers/list.blade.php
@@ -6,6 +6,6 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.Customers.index'), 'model' => 'customers'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Customers.index'), 'model' => 'customers'])
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Customers/show.blade.php b/resources/views/admin/Shop/Customers/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Customers/show.blade.php
rename to resources/views/admin/Shop/Customers/show.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/counter.blade.php b/resources/views/admin/Shop/Dashboard/_partials/counter.blade.php
similarity index 65%
rename from resources/views/Shop/Admin/Dashboard/_partials/counter.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/counter.blade.php
index e7e35ea8..9f2cd85d 100644
--- a/resources/views/Shop/Admin/Dashboard/_partials/counter.blade.php
+++ b/resources/views/admin/Shop/Dashboard/_partials/counter.blade.php
@@ -1,13 +1,13 @@
@@ -16,14 +16,14 @@
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/evolutions.blade.php b/resources/views/admin/Shop/Dashboard/_partials/evolutions.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/evolutions.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/evolutions.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/infobox.blade.php b/resources/views/admin/Shop/Dashboard/_partials/infobox.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/infobox.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/infobox.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/latestOrders.blade.php b/resources/views/admin/Shop/Dashboard/_partials/latestOrders.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/latestOrders.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/latestOrders.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/latest_members.blade.php b/resources/views/admin/Shop/Dashboard/_partials/latest_members.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/latest_members.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/latest_members.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/ordersByTypes.blade.php b/resources/views/admin/Shop/Dashboard/_partials/ordersByTypes.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/ordersByTypes.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/ordersByTypes.blade.php
diff --git a/resources/views/admin/Shop/Dashboard/_partials/report.blade.php b/resources/views/admin/Shop/Dashboard/_partials/report.blade.php
new file mode 100644
index 00000000..1fb87a21
--- /dev/null
+++ b/resources/views/admin/Shop/Dashboard/_partials/report.blade.php
@@ -0,0 +1,23 @@
+
+
+
+ @include('Admin.Shop.Dashboard._partials.salesByPeriod')
+
+
+
+ @include('Admin.Shop.Dashboard._partials.stock')
+
+
+
+
+
+
+
+ @include('Admin.Shop.Dashboard._partials.latestOrders')
+
+
+
+ @include('Admin.Shop.Dashboard._partials.ordersByTypes')
+
+
+
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/salesByPeriod.blade.php b/resources/views/admin/Shop/Dashboard/_partials/salesByPeriod.blade.php
similarity index 90%
rename from resources/views/Shop/Admin/Dashboard/_partials/salesByPeriod.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/salesByPeriod.blade.php
index e7ec000a..47fa0fea 100644
--- a/resources/views/Shop/Admin/Dashboard/_partials/salesByPeriod.blade.php
+++ b/resources/views/admin/Shop/Dashboard/_partials/salesByPeriod.blade.php
@@ -28,12 +28,12 @@
- @include('Shop.Admin.Dashboard.components.chart')
+ @include('Admin.Shop.Dashboard.components.chart')
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/stats.blade.php b/resources/views/admin/Shop/Dashboard/_partials/stats.blade.php
similarity index 71%
rename from resources/views/Shop/Admin/Dashboard/_partials/stats.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/stats.blade.php
index ff459f3e..f3fd548b 100644
--- a/resources/views/Shop/Admin/Dashboard/_partials/stats.blade.php
+++ b/resources/views/admin/Shop/Dashboard/_partials/stats.blade.php
@@ -1,7 +1,7 @@
-@include('Shop.Admin.Dashboard.components.infobox2', ['count' => (isset($nb_lots_optionne)) ? $nb_lots_optionne : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Lots optionnés', 'percent' => 0 ])
+@include('Admin.Shop.Dashboard.components.infobox2', ['count' => (isset($nb_lots_optionne)) ? $nb_lots_optionne : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Lots optionnés', 'percent' => 0 ])
-@include('Shop.Admin.Dashboard.components.infobox2', ['count' => (isset($montant_options_encours)) ? $montant_options_encours : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Options En cours', 'percent' => 10 ])
+@include('Admin.Shop.Dashboard.components.infobox2', ['count' => (isset($montant_options_encours)) ? $montant_options_encours : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Options En cours', 'percent' => 10 ])
-@include('Shop.Admin.Dashboard.components.infobox2', ['count' => (isset($montant_dossiers_encours)) ? $montant_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'Dossiers en cours', 'percent' => 20 ])
+@include('Admin.Shop.Dashboard.components.infobox2', ['count' => (isset($montant_dossiers_encours)) ? $montant_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'Dossiers en cours', 'percent' => 20 ])
-@include('Shop.Admin.Dashboard.components.infobox2', ['count' => (isset($montant_ventes)) ? $montant_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Ventes', 'percent' => 30 ])
+@include('Admin.Shop.Dashboard.components.infobox2', ['count' => (isset($montant_ventes)) ? $montant_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Ventes', 'percent' => 30 ])
diff --git a/resources/views/Shop/Admin/Dashboard/_partials/stock.blade.php b/resources/views/admin/Shop/Dashboard/_partials/stock.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/_partials/stock.blade.php
rename to resources/views/admin/Shop/Dashboard/_partials/stock.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/chart.blade.php b/resources/views/admin/Shop/Dashboard/components/chart.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/chart.blade.php
rename to resources/views/admin/Shop/Dashboard/components/chart.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/counter.blade.php b/resources/views/admin/Shop/Dashboard/components/counter.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/counter.blade.php
rename to resources/views/admin/Shop/Dashboard/components/counter.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/evolutions.blade.php b/resources/views/admin/Shop/Dashboard/components/evolutions.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/evolutions.blade.php
rename to resources/views/admin/Shop/Dashboard/components/evolutions.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/infobox.blade.php b/resources/views/admin/Shop/Dashboard/components/infobox.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/infobox.blade.php
rename to resources/views/admin/Shop/Dashboard/components/infobox.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/infobox2.blade.php b/resources/views/admin/Shop/Dashboard/components/infobox2.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/infobox2.blade.php
rename to resources/views/admin/Shop/Dashboard/components/infobox2.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/latest_orders.blade.php b/resources/views/admin/Shop/Dashboard/components/latest_orders.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/latest_orders.blade.php
rename to resources/views/admin/Shop/Dashboard/components/latest_orders.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/map.blade.php b/resources/views/admin/Shop/Dashboard/components/map.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/map.blade.php
rename to resources/views/admin/Shop/Dashboard/components/map.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/components/monthly_report.blade.php b/resources/views/admin/Shop/Dashboard/components/monthly_report.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Dashboard/components/monthly_report.blade.php
rename to resources/views/admin/Shop/Dashboard/components/monthly_report.blade.php
diff --git a/resources/views/Shop/Admin/Dashboard/index.blade.php b/resources/views/admin/Shop/Dashboard/index.blade.php
similarity index 74%
rename from resources/views/Shop/Admin/Dashboard/index.blade.php
rename to resources/views/admin/Shop/Dashboard/index.blade.php
index 58f5ad47..2d88f3b4 100644
--- a/resources/views/Shop/Admin/Dashboard/index.blade.php
+++ b/resources/views/admin/Shop/Dashboard/index.blade.php
@@ -10,8 +10,8 @@
@section('content')
- @include('Shop.Admin.Dashboard._partials.counter')
- @include('Shop.Admin.Dashboard._partials.report')
+ @include('Admin.Shop.Dashboard._partials.counter')
+ @include('Admin.Shop.Dashboard._partials.report')
@endsection
diff --git a/resources/views/Shop/Admin/Invoices/create.blade.php b/resources/views/admin/Shop/Invoices/create.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/Invoices/create.blade.php
rename to resources/views/admin/Shop/Invoices/create.blade.php
index f80eabf1..816312fc 100644
--- a/resources/views/Shop/Admin/Invoices/create.blade.php
+++ b/resources/views/admin/Shop/Invoices/create.blade.php
@@ -8,8 +8,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Invoices.store', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Invoices.form')
+ {{ Form::open(['route' => 'Admin.Shop.Invoices.store', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.Invoices.form')
@include('components.save')
diff --git a/resources/views/Shop/Admin/Invoices/edit.blade.php b/resources/views/admin/Shop/Invoices/edit.blade.php
similarity index 77%
rename from resources/views/Shop/Admin/Invoices/edit.blade.php
rename to resources/views/admin/Shop/Invoices/edit.blade.php
index 246a7b69..53e4a4c6 100644
--- a/resources/views/Shop/Admin/Invoices/edit.blade.php
+++ b/resources/views/admin/Shop/Invoices/edit.blade.php
@@ -8,9 +8,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Invoices.form')
+ @include('Admin.Shop.Invoices.form')
@include('components.button-save')
diff --git a/resources/views/Shop/Admin/Invoices/form.blade.php b/resources/views/admin/Shop/Invoices/form.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Invoices/form.blade.php
rename to resources/views/admin/Shop/Invoices/form.blade.php
diff --git a/resources/views/Shop/Admin/Invoices/list.blade.php b/resources/views/admin/Shop/Invoices/list.blade.php
similarity index 81%
rename from resources/views/Shop/Admin/Invoices/list.blade.php
rename to resources/views/admin/Shop/Invoices/list.blade.php
index 1cd4abaa..b6e115ce 100644
--- a/resources/views/Shop/Admin/Invoices/list.blade.php
+++ b/resources/views/admin/Shop/Invoices/list.blade.php
@@ -6,6 +6,6 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.Invoices.index'), 'model' => 'invoices'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Invoices.index'), 'model' => 'invoices'])
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Invoices/show.blade.php b/resources/views/admin/Shop/Invoices/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Invoices/show.blade.php
rename to resources/views/admin/Shop/Invoices/show.blade.php
diff --git a/resources/views/admin/Shop/Offers/create.blade.php b/resources/views/admin/Shop/Offers/create.blade.php
new file mode 100644
index 00000000..01d82d4a
--- /dev/null
+++ b/resources/views/admin/Shop/Offers/create.blade.php
@@ -0,0 +1,13 @@
+@extends('layout.index', [
+ 'title' => __('offers.title'),
+ 'subtitle' => __('offers.create.title'),
+ 'breadcrumb' => [__('offers.title'), __('offers.create.title')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Offers.store', 'id' => 'offer-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.Offers.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Offers/edit.blade.php b/resources/views/admin/Shop/Offers/edit.blade.php
new file mode 100644
index 00000000..d160779c
--- /dev/null
+++ b/resources/views/admin/Shop/Offers/edit.blade.php
@@ -0,0 +1,14 @@
+@extends('layout.index', [
+ 'title' => 'Offre',
+ 'subtitle' => 'Edition d\'une offre',
+ 'breadcrumb' => ['Offres']
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Offers.update', 'id' => 'offer-form', 'autocomplete' => 'off']) }}
+
+ @include('Admin.Shop.Offers.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Offers/form.blade.php b/resources/views/admin/Shop/Offers/form.blade.php
new file mode 100644
index 00000000..10a475d8
--- /dev/null
+++ b/resources/views/admin/Shop/Offers/form.blade.php
@@ -0,0 +1,65 @@
+
+
+
+
+ {{ Form::label('article_id', 'Article') }}
+ @include('components.form.autocomplete', ['name' => 'article', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Articles.autocomplete')])
+
+
+
+
+
+ {{ Form::label('variation_id', 'Déclinaison') }}
+ @include('components.form.autocomplete', ['name' => 'variation', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Variations.autocomplete')])
+
+
+
+
+
+ {{ Form::label('tariff_id', 'Tarif') }}
+ @include('components.form.autocomplete', ['name' => 'tariff', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Tariffs.autocomplete')])
+
+
+
+
+ @component('components.card', ['title' => 'Disponibilité'])
+
+
+ {{ Form::label('stock_current', 'Appro immédiate') }}
+ @include('components.money', ['name' => 'stock_current', 'value' => $offer['stock_current'] ?? 0])
+
+
+
+
+ {{ Form::label('stock_delayed', 'Appro sur delai') }}
+ @include('components.money', ['name' => 'stock_delayed', 'value' => $offer['stock_delayed'] ?? 0])
+
+
+ {{ Form::label('delay_type', 'Délai type') }}
+ @include('components.input', ['name' => 'delay_type', 'value' => $offer['delay_type'] ?? null])
+
+
+
+
+ {{ Form::label('stock_ondemand', 'Appro sur demande') }}
+ @include('components.toggle', ['name' => 'stock_ondemand', 'value' => $offer['stock_ondemand'] ?? 0])
+
+
+ {{ Form::label('minimum_ondemand', 'Minimum de quantité') }}
+ @include('components.money', ['name' => 'minimum_ondemand', 'value' => $offer['minimum_ondemand'] ?? 0])
+
+
+ @endcomponent
+
+
+
+@include('components.save')
+
+@include('load.form.autocomplete')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Shop/Offers/list.blade.php b/resources/views/admin/Shop/Offers/list.blade.php
new file mode 100644
index 00000000..5d6659dd
--- /dev/null
+++ b/resources/views/admin/Shop/Offers/list.blade.php
@@ -0,0 +1,9 @@
+@extends('layout.index', [
+ 'title' => __('Shop.offers.title'),
+ 'subtitle' => __('Shop.offers.list'),
+ 'breadcrumb' => [__('Shop.offers.title')]
+])
+
+@section('content')
+ @include('components.datatable', ['route' => route('Admin.Shop.Offers.index'), 'model' => 'offers'])
+@endsection
diff --git a/resources/views/Shop/Admin/Orders/show.blade.php b/resources/views/admin/Shop/Offers/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Orders/show.blade.php
rename to resources/views/admin/Shop/Offers/show.blade.php
diff --git a/resources/views/Shop/Admin/Orders/create.blade.php b/resources/views/admin/Shop/Orders/create.blade.php
similarity index 77%
rename from resources/views/Shop/Admin/Orders/create.blade.php
rename to resources/views/admin/Shop/Orders/create.blade.php
index 53d5e646..6ecc553e 100644
--- a/resources/views/Shop/Admin/Orders/create.blade.php
+++ b/resources/views/admin/Shop/Orders/create.blade.php
@@ -8,11 +8,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.store', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
+ {{ Form::open(['route' => 'Admin.Shop.ArticleFamilies.store', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Shop.Admin.ArticleFamilies.form')
+ @include('Admin.Shop.ArticleFamilies.form')
@endsection
diff --git a/resources/views/Shop/Admin/Orders/edit.blade.php b/resources/views/admin/Shop/Orders/edit.blade.php
similarity index 77%
rename from resources/views/Shop/Admin/Orders/edit.blade.php
rename to resources/views/admin/Shop/Orders/edit.blade.php
index ab132b06..8b7f2f0d 100644
--- a/resources/views/Shop/Admin/Orders/edit.blade.php
+++ b/resources/views/admin/Shop/Orders/edit.blade.php
@@ -8,11 +8,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
+ {{ Form::open(['route' => 'Admin.Shop.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Shop.Admin.ArticleFamilies.form')
+ @include('Admin.Shop.ArticleFamilies.form')
@endsection
diff --git a/resources/views/Shop/Admin/Orders/form.blade.php b/resources/views/admin/Shop/Orders/form.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Orders/form.blade.php
rename to resources/views/admin/Shop/Orders/form.blade.php
diff --git a/resources/views/Shop/Admin/Orders/list.blade.php b/resources/views/admin/Shop/Orders/list.blade.php
similarity index 80%
rename from resources/views/Shop/Admin/Orders/list.blade.php
rename to resources/views/admin/Shop/Orders/list.blade.php
index b6f75e9a..db1b4374 100644
--- a/resources/views/Shop/Admin/Orders/list.blade.php
+++ b/resources/views/admin/Shop/Orders/list.blade.php
@@ -6,6 +6,6 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.Orders.index'), 'model' => 'orders'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Orders.index'), 'model' => 'orders'])
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Packages/show.blade.php b/resources/views/admin/Shop/Orders/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Packages/show.blade.php
rename to resources/views/admin/Shop/Orders/show.blade.php
diff --git a/resources/views/Shop/Admin/Packages/create.blade.php b/resources/views/admin/Shop/Packages/create.blade.php
similarity index 72%
rename from resources/views/Shop/Admin/Packages/create.blade.php
rename to resources/views/admin/Shop/Packages/create.blade.php
index 589113b3..14fe4c73 100644
--- a/resources/views/Shop/Admin/Packages/create.blade.php
+++ b/resources/views/admin/Shop/Packages/create.blade.php
@@ -8,8 +8,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Packages.form')
+ {{ Form::open(['route' => 'Admin.Shop.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.Packages.form')
@endsection
diff --git a/resources/views/Shop/Admin/Packages/edit.blade.php b/resources/views/admin/Shop/Packages/edit.blade.php
similarity index 72%
rename from resources/views/Shop/Admin/Packages/edit.blade.php
rename to resources/views/admin/Shop/Packages/edit.blade.php
index 712b5e86..d1f8aa31 100644
--- a/resources/views/Shop/Admin/Packages/edit.blade.php
+++ b/resources/views/admin/Shop/Packages/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Packages.form')
+ @include('Admin.Shop.Packages.form')
@endsection
diff --git a/resources/views/admin/Shop/Packages/form.blade.php b/resources/views/admin/Shop/Packages/form.blade.php
new file mode 100644
index 00000000..cc93b83e
--- /dev/null
+++ b/resources/views/admin/Shop/Packages/form.blade.php
@@ -0,0 +1,9 @@
+
+
+ {{ Form::label('name', 'Valeur') }}
+ @include('components.input', ['name' => 'value', 'value' => $package['value'] ?? null, 'required' => true])
+
+
+
+
+@include('components.save')
diff --git a/resources/views/Shop/Admin/Packages/index.blade.php b/resources/views/admin/Shop/Packages/index.blade.php
similarity index 72%
rename from resources/views/Shop/Admin/Packages/index.blade.php
rename to resources/views/admin/Shop/Packages/index.blade.php
index 725df819..b2a263d5 100644
--- a/resources/views/Shop/Admin/Packages/index.blade.php
+++ b/resources/views/admin/Shop/Packages/index.blade.php
@@ -23,18 +23,18 @@
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'ArticleAttributefamilies'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Unities.index'), 'model' => 'ArticleAttributefamilies'])
@endsection
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.ArticleAttributeValues.index'), 'model' => 'Unities'])
+ @include('components.datatable', ['route' => route('Admin.Shop.ArticleAttributeValues.index'), 'model' => 'Unities'])
@endcomponent
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-filters'])
- @include('Shop.Admin.Unities.partials.filters')
+ @include('Admin.Shop.Unities.partials.filters')
@endcomponent
@endsection
@@ -44,5 +44,5 @@
@endsection
@push('scripts')
- @include('components.js.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'Unities'])
+ @include('components.js.datatable', ['route' => route('Admin.Shop.Unities.index'), 'model' => 'Unities'])
@endpush
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Packages/list.blade.php b/resources/views/admin/Shop/Packages/list.blade.php
similarity index 78%
rename from resources/views/Shop/Admin/Packages/list.blade.php
rename to resources/views/admin/Shop/Packages/list.blade.php
index a29813d4..f58c6f84 100644
--- a/resources/views/Shop/Admin/Packages/list.blade.php
+++ b/resources/views/admin/Shop/Packages/list.blade.php
@@ -7,11 +7,11 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.Packages.index'), 'model' => 'packages', 'with_filters' => true])
+ @include('components.datatable', ['route' => route('Admin.Shop.Packages.index'), 'model' => 'packages', 'with_filters' => true])
@endcomponent
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-packages-filters'])
- @include('Shop.Admin.Packages.partials.filters')
+ @include('Admin.Shop.Packages.partials.filters')
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Packages/partials/filters.blade.php b/resources/views/admin/Shop/Packages/partials/filters.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Packages/partials/filters.blade.php
rename to resources/views/admin/Shop/Packages/partials/filters.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenericCategories/show.blade.php b/resources/views/admin/Shop/Packages/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenericCategories/show.blade.php
rename to resources/views/admin/Shop/Packages/show.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenerics/create.blade.php b/resources/views/admin/Shop/PriceListValues/create.blade.php
similarity index 73%
rename from resources/views/Shop/Admin/PriceGenerics/create.blade.php
rename to resources/views/admin/Shop/PriceListValues/create.blade.php
index 75b468af..a9d9a7e7 100644
--- a/resources/views/Shop/Admin/PriceGenerics/create.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/create.blade.php
@@ -6,8 +6,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.PriceGenerics.form')
+ {{ Form::open(['route' => 'Admin.Shop.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.PriceGenerics.form')
@endsection
diff --git a/resources/views/Shop/Admin/PriceGenerics/edit.blade.php b/resources/views/admin/Shop/PriceListValues/edit.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/PriceGenerics/edit.blade.php
rename to resources/views/admin/Shop/PriceListValues/edit.blade.php
index 995dbd6b..5db9ec75 100644
--- a/resources/views/Shop/Admin/PriceGenerics/edit.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.PriceGenerics.form')
+ @include('Admin.Shop.PriceGenerics.form')
@endsection
diff --git a/resources/views/Shop/Admin/PriceGenerics/form.blade.php b/resources/views/admin/Shop/PriceListValues/form.blade.php
similarity index 70%
rename from resources/views/Shop/Admin/PriceGenerics/form.blade.php
rename to resources/views/admin/Shop/PriceListValues/form.blade.php
index 3a7cb939..1432eabe 100644
--- a/resources/views/Shop/Admin/PriceGenerics/form.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/form.blade.php
@@ -12,12 +12,6 @@
-@include('Shop.Admin.PriceGenerics.partials.prices', ['prices' => $generic['prices'] ?? null ])
+@include('Admin.Shop.PriceGenerics.partials.prices', ['prices' => $generic['prices'] ?? null ])
-
-
-
- @include('components.button-save')
-
-
-
+@include('components.save')
diff --git a/resources/views/Shop/Admin/PriceGenerics/list.blade.php b/resources/views/admin/Shop/PriceListValues/list.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/PriceGenerics/list.blade.php
rename to resources/views/admin/Shop/PriceListValues/list.blade.php
index 9dbe2a4f..a54d291e 100644
--- a/resources/views/Shop/Admin/PriceGenerics/list.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/list.blade.php
@@ -4,10 +4,10 @@
'breadcrumb' => [__('price_generics.title')]
])
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.PriceGenerics.index'), 'model' => 'price_generics', 'with_filters' => true])
+ @include('components.datatable', ['route' => route('Admin.Shop.PriceGenerics.index'), 'model' => 'price_generics', 'with_filters' => true])
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_generics-filters'])
- @include('Shop.Admin.PriceGenerics.partials.filters')
+ @include('Admin.Shop.PriceGenerics.partials.filters')
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/PriceGenerics/partials/block_price.blade.php b/resources/views/admin/Shop/PriceListValues/partials/block_price.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenerics/partials/block_price.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/block_price.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenerics/partials/block_price_new.blade.php b/resources/views/admin/Shop/PriceListValues/partials/block_price_new.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenerics/partials/block_price_new.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/block_price_new.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenericCategories/partials/filters.blade.php b/resources/views/admin/Shop/PriceListValues/partials/filters.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenericCategories/partials/filters.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/filters.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenerics/partials/list-prices.blade.php b/resources/views/admin/Shop/PriceListValues/partials/list-prices.blade.php
similarity index 81%
rename from resources/views/Shop/Admin/PriceGenerics/partials/list-prices.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/list-prices.blade.php
index 59209886..d793f885 100644
--- a/resources/views/Shop/Admin/PriceGenerics/partials/list-prices.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/partials/list-prices.blade.php
@@ -1,6 +1,6 @@
@if (isset($prices) && (count($prices)))
@for ($i = 0; $i < count($prices); $i++)
- @include('Shop.Admin.PriceGenerics.partials.block_price', ['key' => $i, 'price' => $prices[$i]])
+ @include('Admin.Shop.PriceGenerics.partials.block_price', ['key' => $i, 'price' => $prices[$i]])
@endfor
@endif
diff --git a/resources/views/Shop/Admin/PriceGenerics/partials/prices.blade.php b/resources/views/admin/Shop/PriceListValues/partials/prices.blade.php
similarity index 91%
rename from resources/views/Shop/Admin/PriceGenerics/partials/prices.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/prices.blade.php
index 7e4b046a..d61186fa 100644
--- a/resources/views/Shop/Admin/PriceGenerics/partials/prices.blade.php
+++ b/resources/views/admin/Shop/PriceListValues/partials/prices.blade.php
@@ -1,7 +1,7 @@
-@include('Shop.Admin.PriceGenerics.partials.block_price_new')
+@include('Admin.Shop.PriceGenerics.partials.block_price_new')
- @include('Shop.Admin.PriceGenerics.partials.list-prices')
+ @include('Admin.Shop.PriceGenerics.partials.list-prices')
Ajouter un tarif
@@ -36,7 +36,7 @@
var $selector = $(this).parents('.row-price');
var id = $selector.find('.price_id').val();
- confirm_delete(id, laroute.route('Shop.Admin.PriceGenericValues.destroy', {id : id}), function() {
+ confirm_delete(id, laroute.route('Admin.Shop.PriceGenericValues.destroy', {id : id}), function() {
$selector.remove();
});
});
@@ -87,7 +87,7 @@
function load_unities($selector, package_id) {
$.ajax({
- url : "{{ route('Shop.Admin.Unities.getOptionsByPackage') }}",
+ url : "{{ route('Admin.Shop.Unities.getOptionsByPackage') }}",
method : 'POST',
data: { package_id: package_id },
success : function(data) {
diff --git a/resources/views/Shop/Admin/PriceGenerics/partials/table-prices.blade.php b/resources/views/admin/Shop/PriceListValues/partials/table-prices.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenerics/partials/table-prices.blade.php
rename to resources/views/admin/Shop/PriceListValues/partials/table-prices.blade.php
diff --git a/resources/views/Shop/Admin/PriceGenerics/show.blade.php b/resources/views/admin/Shop/PriceListValues/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/PriceGenerics/show.blade.php
rename to resources/views/admin/Shop/PriceListValues/show.blade.php
diff --git a/resources/views/admin/Shop/PriceLists/create.blade.php b/resources/views/admin/Shop/PriceLists/create.blade.php
new file mode 100644
index 00000000..6b7cadb9
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/create.blade.php
@@ -0,0 +1,13 @@
+@extends('layout.index', [
+ 'title' => __('price_lists.title'),
+ 'subtitle' => __('price_lists.create.title'),
+ 'breadcrumb' => [__('price_lists.title'), __('price_lists.create.title')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.PriceLists.store', 'id' => 'price_list-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.PriceLists.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/PriceLists/edit.blade.php b/resources/views/admin/Shop/PriceLists/edit.blade.php
new file mode 100644
index 00000000..3f44dd4a
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/edit.blade.php
@@ -0,0 +1,14 @@
+@extends('layout.index', [
+ 'title' => __('price_lists.title'),
+ 'subtitle' => __('price_lists.edit.title'),
+ 'breadcrumb' => [__('price_lists.title'), __('price_lists.edit.title')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.PriceLists.store', 'id' => 'price_list-form', 'autocomplete' => 'off']) }}
+
+ @include('Admin.Shop.PriceLists.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/PriceLists/form.blade.php b/resources/views/admin/Shop/PriceLists/form.blade.php
new file mode 100644
index 00000000..4c0a72f5
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/form.blade.php
@@ -0,0 +1,15 @@
+
+
+ {{ Form::label('name', 'Catégorie') }}
+ @include('components.select', ['name' => 'category_id', 'list' => $categories ?? [], 'value' => $generic['category_id'] ?? null, 'required' => true])
+
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $price_list['name'] ?? null, 'required' => true])
+
+
+
+@include('components.save')
diff --git a/resources/views/admin/Shop/PriceLists/list.blade.php b/resources/views/admin/Shop/PriceLists/list.blade.php
new file mode 100644
index 00000000..4a7a19a3
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/list.blade.php
@@ -0,0 +1,13 @@
+@extends('layout.index', [
+ 'title' => __('price_lists.title'),
+ 'subtitle' => __('price_lists.list.title'),
+ 'breadcrumb' => [__('price_lists.title')]
+])
+@section('content')
+ @include('components.datatable', ['route' => route('Admin.Shop.PriceLists.index'), 'model' => 'price_lists', 'with_filters' => true])
+
+ @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_lists-filters'])
+ @include('Admin.Shop.PriceLists.partials.filters')
+ @endcomponent
+
+@endsection
diff --git a/resources/views/admin/Shop/PriceLists/modal.blade.php b/resources/views/admin/Shop/PriceLists/modal.blade.php
new file mode 100644
index 00000000..3fa90fab
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/modal.blade.php
@@ -0,0 +1,52 @@
+{{ Form::open(['route' => 'Admin.Shop.PriceLists.store', 'id' => 'price_list-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+
+
+
+
+
+ {{ Form::label('status_id', 'Etat') }}
+ @include('components.select', ['name' => 'status_id', 'list' => $statuses ?? [], 'value' => $price_list['status_id'] ?? null, 'required' => true])
+
+
+ {{ Form::label('sale_channel_id', 'Canal de vente') }}
+ @include('components.select', ['name' => 'sale_channel_id', 'list' => $sale_channels ?? [], 'value' => $price_list['sale_channel_id'] ?? null, 'required' => true, 'with_empty' => ''])
+
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $price_list['name'] ?? null, 'required' => true])
+
+
+
+
+ @component('components.card', ['title' => 'Prix'])
+
+
+
+ Code
+ Seuil
+ Prix Unit.
+
+
+
+ @foreach ($price_list['price_list_values'] as $price_list_value)
+
+
+ @include('components.input', ['name' => 'price_list_values[' . $loop->index . '][code]', 'value' => $price_list_value['name'] ?? null, 'required' => true])
+
+
+ @include('components.number', ['name' => 'price_list_values[' . $loop->index . '][quantity]', 'value' => $price_list_value['quantity'] ?? null, 'required' => true, 'meta' => "step = '.01'"])
+
+
+ @include('components.money', ['name' => 'price_list_values[' . $loop->index . '][price]', 'value' => $price_list_value['price'] ?? null, 'required' => true])
+
+
+ @endforeach
+
+
+ @endcomponent
+
+
\ No newline at end of file
diff --git a/resources/views/admin/Shop/PriceLists/partials/block_price.blade.php b/resources/views/admin/Shop/PriceLists/partials/block_price.blade.php
new file mode 100644
index 00000000..2b2ab426
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/block_price.blade.php
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+ {{ Form::label('quantity', 'Qté.') }}
+ @include('components.number', ['name' => "prices[$key][quantity]", 'value' => $price['quantity'] ?? 1, 'required' => true, 'class' => 'form-control-sm'])
+
+
+
+ {{ Form::label('package_id', 'Type Package') }}
+ @include('components.select', [
+ 'name' => "prices[$key][package_id]",
+ 'value' => $price['package_id'] ?? null,
+ 'list' => $packages ?? null,
+ 'required' => true,
+ 'class' => 'select2 form-control-sm packages w-100',
+ ])
+
+
+
+ {{ Form::label('package_qty', 'Pack Qté') }}
+ @include('components.number', [
+ 'name' => "prices[$key][package_quantity]",
+ 'value' => $price['package_quantity'] ?? null,
+ 'required' => true,
+ 'class' => 'form-control-sm',
+ ])
+
+
+
+ {{ Form::label('unity_id', 'Unité') }}
+ @include('components.select', [
+ 'name' => "prices[$key][unity_id]",
+ 'value' => $price['unity_id'] ?? null,
+ 'list' => $unities ?? null,
+ 'required' => true,
+ 'class' => 'select2 form-control-sm unities w-100',
+ 'with_empty' => ''
+ ])
+
+
+
+
+
+ {{ Form::label('tax_id', 'TVA') }}
+ @include('components.select', ['name' => "prices[$key][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
+
+
+
+ {{ Form::label('price', 'Prix HT') }}
+ @include('components.money', ['name' => "prices[$key][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
+
+
+
+ {{ Form::label('price_taxed', 'Prix TTC') }}
+ @include('components.money', ['name' => "prices[$key][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/Shop/PriceLists/partials/block_price_new.blade.php b/resources/views/admin/Shop/PriceLists/partials/block_price_new.blade.php
new file mode 100644
index 00000000..3e9a2bbf
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/block_price_new.blade.php
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+ {{ Form::label('code', 'Code') }}
+ @include('components.input', ['name' => 'prices[0][code]', 'value' => $code ?? '', 'required' => true, 'class' => 'form-control-sm'])
+
+
+
+ {{ Form::label('quantity', 'Seuil') }}
+ @include('components.number', ['name' => 'prices[0][quantity]', 'value' => $quantity ?? 1, 'required' => true, 'class' => 'form-control-sm'])
+
+
+
+
+
+ {{ Form::label('tax_id', 'TVA') }}
+ @include('components.select', ['name' => "prices[0][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
+
+
+
+ {{ Form::label('price', 'Prix HT') }}
+ @include('components.money', ['name' => "prices[0][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
+
+
+
+ {{ Form::label('price_taxed', 'Prix TTC') }}
+ @include('components.money', ['name' => "prices[0][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/Shop/PriceLists/partials/filters.blade.php b/resources/views/admin/Shop/PriceLists/partials/filters.blade.php
new file mode 100644
index 00000000..e07f8121
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/filters.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/admin/Shop/PriceLists/partials/list-prices.blade.php b/resources/views/admin/Shop/PriceLists/partials/list-prices.blade.php
new file mode 100644
index 00000000..50177116
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/list-prices.blade.php
@@ -0,0 +1,16 @@
+@if (isset($prices) && (count($prices)))
+ @for ($i = 0; $i < count($prices); $i++)
+ @include('Admin.Shop.PriceLists.partials.block_price', ['key' => $i, 'price' => $prices[$i]])
+ @endfor
+@endif
+
+@push('js')
+
+@endpush
+
diff --git a/resources/views/admin/Shop/PriceLists/partials/prices.blade.php b/resources/views/admin/Shop/PriceLists/partials/prices.blade.php
new file mode 100644
index 00000000..08daa1a7
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/prices.blade.php
@@ -0,0 +1,102 @@
+@include('Admin.Shop.PriceLists.partials.block_price_new')
+
+
+ @include('Admin.Shop.PriceLists.partials.list-prices')
+
+
+
Ajouter un seuil
+
+@push('js')
+
+@endpush
diff --git a/resources/views/admin/Shop/PriceLists/partials/table-prices.blade.php b/resources/views/admin/Shop/PriceLists/partials/table-prices.blade.php
new file mode 100644
index 00000000..f82c7cf7
--- /dev/null
+++ b/resources/views/admin/Shop/PriceLists/partials/table-prices.blade.php
@@ -0,0 +1,29 @@
+@if (count($generic['prices'] ?? []))
+
+
+
+
+
+
+
+
+ {{ $generic['category']['name'] ?? null }}
+
+ @foreach ($generic['prices'] as $price)
+
+ {{ $price['quantity'] ?? null }} {{ $price['unity_id'] ?? null }}
+
+ @endforeach
+
+
+
+ {{ $generic['name'] ?? null }}
+
+ @foreach ($generic['prices'] as $price)
+
+ {{ $price['price_taxed'] ?? null }}
+
+ @endforeach
+
+
+@endif
diff --git a/resources/views/Shop/Admin/TagGroups/show.blade.php b/resources/views/admin/Shop/PriceLists/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/TagGroups/show.blade.php
rename to resources/views/admin/Shop/PriceLists/show.blade.php
diff --git a/resources/views/admin/Shop/SaleChannels/create.blade.php b/resources/views/admin/Shop/SaleChannels/create.blade.php
new file mode 100644
index 00000000..4583fb47
--- /dev/null
+++ b/resources/views/admin/Shop/SaleChannels/create.blade.php
@@ -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')
+
+@endsection
diff --git a/resources/views/admin/Shop/SaleChannels/edit.blade.php b/resources/views/admin/Shop/SaleChannels/edit.blade.php
new file mode 100644
index 00000000..f714ea00
--- /dev/null
+++ b/resources/views/admin/Shop/SaleChannels/edit.blade.php
@@ -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']) }}
+
+ @include('Admin.Shop.SaleChannels.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/SaleChannels/form.blade.php b/resources/views/admin/Shop/SaleChannels/form.blade.php
new file mode 100644
index 00000000..1fb92489
--- /dev/null
+++ b/resources/views/admin/Shop/SaleChannels/form.blade.php
@@ -0,0 +1,22 @@
+
+
+ {{ 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])
+
+
+
+
+@include('components.save')
+
+@include('load.form.editor.editor')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Shop/SaleChannels/list.blade.php b/resources/views/admin/Shop/SaleChannels/list.blade.php
new file mode 100644
index 00000000..4cb8fafa
--- /dev/null
+++ b/resources/views/admin/Shop/SaleChannels/list.blade.php
@@ -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
diff --git a/resources/views/Shop/Admin/Tags/show.blade.php b/resources/views/admin/Shop/SaleChannels/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Tags/show.blade.php
rename to resources/views/admin/Shop/SaleChannels/show.blade.php
diff --git a/resources/views/Shop/Admin/TagGroups/create.blade.php b/resources/views/admin/Shop/TagGroups/create.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/TagGroups/create.blade.php
rename to resources/views/admin/Shop/TagGroups/create.blade.php
index cfd2765a..57d07462 100644
--- a/resources/views/Shop/Admin/TagGroups/create.blade.php
+++ b/resources/views/admin/Shop/TagGroups/create.blade.php
@@ -8,8 +8,8 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.TagGroups.store', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.TagGroups.form')
+ {{ Form::open(['route' => 'Admin.Shop.TagGroups.store', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.TagGroups.form')
@endsection
diff --git a/resources/views/Shop/Admin/TagGroups/edit.blade.php b/resources/views/admin/Shop/TagGroups/edit.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/TagGroups/edit.blade.php
rename to resources/views/admin/Shop/TagGroups/edit.blade.php
index 902b68f3..f8f476f4 100644
--- a/resources/views/Shop/Admin/TagGroups/edit.blade.php
+++ b/resources/views/admin/Shop/TagGroups/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.TagGroups.update', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.TagGroups.update', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.TagGroups.form')
+ @include('Admin.Shop.TagGroups.form')
@endsection
diff --git a/resources/views/Shop/Admin/TagGroups/form.blade.php b/resources/views/admin/Shop/TagGroups/form.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/TagGroups/form.blade.php
rename to resources/views/admin/Shop/TagGroups/form.blade.php
diff --git a/resources/views/Shop/Admin/TagGroups/list.blade.php b/resources/views/admin/Shop/TagGroups/list.blade.php
similarity index 79%
rename from resources/views/Shop/Admin/TagGroups/list.blade.php
rename to resources/views/admin/Shop/TagGroups/list.blade.php
index d86f4e8c..11a4628c 100644
--- a/resources/views/Shop/Admin/TagGroups/list.blade.php
+++ b/resources/views/admin/Shop/TagGroups/list.blade.php
@@ -5,5 +5,5 @@
])
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.TagGroups.index'), 'model' => 'tag_groups'])
+ @include('components.datatable', ['route' => route('Admin.Shop.TagGroups.index'), 'model' => 'tag_groups'])
@endsection
diff --git a/resources/views/Shop/Admin/Unities/show.blade.php b/resources/views/admin/Shop/TagGroups/show.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Unities/show.blade.php
rename to resources/views/admin/Shop/TagGroups/show.blade.php
diff --git a/resources/views/Shop/Admin/Tags/create.blade.php b/resources/views/admin/Shop/Tags/create.blade.php
similarity index 74%
rename from resources/views/Shop/Admin/Tags/create.blade.php
rename to resources/views/admin/Shop/Tags/create.blade.php
index 2ef5304d..e089ba26 100644
--- a/resources/views/Shop/Admin/Tags/create.blade.php
+++ b/resources/views/admin/Shop/Tags/create.blade.php
@@ -6,11 +6,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Tags.store', 'id' => 'tag-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Tags.store', 'id' => 'tag-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Tags.form')
+ @include('Admin.Shop.Tags.form')
@endsection
diff --git a/resources/views/Shop/Admin/Tags/edit.blade.php b/resources/views/admin/Shop/Tags/edit.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/Tags/edit.blade.php
rename to resources/views/admin/Shop/Tags/edit.blade.php
index 3978fcc8..c91a2b60 100644
--- a/resources/views/Shop/Admin/Tags/edit.blade.php
+++ b/resources/views/admin/Shop/Tags/edit.blade.php
@@ -6,11 +6,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Tags.store', 'id' => 'tag-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Tags.store', 'id' => 'tag-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Tags.form')
+ @include('Admin.Shop.Tags.form')
@endsection
diff --git a/resources/views/Shop/Admin/Tags/form.blade.php b/resources/views/admin/Shop/Tags/form.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Tags/form.blade.php
rename to resources/views/admin/Shop/Tags/form.blade.php
diff --git a/resources/views/Shop/Admin/Tags/list.blade.php b/resources/views/admin/Shop/Tags/list.blade.php
similarity index 76%
rename from resources/views/Shop/Admin/Tags/list.blade.php
rename to resources/views/admin/Shop/Tags/list.blade.php
index 9d73a82d..77cc9afc 100644
--- a/resources/views/Shop/Admin/Tags/list.blade.php
+++ b/resources/views/admin/Shop/Tags/list.blade.php
@@ -5,5 +5,5 @@
])
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.Tags.index'), 'model' => 'tags'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Tags.index'), 'model' => 'tags'])
@endsection
diff --git a/resources/views/admin/Shop/Tags/show.blade.php b/resources/views/admin/Shop/Tags/show.blade.php
new file mode 100644
index 00000000..1e1cd729
--- /dev/null
+++ b/resources/views/admin/Shop/Tags/show.blade.php
@@ -0,0 +1,36 @@
+@extends('layout.index', [
+ 'title' => __('products.title'),
+ 'subtitle' => __('products.title'),
+ 'breadcrumb' => [__('products.title')]
+])
+
+@section('content')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Tariffs/create.blade.php b/resources/views/admin/Shop/Tariffs/create.blade.php
new file mode 100644
index 00000000..84775374
--- /dev/null
+++ b/resources/views/admin/Shop/Tariffs/create.blade.php
@@ -0,0 +1,13 @@
+@extends('layout.index', [
+ 'title' => __('Shop.tariffs.title'),
+ 'subtitle' => __('Shop.tariffs.add'),
+ 'breadcrumb' => [__('Shop.tariffs.title')]
+])
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Tariffs.store', 'id' => 'tariff-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.Tariffs.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Tariffs/edit.blade.php b/resources/views/admin/Shop/Tariffs/edit.blade.php
new file mode 100644
index 00000000..132e336e
--- /dev/null
+++ b/resources/views/admin/Shop/Tariffs/edit.blade.php
@@ -0,0 +1,13 @@
+@extends('layout.index', [
+ 'title' => __('Shop.tariffs.title'),
+ 'subtitle' => __('Shop.tariffs.edit'),
+ 'breadcrumb' => [__('Shop.tariffs.title')]
+])
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Tariffs.store', 'id' => 'tariffs-form', 'autocomplete' => 'off']) }}
+
+ @include('Admin.Shop.Tariffs.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Tariffs/form.blade.php b/resources/views/admin/Shop/Tariffs/form.blade.php
new file mode 100644
index 00000000..c2471f75
--- /dev/null
+++ b/resources/views/admin/Shop/Tariffs/form.blade.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+ {{ Form::label('name', 'Nom') }}
+ @include('components.input', ['name' => 'name', 'value' => $tariff['name'] ?? null, 'required' => true])
+
+
+
+
+ {{ Form::label('name', 'Canal de vente') }}
+ @include('components.select', ['name' => 'sale_channel_id', 'list' => $sale_channels ?? [], 'value' => $tariff['sale_channel_id'] ?? null, 'required' => true, 'with_empty' => ''])
+
+
+ {{ Form::label('name', 'Etat') }}
+ @include('components.select', ['name' => 'status_id', 'list' => $statuses ?? [], 'value' => $tariff['status_id'] ?? null, 'required' => true, 'with_empty' => ''])
+
+
+
+
+
+ {{ Form::label('name', 'Code') }}
+ @include('components.input', ['name' => 'code', 'value' => $tariff['code'] ?? null, 'required' => true])
+
+
+ {{ Form::label('name', 'Ref') }}
+ @include('components.input', ['name' => 'ref', 'value' => $tariff['ref'] ?? null, 'required' => true])
+
+
+ {{ Form::label('name', 'Unité du tarif') }}
+ @include('components.select', ['name' => 'tariff_unity_id', 'list' => $tariff_unities ?? [], 'value' => $tariff['tariff_unity_id'] ?? null, 'required' => true, 'with_empty' => ''])
+
+
+
+
+
+ {{ Form::label('description', 'Description') }}
+ @include('components.textarea', ['name' => 'description', 'value' => $tariff['description'] ?? null, 'class' => 'editor', 'required' => false])
+
+
+
+
+
+
+ @if ($tariff['id'] ?? false)
+ @component('components.card', ['title' => 'Liste de prix'])
+
+ @include('components.datatable', ['route' => route('Admin.Shop.PriceLists.index'), 'model' => 'price_lists', 'with_filters' => false, 'with_print' => false, 'dataTable' => $datatables['price_lists'], 'create_callback' => 'PriceListCreate();', 'edit_callback' => 'PriceListEdit(id);', 'delete_callback' => 'PriceListRefresh();'])
+
+ @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_lists-filters'])
+ @include('Admin.Shop.PriceLists.partials.filters')
+ @endcomponent
+ @endcomponent
+ @endif
+
+
+
+
+@include('components.save')
+
+@include('load.form.editor')
+@include('load.layout.modal')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Shop/Tariffs/list.blade.php b/resources/views/admin/Shop/Tariffs/list.blade.php
new file mode 100644
index 00000000..6cee9979
--- /dev/null
+++ b/resources/views/admin/Shop/Tariffs/list.blade.php
@@ -0,0 +1,11 @@
+@extends('layout.index', [
+ 'title' => __('Shop.tariffs.title'),
+ 'subtitle' => __('Shop.tariffs.list'),
+ 'breadcrumb' => [__('Shop.tariffs.title')]
+])
+
+@section('content')
+ @include('components.datatable', ['route' => route('Admin.Shop.Tariffs.index'), 'model' => 'tariffs'])
+@endsection
+
+@include('load.layout.modal')
\ No newline at end of file
diff --git a/resources/views/admin/Shop/Tariffs/show.blade.php b/resources/views/admin/Shop/Tariffs/show.blade.php
new file mode 100644
index 00000000..1e1cd729
--- /dev/null
+++ b/resources/views/admin/Shop/Tariffs/show.blade.php
@@ -0,0 +1,36 @@
+@extends('layout.index', [
+ 'title' => __('products.title'),
+ 'subtitle' => __('products.title'),
+ 'breadcrumb' => [__('products.title')]
+])
+
+@section('content')
+
+
+@endsection
diff --git a/resources/views/Shop/Admin/Unities/create.blade.php b/resources/views/admin/Shop/Unities/create.blade.php
similarity index 75%
rename from resources/views/Shop/Admin/Unities/create.blade.php
rename to resources/views/admin/Shop/Unities/create.blade.php
index 5c8faa80..d04ec6d0 100644
--- a/resources/views/Shop/Admin/Unities/create.blade.php
+++ b/resources/views/admin/Shop/Unities/create.blade.php
@@ -8,11 +8,11 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Unities.store', 'id' => 'unity-form', 'autocomplete' => 'off', 'files' => true]) }}
+ {{ Form::open(['route' => 'Admin.Shop.Unities.store', 'id' => 'unity-form', 'autocomplete' => 'off', 'files' => true]) }}
- @include('Shop.Admin.Unities.form')
+ @include('Admin.Shop.Unities.form')
@endsection
diff --git a/resources/views/Shop/Admin/Unities/edit.blade.php b/resources/views/admin/Shop/Unities/edit.blade.php
similarity index 73%
rename from resources/views/Shop/Admin/Unities/edit.blade.php
rename to resources/views/admin/Shop/Unities/edit.blade.php
index dee59b53..8e6780fb 100644
--- a/resources/views/Shop/Admin/Unities/edit.blade.php
+++ b/resources/views/admin/Shop/Unities/edit.blade.php
@@ -6,9 +6,9 @@
@section('content')
- {{ Form::open(['route' => 'Shop.Admin.Unities.store', 'id' => 'unity-form', 'autocomplete' => 'off']) }}
+ {{ Form::open(['route' => 'Admin.Shop.Unities.store', 'id' => 'unity-form', 'autocomplete' => 'off']) }}
- @include('Shop.Admin.Unities.form')
+ @include('Admin.Shop.Unities.form')
@endsection
diff --git a/resources/views/Shop/Admin/Unities/form.blade.php b/resources/views/admin/Shop/Unities/form.blade.php
similarity index 58%
rename from resources/views/Shop/Admin/Unities/form.blade.php
rename to resources/views/admin/Shop/Unities/form.blade.php
index 2b974fe9..78b0665f 100644
--- a/resources/views/Shop/Admin/Unities/form.blade.php
+++ b/resources/views/admin/Shop/Unities/form.blade.php
@@ -1,9 +1,4 @@
-
- {{ Form::label('name', 'Package') }}
- @include('components.select', ['name' => 'package_id', 'value' => $unity['package_id'] ?? null, 'list' => $packages ?? [], 'required' => false, 'with_empty' => ''])
-
-
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'value', 'value' => $unity['value'] ?? null, 'required' => true])
diff --git a/resources/views/Shop/Admin/Unities/index.blade.php b/resources/views/admin/Shop/Unities/index.blade.php
similarity index 72%
rename from resources/views/Shop/Admin/Unities/index.blade.php
rename to resources/views/admin/Shop/Unities/index.blade.php
index 0e28e02b..77105d3a 100644
--- a/resources/views/Shop/Admin/Unities/index.blade.php
+++ b/resources/views/admin/Shop/Unities/index.blade.php
@@ -23,18 +23,18 @@
@section('content')
- @include('components.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'ArticleAttributefamilies'])
+ @include('components.datatable', ['route' => route('Admin.Shop.Unities.index'), 'model' => 'ArticleAttributefamilies'])
@endsection
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.ArticleAttributeValues.index'), 'model' => 'Unities', 'with_filters' => true])
+ @include('components.datatable', ['route' => route('Admin.Shop.ArticleAttributeValues.index'), 'model' => 'Unities', 'with_filters' => true])
@endcomponent
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-filters'])
- @include('Shop.Admin.Unities.partials.filters')
+ @include('Admin.Shop.Unities.partials.filters')
@endcomponent
@endsection
@@ -44,5 +44,5 @@
@endsection
@push('scripts')
- @include('components.js.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'Unities'])
+ @include('components.js.datatable', ['route' => route('Admin.Shop.Unities.index'), 'model' => 'Unities'])
@endpush
\ No newline at end of file
diff --git a/resources/views/Shop/Admin/Unities/list.blade.php b/resources/views/admin/Shop/Unities/list.blade.php
similarity index 78%
rename from resources/views/Shop/Admin/Unities/list.blade.php
rename to resources/views/admin/Shop/Unities/list.blade.php
index 5c77ccec..045c8490 100644
--- a/resources/views/Shop/Admin/Unities/list.blade.php
+++ b/resources/views/admin/Shop/Unities/list.blade.php
@@ -6,11 +6,11 @@
@section('content')
@component('components.card')
- @include('components.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'unities','with_filters' => true])
+ @include('components.datatable', ['route' => route('Admin.Shop.Unities.index'), 'model' => 'unities','with_filters' => true])
@endcomponent
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-unities-filters'])
- @include('Shop.Admin.Unities.partials.filters')
+ @include('Admin.Shop.Unities.partials.filters')
@endcomponent
@endsection
diff --git a/resources/views/Shop/Admin/Unities/partials/filters.blade.php b/resources/views/admin/Shop/Unities/partials/filters.blade.php
similarity index 100%
rename from resources/views/Shop/Admin/Unities/partials/filters.blade.php
rename to resources/views/admin/Shop/Unities/partials/filters.blade.php
diff --git a/resources/views/admin/Shop/Unities/show.blade.php b/resources/views/admin/Shop/Unities/show.blade.php
new file mode 100644
index 00000000..1e1cd729
--- /dev/null
+++ b/resources/views/admin/Shop/Unities/show.blade.php
@@ -0,0 +1,36 @@
+@extends('layout.index', [
+ 'title' => __('products.title'),
+ 'subtitle' => __('products.title'),
+ 'breadcrumb' => [__('products.title')]
+])
+
+@section('content')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Variations/create.blade.php b/resources/views/admin/Shop/Variations/create.blade.php
new file mode 100644
index 00000000..155e4163
--- /dev/null
+++ b/resources/views/admin/Shop/Variations/create.blade.php
@@ -0,0 +1,15 @@
+@extends('layout.index', [
+ 'title' => __('Shop.variations.title'),
+ 'subtitle' => __('Shop.variations.add'),
+ 'breadcrumb' => [__('Shop.variations.title'), __('Shop.variations.add')]
+])
+
+@include('boilerplate::load.fileinput')
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Variations.store', 'id' => 'article-family-form', 'autocomplete' => 'off']) }}
+ @include('Admin.Shop.Variations.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Variations/edit.blade.php b/resources/views/admin/Shop/Variations/edit.blade.php
new file mode 100644
index 00000000..e0bde0c0
--- /dev/null
+++ b/resources/views/admin/Shop/Variations/edit.blade.php
@@ -0,0 +1,16 @@
+@extends('layout.index', [
+ 'title' => 'Famille d\'articles',
+ 'subtitle' => 'Edition d\'une famille d\'article',
+ 'breadcrumb' => ['Articles']
+])
+
+@include('boilerplate::load.fileinput')
+
+@section('content')
+
+ {{ Form::open(['route' => 'Admin.Shop.Variations.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
+
+ @include('Admin.Shop.Variations.form')
+
+
+@endsection
diff --git a/resources/views/admin/Shop/Variations/form.blade.php b/resources/views/admin/Shop/Variations/form.blade.php
new file mode 100644
index 00000000..43d0ca4c
--- /dev/null
+++ b/resources/views/admin/Shop/Variations/form.blade.php
@@ -0,0 +1,38 @@
+
+
+
+
+ {{ Form::label('package_id', 'Package') }}
+ @include('components.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $variation['package_id'] ?? false, 'required' => true, 'with_empty' => ''])
+
+
+ {{ Form::label('quantity', 'Quantité') }}
+ @include('components.input', ['name' => 'quantity', 'value' => $variation['quantity'] ?? false, 'required' => true])
+
+
+ {{ Form::label('unity_id', 'Unité') }}
+ @include('components.select', ['name' => 'unity_id', 'list' => $unities ?? [], 'value' => $variation['unity_id'] ?? false, 'required' => true, 'with_empty' => ''])
+
+
+
+
+
+
+
+ {{ Form::label('description', 'Description') }}
+ @include('components.textarea', ['name' => 'description', 'value' => isset($variation['description']) ? $variation['description'] : null, 'class' => 'editor', 'required' => false])
+
+
+
+@include('components.save')
+
+
+@include('boilerplate::load.tinymce')
+
+@push('js')
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/Shop/Variations/list.blade.php b/resources/views/admin/Shop/Variations/list.blade.php
new file mode 100644
index 00000000..107f8c60
--- /dev/null
+++ b/resources/views/admin/Shop/Variations/list.blade.php
@@ -0,0 +1,9 @@
+@extends('layout.index', [
+ 'title' => __('Shop.variations.title'),
+ 'subtitle' => __('Shop.variations.list'),
+ 'breadcrumb' => [__('Shop.variations.title')]
+])
+
+@section('content')
+ @include('components.datatable', ['route' => route('Admin.Shop.Variations.index'), 'model' => 'variations'])
+@endsection
diff --git a/resources/views/admin/Shop/Variations/show.blade.php b/resources/views/admin/Shop/Variations/show.blade.php
new file mode 100644
index 00000000..1e1cd729
--- /dev/null
+++ b/resources/views/admin/Shop/Variations/show.blade.php
@@ -0,0 +1,36 @@
+@extends('layout.index', [
+ 'title' => __('products.title'),
+ 'subtitle' => __('products.title'),
+ 'breadcrumb' => [__('products.title')]
+])
+
+@section('content')
+
+
+@endsection
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php
index 4db56fa0..da507b8e 100644
--- a/resources/views/auth/login.blade.php
+++ b/resources/views/auth/login.blade.php
@@ -5,6 +5,12 @@
@section('content')
{!! Form::open(['route' => 'boilerplate.login', 'method' => 'post', 'autocomplete'=> 'off']) !!}
+
+
+
+
+
+