From 92a8a0ed6907e80468a59c98b02509d2e37396e3 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Mon, 5 Apr 2021 23:40:39 +0200 Subject: [PATCH] fixes --- app/Models/Shop/TagGroup.php | 5 +++++ .../views/Shop/Admin/PriceGenericCategories/list.blade.php | 4 ++-- resources/views/Shop/Admin/PriceGenerics/list.blade.php | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/Models/Shop/TagGroup.php b/app/Models/Shop/TagGroup.php index d5e6c6a2..31070d6a 100644 --- a/app/Models/Shop/TagGroup.php +++ b/app/Models/Shop/TagGroup.php @@ -14,4 +14,9 @@ class TagGroup extends Model { return $this->hasMany('App\Models\Shop\Tag'); } + + public function article_family() + { + return $this->belongsTo('App\Models\Shop\ArticleFamily'); + } } diff --git a/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php b/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php index 85194be1..7b175ee6 100644 --- a/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php +++ b/resources/views/Shop/Admin/PriceGenericCategories/list.blade.php @@ -4,9 +4,9 @@ 'breadcrumb' => [__('price_generic_categories.title')] ]) @section('content') - @include('components.datatable', ['route' => route('Shop.Admin.PriceGenericCategories.index'), 'model' => 'price-generic-categories', 'with_filters' => true]) + @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']) + @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_generic_categories-filters']) @include('Shop.Admin.PriceGenericCategories.partials.filters') @endcomponent diff --git a/resources/views/Shop/Admin/PriceGenerics/list.blade.php b/resources/views/Shop/Admin/PriceGenerics/list.blade.php index 4b3033be..9dbe2a4f 100644 --- a/resources/views/Shop/Admin/PriceGenerics/list.blade.php +++ b/resources/views/Shop/Admin/PriceGenerics/list.blade.php @@ -4,9 +4,9 @@ '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('Shop.Admin.PriceGenerics.index'), 'model' => 'price_generics', 'with_filters' => true]) - @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price-generics-filters']) + @component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_generics-filters']) @include('Shop.Admin.PriceGenerics.partials.filters') @endcomponent