settings = new Settings(); $this->creators = new Creators(); $this->sections = new Sections(); } public function index() { $heroVideo = $this->settings->getValue('hero-video'); $creators = $this->creators->getFeatured(); $sections = $this->sections->all(); return view('frontend::index', compact('heroVideo', 'creators', 'sections')); } public function manager() { return view('frontend::manager'); } public function video(Request $request, Video $video) { $video->load('thumbnail'); return view('frontend::video', compact('video')); } public function creators() { $creators = $this->creators->all(); return response()->json([ 'creators' => $creators, ]); } public function featuredCreators() { $creators = $this->creators->getFeatured(); return response()->json([ 'creators' => $creators, ]); } public function updateFeaturedCreators(Request $request) { $creators = $request->items; $this->creators->updateFeatured($creators); return response()->json([ 'message' => __('frontend::common.featured-creators-updated'), ]); } }