where('type', StaticPageType::home)->first(); $sectionModels = Section::query()->where('page_id', $staticPageModel->id)->get(); $stripModels = Strip::query()->where('published', true) ->orderBy('publish_at', 'DESC') ->limit(6) ->with('news') ->get(); $newsModels = News::query()->where('published', true) ->orderBy('publish_at', 'DESC') ->limit(4) ->get(); $slideModels = Slide::query()->where('slider', SliderTypeEnum::home)->get(); $missionSection = $sectionModels->where('section', PageSectionEnum::home_missions)->first(); $ambitionSection = $sectionModels->where('section', PageSectionEnum::home_ambition)->first(); $teamSection = $sectionModels->where('section', PageSectionEnum::home_team)->first(); $lifeSection = $sectionModels->where('section', PageSectionEnum::home_life)->first(); return view('fo.pages.home', compact( 'staticPageModel', 'sectionModels', 'stripModels', 'newsModels', 'slideModels', 'missionSection', 'ambitionSection', 'teamSection', 'lifeSection', )); } }