diff --git a/app/DataTables/Shop/PriceGenericCategoriesDataTable.php b/app/DataTables/Shop/PriceGenericCategoriesDataTable.php new file mode 100644 index 00000000..b96c9d90 --- /dev/null +++ b/app/DataTables/Shop/PriceGenericCategoriesDataTable.php @@ -0,0 +1,26 @@ +title('Nom'), + self::makeColumnButtons(), + ]; + } + +} diff --git a/resources/views/Shop/Admin/PriceGenericCategories/create.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/create.blade.php new file mode 100644 index 00000000..7d5a4812 --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/create.blade.php @@ -0,0 +1,13 @@ +@extends('layout.index', [ + 'title' => __('price_generic_categories.title'), + 'subtitle' => __('price_generic_categories.create.title'), + 'breadcrumb' => [__('price_generic_categories.title'), __('price_generic_categories.create.title')] +]) + +@section('content') + + {{ Form::open(['route' => 'Shop.Admin.PriceGenericCategories.store', 'id' => 'price-generic-category-form', 'autocomplete' => 'off']) }} + @include('Shop.Admin.PriceGenericCategories.form') + + +@endsection diff --git a/resources/views/Shop/Admin/PriceGenericCategories/edit.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/edit.blade.php new file mode 100644 index 00000000..c898ea4b --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/edit.blade.php @@ -0,0 +1,14 @@ +@extends('layout.index', [ + 'title' => __('price_generic_categories.title'), + 'subtitle' => __('price_generic_categories.edit.title'), + 'breadcrumb' => [__('price_generic_categories.title'), __('price_generic_categories.edit.title')] +]) + +@section('content') + + {{ Form::open(['route' => 'Shop.Admin.PriceGenericCategories.store', 'id' => 'price-generic-category-form', 'autocomplete' => 'off']) }} + + @include('Shop.Admin.PriceGenericCategories.form') + + +@endsection diff --git a/resources/views/Shop/Admin/PriceGenericCategories/form.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/form.blade.php new file mode 100644 index 00000000..bd3fe4eb --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/form.blade.php @@ -0,0 +1,14 @@ +
+
+ {{ Form::label('name', 'Nom') }} + @include('components.input', ['name' => 'name', 'value' => $generic_category['name'] ?? null, 'required' => true]) +
+
+ +
+
+
+ @include('components.button-save') +
+
+
diff --git a/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php new file mode 100644 index 00000000..85194be1 --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php @@ -0,0 +1,13 @@ +@extends('layout.index', [ + 'title' => __('price_generic_categories.title'), + 'subtitle' => __('price_generic_categories.list.title'), + 'breadcrumb' => [__('price_generic_categories.title')] +]) +@section('content') + @include('components.datatable', ['route' => route('Shop.Admin.PriceGenericCategories.index'), 'model' => 'price-generic-categories', 'with_filters' => true]) + + @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price-generic-categories-filters']) + @include('Shop.Admin.PriceGenericCategories.partials.filters') + @endcomponent + +@endsection diff --git a/resources/views/Shop/Admin/PriceGenericCategories/partials/filters.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/partials/filters.blade.php new file mode 100644 index 00000000..c4fd3bab --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/partials/filters.blade.php @@ -0,0 +1,8 @@ +
+
+ +
+ @include('components.select', ['name' => 'category_id', 'list' => (isset($categories)) ? $categories : [], 'value' => (isset($filters['category_id'])) ? $filters['category_id'] : null, 'class' => 'form-control-sm select2', 'with_empty' => ' ']) +
+
+
diff --git a/resources/views/Shop/Admin/PriceGenericCategories/show.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/show.blade.php new file mode 100644 index 00000000..1e1cd729 --- /dev/null +++ b/resources/views/Shop/Admin/PriceGenericCategories/show.blade.php @@ -0,0 +1,36 @@ +@extends('layout.index', [ + 'title' => __('products.title'), + 'subtitle' => __('products.title'), + 'breadcrumb' => [__('products.title')] +]) + +@section('content') +
+ +
+ +
+ +
+
+
+

{{ name }}

+

+ {{ $product.section.name }}
+

+
+
+

{{ $prix_total }} €

+

{{ $residence['type_produit']['name'] }}

+
+ +
+ @include('Hestimmo.modules.Lot.partials.carousel') +
+
+
+
+
+
+ +@endsection