function getAllCategPrimaPagSelectBox() { return PrimaPaginaCateg::where('Activ', 1)->lists('Nume', 'Cod'); }
/** * Show the application dashboard. * * @return Response */ public function index() { $bannereSlider = BannereSlider::where('Activ', 1)->orderBy('Ord', 'asc')->get(); $categoriiOferte = PrimaPaginaCateg::where('Activ', 1)->orderBy('Ord', 'asc')->with('OfertePrimaPagina')->get(); return view('frontend/prima-pagina', compact('bannereSlider', 'categoriiOferte')); }