fix
This commit is contained in:
@@ -18,5 +18,4 @@ class ArticleController extends Controller
|
||||
// exit;
|
||||
return view('Shop.Articles.show', $data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Http\Controllers\Controller;
|
||||
use App\Repositories\Shop\Categories;
|
||||
use App\Repositories\Shop\Offers;
|
||||
use App\Repositories\Shop\Tags;
|
||||
use App\Repositories\Shop\TagGroups;
|
||||
|
||||
class CategoryController extends Controller
|
||||
{
|
||||
@@ -22,6 +23,7 @@ class CategoryController extends Controller
|
||||
$data['category'] = Categories::getFull($id);
|
||||
$data['offers'] = Offers::getByCategoryWithTags($id);
|
||||
$data['tags'] = Tags::getWithCountOffers();
|
||||
$data['tags2'] = TagGroups::getWithTagsAndCountOffers();
|
||||
dump($data);
|
||||
exit;
|
||||
return view('Shop.shelve', $data);
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Http\Controllers\Controller;
|
||||
use App\Repositories\Shop\Articles;
|
||||
use App\Repositories\Shop\Categories;
|
||||
use App\Repositories\Shop\Offers;
|
||||
use App\Repositories\Shop\Tags;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
@@ -23,6 +24,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;
|
||||
|
||||
Reference in New Issue
Block a user