Display filters, and fix css for article

This commit is contained in:
Ludovic CANDELLIER
2022-01-22 13:12:43 +01:00
parent efff4f0341
commit 26f3fc3d2c
7 changed files with 57 additions and 41 deletions

View File

@@ -9,6 +9,7 @@ use App\Repositories\Shop\Articles;
use App\Repositories\Shop\Categories;
use App\Repositories\Shop\Offers;
use App\Repositories\Shop\Tags;
use App\Repositories\Shop\TagGroups;
class HomeController extends Controller
{
@@ -24,11 +25,8 @@ class HomeController extends Controller
$data['display_by_rows'] = $input['by_rows'] ?? false;
// $data['offers'] = Offers::getLast()->toArray();
$data['articles'] = Articles::getArticlesToSell();
$data['tags'] = Tags::getWithCountOffers();
// $data['prices'] = $data['articles']['offers'][0]['tariff']['price_lists'][0]['price_list_values'][0];
// dump($data);
// exit;
// $data['tags'] = Tags::getWithCountOffers();
$data['tags'] = TagGroups::getWithTagsAndCountOffers();
return view('Shop.home', $data);
}
}