Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $exhibitors = Exhibitor::all();
     return view('exhibitors.index', compact('exhibitors'));
 }
Пример #2
0
 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'));
 }
Пример #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $seriesevent = SeriesEvent::find($id);
     $exhibitions = Exhibition::all();
     $exhibitors = Exhibitor::all();
     return view('seriesevents.edit', compact('seriesevent', 'exhibitors', 'exhibitions'));
 }