/** * Responds to requests to GET /timeslots/edit/{timeslot_id?} */ public function getEdit($timeslot_id) { $rooms_for_dropdown = \App\Room::roomsForDropdown(); $timeslot = \App\Timeslot::find($timeslot_id); return view('timeslots.detail')->with('timeslot', $timeslot)->with('edit', true)->with('rooms_for_dropdown', $rooms_for_dropdown); }
/** * Responds to requests to GET /reservation/create */ public function getCreate($room_id) { $rooms_for_dropdown = \App\Room::roomsForDropdown(); $room = \App\Room::find($room_id); return view('reservations.create')->with('rooms_for_dropdown', $rooms_for_dropdown)->with('room', $room); }