/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Estate $estate_id)
 {
     $estate = Estate::all();
     $estate = \DB::table('estates')->lists('title', 'id');
     $rentaltype = Rentaltype::all();
     $rentaltype = \DB::table('rentaltypes')->lists('title', 'id');
     return view('rentals.create')->with('estate', $estate)->with('rentaltype', $rentaltype);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $rentaltype = Rentaltype::find(Input::get('id'));
     if ($rentaltype) {
         $rentaltype->delete();
         return redirect('Admin/rentaltypes')->with('message', 'Rentaltype deleted successfully');
     }
 }