paginate(6); $produits = Categorie::where('etat','1')->get(); $categories = Categorie::where('etat','1')->get(); $contacts = Contact::where('etat','1')->get(); return view('frontend.promotion.promo',compact('promotions','categories','contacts','produits')); } public function show ($id){ $promotion = Promotion::find($id); $categories = Categorie::where('etat','1')->get(); $contacts = Contact::where('etat','1')->get(); return view('frontend.promotion.details',compact('contacts','promotion','categories')); } }