Example #1
0
 public function listAll()
 {
     $brandsList = Brand::all('name', 'id');
     $modelsList = BrandModel::all('name', 'id', 'brand_id');
     $partsList = PartType::all('name', 'id');
     return view('backoffice.globalArticleSearch')->with(compact('modelsList'))->with(compact('brandsList'))->with(compact('partsList'));
 }
Example #2
0
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     $articleCount = Article::all()->count();
     $partTypeCount = PartType::all()->count();
     $brandsCount = Brand::all()->count();
     $modelCount = BrandModel::all()->count();
     // dd($articleCount);
     return view('home')->with(['articleCount' => $articleCount, 'partTypeCount' => $partTypeCount, 'brandsCount' => $brandsCount, 'modelCount' => $modelCount]);
 }