/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $modelId = Request::get('id');
     Modeldesign::where('id', $modelId)->delete();
     return redirect("modeldesigns");
 }
 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'));
 }