示例#1
0
 /**
  * Responds to requests to GET /timeslots
  */
 public function getTimeslots()
 {
     $timeslots = \App\Timeslot::orderBy('room_id', 'ASC')->orderBy('available_from', 'ASC')->with('room')->get();
     return view('timeslots.list')->with('timeslots', $timeslots);
 }
示例#2
0
 public function preview()
 {
     $rooms = Room::where("available", true)->get();
     $days = Timeslot::orderBy("id", 'desc')->first()->day;
     $presentations = Presentation::where('conference_id', '=', get_current_conference_id())->whereNotNull('timeslot')->get();
     $timeslots = Timeslot::where('conference_id', '=', get_current_conference_id())->get();
     return view('timeslots.preview', compact('timeslots', 'rooms', 'presentations', 'days'));
 }