/**
  * @GET("/requests", as="admin.requests.users")
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function index()
 {
     $requests = Purchase::all();
     $minus = Minus::all()->first();
     return view('admin.requests.index', compact('requests', 'minus'));
 }
 /**
  * @PATCH("minus/{minus}", as="admin.minus.update")
  * @param Minus $minus
  * @param Request $request
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(Minus $minus, Request $request)
 {
     $minus->fill($request->all());
     $minus->update();
     return redirect()->route('admin.minus.index')->with('message', 'Значение обновлено!');
 }