/** * 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')); }
public function locations() { $states = State::all(); $totalState = State::count(); $totalBiz = Biz::count(); $stateList = State::lists('name', 'name'); return view('pages.locations', compact('states', 'totalState', 'stateList', 'totalBiz')); }