new: add filtered articles link from category edit form
This commit is contained in:
@@ -26,6 +26,7 @@ class ArticleController extends Controller
|
|||||||
'article_natures' => ArticleNatures::getOptions(),
|
'article_natures' => ArticleNatures::getOptions(),
|
||||||
'categories' => Categories::getOptions(),
|
'categories' => Categories::getOptions(),
|
||||||
'tags' => Tags::getOptionsFullName(),
|
'tags' => Tags::getOptionsFullName(),
|
||||||
|
'filters' => request()->only(['article_nature_id', 'category_id', 'tag_id']),
|
||||||
];
|
];
|
||||||
|
|
||||||
return $dataTable->render('Admin.Shop.Articles.list', $data);
|
return $dataTable->render('Admin.Shop.Articles.list', $data);
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
@if ($category['id'] ?? false)
|
||||||
|
<div class="d-flex justify-content-end mb-3">
|
||||||
|
<a href="{{ route('Admin.Shop.Articles.index', ['category_id' => $category['id']]) }}" class="btn btn-outline-primary">
|
||||||
|
Voir les articles de ce rayon
|
||||||
|
<i class="fa fa-external-link"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-9">
|
<div class="col-9">
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user