diff --git a/app/Http/Controllers/GammesController.php b/app/Http/Controllers/GammesController.php index f957bb1..44970d0 100644 --- a/app/Http/Controllers/GammesController.php +++ b/app/Http/Controllers/GammesController.php @@ -10,6 +10,9 @@ class GammesController extends Controller public function index() { $gammes = Gamme::whereNull('parent_gamme_id')->orderBy('title')->get(); + //remove Food Service from count + /** @var \Illuminate\Database\Eloquent\Collection $gammes */ + $gammes = $gammes->whereNotIn('slug','food-service'); $nb_gammes = $gammes->count(); return view('front.gammes.index', compact('gammes', 'nb_gammes'));