public function destroy(Request $request, $id)
 {
     $response = Location::deleteByCondition($id);
     if ($request->ajax()) {
         return $response;
     }
     if ($response['status']) {
         flash()->success(trans('location.label.name'), $response['message']);
     } else {
         flash()->success(trans('location.label.name'), $response['message']);
     }
     return redirect('/locations');
 }