/** * Display a listing of the resource. * * @return Response */ public function index() { $cats = Cat::all(); $bizs = Biz::all(); $states = State::all(); return view('admin.index', compact('biz', 'states', 'featured'))->withCats($cats); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $bizs = Biz::all(); $totalBiz = Biz::count(); // dd($totalBiz); // foreach( $bizs as $biz) return view('admin.biz.index', compact('bizs', 'totalBiz')); }