/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function addOrder()
 {
     //
     $dealers = \App\Dealer::orderBy("name", "asc")->lists("name", "id")->toArray();
     $manufacturers = \App\Manufacturer::orderBy("name", "asc")->lists("name", "id")->toArray();
     $dealers = array('' => 'Select dealers') + $dealers;
     $manufacturers = array('' => 'Select manufacturers') + $manufacturers;
     return view("users.orders.add", ['manufacturers' => $manufacturers, 'dealers' => $dealers]);
 }
 public function deleteDealer($id)
 {
     $dealer = \App\Dealer::findOrFail($id);
     $dealer->delete();
     return redirect("admin/dealers")->with('success', 'Dealer deleted successfully!');
 }