more improvements

This commit is contained in:
denisdulici
2017-09-27 21:58:43 +03:00
parent 47f7b5b20e
commit 092a336396
11 changed files with 11 additions and 25 deletions

View File

@ -23,7 +23,8 @@ class Items extends Controller
{
$items = Item::with('category')->collect();
$categories = Category::enabled()->type('item')->pluck('name', 'id')->prepend(trans('categories.all'), '');
$categories = Category::enabled()->type('item')->pluck('name', 'id')
->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
return view('items.items.index', compact('items', 'categories'));
}