/** * Display a listing of the resource. * * @return Response */ public function index() { // $spots = Spot::all(); return view('spots.index', compact('spots')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $room = Room::find($id); $spots = Spot::all(); $events = Event::all(); return view('rooms.edit', compact('room', 'spots', 'events')); }
public function bookBooth($id) { if (!$this->adminAuth() && !$this->checkCompanyType()) { return view('errors.404'); } $exhibitioneventId = $id; $checExEv = ExhibitionEvent::find($exhibitioneventId); if (date("Y-m-d H:i:s") > $checExEv->start_time) { return view('errors.404'); } $exhibitors = Exhibitor::all(); $exhibitionevents = ExhibitionEvent::all(); $types = Type::all(); $models = Modeldesign::all(); $spots = Spot::all(); return view('CompanyCP.booths.create', compact('types', 'models', 'exhibitors', 'exhibitionevents', 'exhibitioneventId', 'spots')); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $data = Spot::all(); return response()->json(json_encode($data)); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $types = Spot::all(); return $types; }