/** * Display a listing of the resource. * * @return Response */ public function index() { // $models = Modeldesign::all(); //var_dump($models); exit(); return view('modeldesigns.index', compact('models')); }
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')); }