diff --git a/app/Http/Controllers/Admin/Shop/ArticleController.php b/app/Http/Controllers/Admin/Shop/ArticleController.php index 9441d1e4..72dc656e 100644 --- a/app/Http/Controllers/Admin/Shop/ArticleController.php +++ b/app/Http/Controllers/Admin/Shop/ArticleController.php @@ -26,6 +26,7 @@ class ArticleController extends Controller 'article_natures' => ArticleNatures::getOptions(), 'categories' => Categories::getOptions(), 'tags' => Tags::getOptionsFullName(), + 'filters' => request()->only(['article_nature_id', 'category_id', 'tag_id']), ]; return $dataTable->render('Admin.Shop.Articles.list', $data); diff --git a/resources/views/Admin/Shop/Categories/form.blade.php b/resources/views/Admin/Shop/Categories/form.blade.php index d339e875..8d11a255 100644 --- a/resources/views/Admin/Shop/Categories/form.blade.php +++ b/resources/views/Admin/Shop/Categories/form.blade.php @@ -1,3 +1,12 @@ +@if ($category['id'] ?? false) +
+@endif +