public function index()
 {
     if (\Input::has('query')) {
         $query = \Input::get('query');
         $moviedetails = LatestMovies::where('movie_name', '=', $query)->get();
         return view('frontend.moviedetails')->with('moviedetails', $moviedetails);
     }
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $del = LatestMovies::find($id)->delete();
     if ($del) {
         return $this->index();
     }
     return ['del' => 0];
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $theratermovies = LatestMovies::where("movie_name", $id)->get();
     $theratershow = TheraterMovie::where("show_movie", $id)->get();
     return view('frontend.movietheraterdetails')->with('theratermovies', $theratermovies)->with('theratershow', $theratershow);
 }
 public function index()
 {
     $data = LatestMovies::all();
     return view('frontend.theratersmovies')->with('latestmovies', $data);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $moviedetails = LatestMovies::where("movie_name", $id)->get();
     return view('frontend.moviedetails')->with('moviedetails', $moviedetails);
 }