Esempio n. 1
0
 public function getInvitedSpeakers()
 {
     $speakers = Speaker::where("created_at", "like", $this->year . "%")->orderby('day', 'asc')->get();
     $firstDay = Speaker::where("created_at", "like", $this->year . "%")->groupby('day')->orderby('day', 'asc')->first();
     $lastDay = Speaker::where("created_at", "like", $this->year . "%")->groupby('day')->orderby('day', 'desc')->first();
     return view('programs.invited_speakers', compact('speakers', 'firstDay', 'lastDay'))->with('year', $this->curYear);
 }
Esempio n. 2
0
 public function getIndex()
 {
     $banners = File::where('img_type', 'banner')->where("created_at", "like", $this->year . "%")->get();
     $speakers = Speaker::where("created_at", "like", $this->year . "%")->limit(4)->get();
     $cooperations = File::where('img_type', 'cooperation')->where("created_at", "like", $this->year . "%")->get();
     $supporteds = File::where('img_type', 'supported')->where("created_at", "like", $this->year . "%")->get();
     $organizeds = File::where('img_type', 'organized')->where("created_at", "like", $this->year . "%")->get();
     $news = News::where('is_hide', 0)->where("created_at", "like", $this->year . "%")->orderBy('id', 'desc')->limit(4)->get();
     return view('frontend.home.index', compact('banners', 'speakers', 'cooperations', 'supporteds', 'organizeds', 'news'))->with('year', $this->curYear);
 }
 public function getIndex()
 {
     $speakers = Speaker::where("created_at", "like", $this->year . "%")->get();
     return view('admin.call_for_paper.speaker.index', compact(['speakers']));
 }