where('type', StaticPageType::home)->firstOrFail(); $currentLocale = app()->currentLocale(); $home = Home::query()->firstOrFail(); $sliders = Slider::query() ->where('status', true) ->orderBy('order') ->whereJsonContains('locales', $currentLocale) ->get(); return view('fo.pages.home', compact('staticPageModel', 'home', 'sliders')); } }