text: "use strict";
  (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_views_User_Edit_vue"],{
  
  /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=script&lang=js&":
  /*!***********************************************************************************************************************************************************************************************************!*\
    !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=script&lang=js& ***!
    \***********************************************************************************************************************************************************************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var _services_auth_user__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/auth/user */ "./resources/js/services/auth/user.js");
  /* harmony import */ var _services_auth_department__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/auth/department */ "./resources/js/services/auth/department.js");
  
  
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
  
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
  
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: "auth.users.add",
    mounted: function mounted() {
      var _this = this;
  
      return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
        var res;
        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this.id = _this.$route.params.id;
                _context.next = 3;
                return _services_auth_user__WEBPACK_IMPORTED_MODULE_1__["default"].get(_this.id);
  
              case 3:
                res = _context.sent;
                _this.name = res.name;
                _this.email = res.email;
                _this.password = res.password;
                _this.role_id = res.role_id;
                _this.department_id = res.department_id;
                _services_auth_department__WEBPACK_IMPORTED_MODULE_2__["default"].getlist('').then(function (e) {
                  _this.departments = e.data;
                });
  
              case 10:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }))();
    },
    methods: {
      resetError: function resetError() {
        this.errors = {
          name: [],
          email: [],
          password: [],
          role_id: [],
          department_id: []
        };
      },
      addbrand: function () {
        var _addbrand = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2() {
          var formdata, res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  this.resetError();
  
                  if (!this.$refs.form.validate()) {
                    _context2.next = 15;
                    break;
                  }
  
                  this.btnloading = true;
                  formdata = new FormData();
                  formdata.append("name", this.name);
                  formdata.append("email", this.email);
  
                  if (this.password != '') {
                    formdata.append("password", this.password);
                  }
  
                  formdata.append("role_id", this.role_id);
                  formdata.append("company_id", this.user.company_id);
                  formdata.append("department_id", this.department_id);
                  this.btnloading = false;
                  _context2.next = 13;
                  return _services_auth_user__WEBPACK_IMPORTED_MODULE_1__["default"].update(formdata, this.id);
  
                case 13:
                  res = _context2.sent;
  
                  if (!res.status) {
                    if (res.data.name) {
                      this.errors.name = res.data.name;
                    }
  
                    if (res.data.email) {
                      this.errors.email = res.data.email;
                    }
  
                    if (res.data.password) {
                      this.errors.password = res.data.password;
                    }
  
                    if (res.data.role_id) {
                      this.errors.role_id = res.data.role_id;
                    }
  
                    if (res.data.department_id) {
                      this.errors.department_id = res.data.department_id;
                    } //errors here
  
                  } else {
                    //suuccess here
                    this.$router.push({
                      name: "auth.users.listing"
                    });
                  }
  
                case 15:
                case "end":
                  return _context2.stop();
              }
            }
          }, _callee2, this);
        }));
  
        function addbrand() {
          return _addbrand.apply(this, arguments);
        }
  
        return addbrand;
      }()
    },
    computed: {
      user: function user() {
        return this.$store.getters.loggedInUser;
      }
    },
    data: function data() {
      return {
        name: '',
        email: '',
        password: '',
        role_id: '',
        department_id: '',
        departments: [],
        id: 0,
        errors: {
          name: [],
          email: [],
          password: [],
          role_id: [],
          department_id: []
        },
        bread: [{
          text: "Dashboard",
          to: {
            name: "auth.dashboard"
          },
          disabled: false,
          exact: true
        }, {
          text: "User",
          to: {
            name: "auth.users.listing"
          },
          disabled: false,
          exact: true
        }, {
          text: "Add",
          to: {
            name: "auth.users.edit",
            params: {
              id: this.$route.params.id
            }
          },
          disabled: false,
          exact: true
        }],
        loading: false,
        btnloading: false,
        rules: {
          required: function required(value) {
            return !!value || "Required.";
          }
        }
      };
    }
  });
  
  /***/ }),
  
  /***/ "./resources/js/services/auth/department.js":
  /*!**************************************************!*\
    !*** ./resources/js/services/auth/department.js ***!
    \**************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
  
  
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
  
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  var axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
  
  var departmentservice = /*#__PURE__*/function () {
    function departmentservice() {
      _classCallCheck(this, departmentservice);
    }
  
    _createClass(departmentservice, [{
      key: "getlist",
      value: function getlist(params) {
        return axios.get("/api/departments".concat(params)).then(function (response) {
          return response.data;
        })["catch"](function (error) {
          return error;
        });
      }
    }, {
      key: "delete",
      value: function _delete(_ref) {
        var query = _ref.query,
            id = _ref.id;
        return axios["delete"]("/api/departments/".concat(id));
      }
    }, {
      key: "create",
      value: function () {
        var _create = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(formData) {
          var res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return axios.post('/api/departments', formData).then(function (e) {
                    return {
                      status: 1,
                      data: e.data.data
                    };
                  })["catch"](function (e) {
                    return {
                      status: 0,
                      data: e.response.data.errors
                    };
                  });
  
                case 2:
                  res = _context.sent;
                  return _context.abrupt("return", res);
  
                case 4:
                case "end":
                  return _context.stop();
              }
            }
          }, _callee);
        }));
  
        function create(_x) {
          return _create.apply(this, arguments);
        }
  
        return create;
      }()
    }, {
      key: "get",
      value: function () {
        var _get = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(id) {
          var res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return axios.get("/api/departments/".concat(id));
  
                case 2:
                  res = _context2.sent;
                  return _context2.abrupt("return", res.data.data);
  
                case 4:
                case "end":
                  return _context2.stop();
              }
            }
          }, _callee2);
        }));
  
        function get(_x2) {
          return _get.apply(this, arguments);
        }
  
        return get;
      }()
    }, {
      key: "update",
      value: function () {
        var _update = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee3(formData, id) {
          var res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee3$(_context3) {
            while (1) {
              switch (_context3.prev = _context3.next) {
                case 0:
                  formData.append('_method', 'put');
                  _context3.next = 3;
                  return axios.post('/api/departments/' + id, formData).then(function (e) {
                    return {
                      status: 1,
                      data: e.data.data
                    };
                  })["catch"](function (e) {
                    return {
                      status: 0,
                      data: e.response.data.errors
                    };
                  });
  
                case 3:
                  res = _context3.sent;
                  return _context3.abrupt("return", res);
  
                case 5:
                case "end":
                  return _context3.stop();
              }
            }
          }, _callee3);
        }));
  
        function update(_x3, _x4) {
          return _update.apply(this, arguments);
        }
  
        return update;
      }()
    }]);
  
    return departmentservice;
  }();
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new departmentservice());
  
  /***/ }),
  
  /***/ "./resources/js/services/auth/user.js":
  /*!********************************************!*\
    !*** ./resources/js/services/auth/user.js ***!
    \********************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
  /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
  
  
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
  
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  var axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
  
  var userservice = /*#__PURE__*/function () {
    function userservice() {
      _classCallCheck(this, userservice);
    }
  
    _createClass(userservice, [{
      key: "getlist",
      value: function getlist(params) {
        return axios.get("/api/user".concat(params)).then(function (response) {
          return response.data;
        })["catch"](function (error) {
          return error;
        });
      }
    }, {
      key: "create",
      value: function () {
        var _create = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(formData) {
          var res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return axios.post('/api/user', formData).then(function (e) {
                    return {
                      status: 1,
                      data: e.data.data
                    };
                  })["catch"](function (e) {
                    return {
                      status: 0,
                      data: e.response.data.errors
                    };
                  });
  
                case 2:
                  res = _context.sent;
                  return _context.abrupt("return", res);
  
                case 4:
                case "end":
                  return _context.stop();
              }
            }
          }, _callee);
        }));
  
        function create(_x) {
          return _create.apply(this, arguments);
        }
  
        return create;
      }()
    }, {
      key: "delete",
      value: function _delete(_ref) {
        var query = _ref.query,
            id = _ref.id;
        return axios["delete"]("/api/user/".concat(id));
      }
    }, {
      key: "get",
      value: function get(id) {
        return axios.get("/api/user/".concat(id)).then(function (e) {
          return e.data.data;
        });
      }
    }, {
      key: "update",
      value: function () {
        var _update = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2(formData, id) {
          var res;
          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  formData.append('_method', 'put');
                  _context2.next = 3;
                  return axios.post('/api/user/' + id, formData).then(function (e) {
                    return {
                      status: 1,
                      data: e.data.data
                    };
                  })["catch"](function (e) {
                    return {
                      status: 0,
                      data: e.response.data.errors
                    };
                  });
  
                case 3:
                  res = _context2.sent;
                  return _context2.abrupt("return", res);
  
                case 5:
                case "end":
                  return _context2.stop();
              }
            }
          }, _callee2);
        }));
  
        function update(_x2, _x3) {
          return _update.apply(this, arguments);
        }
  
        return update;
      }()
    }]);
  
    return userservice;
  }();
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new userservice());
  
  /***/ }),
  
  /***/ "./resources/js/views/User/Edit.vue":
  /*!******************************************!*\
    !*** ./resources/js/views/User/Edit.vue ***!
    \******************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Edit.vue?vue&type=template&id=99144e42& */ "./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42&");
  /* harmony import */ var _Edit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit.vue?vue&type=script&lang=js& */ "./resources/js/views/User/Edit.vue?vue&type=script&lang=js&");
  /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
  
  
  
  
  
  /* normalize component */
  ;
  var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
    _Edit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
    _Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__.render,
    _Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
    false,
    null,
    null,
    null
    
  )
  
  /* hot reload */
  if (false) { var api; }
  component.options.__file = "resources/js/views/User/Edit.vue"
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);
  
  /***/ }),
  
  /***/ "./resources/js/views/User/Edit.vue?vue&type=script&lang=js&":
  /*!*******************************************************************!*\
    !*** ./resources/js/views/User/Edit.vue?vue&type=script&lang=js& ***!
    \*******************************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Edit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=script&lang=js&");
   /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Edit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 
  
  /***/ }),
  
  /***/ "./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42&":
  /*!*************************************************************************!*\
    !*** ./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42& ***!
    \*************************************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__.render),
  /* harmony export */   "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
  /* harmony export */ });
  /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Edit_vue_vue_type_template_id_99144e42___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=template&id=99144e42& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42&");
  
  
  /***/ }),
  
  /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42&":
  /*!****************************************************************************************************************************************************************************************************************!*\
    !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/User/Edit.vue?vue&type=template&id=99144e42& ***!
    \****************************************************************************************************************************************************************************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "render": () => (/* binding */ render),
  /* harmony export */   "staticRenderFns": () => (/* binding */ staticRenderFns)
  /* harmony export */ });
  var render = function () {
    var _vm = this
    var _h = _vm.$createElement
    var _c = _vm._self._c || _h
    return _c(
      "div",
      [
        _c("v-breadcrumbs", {
          attrs: { items: _vm.bread },
          scopedSlots: _vm._u([
            {
              key: "divider",
              fn: function () {
                return [_c("v-icon", [_vm._v("mdi-forward")])]
              },
              proxy: true,
            },
          ]),
        }),
        _vm._v(" "),
        _c(
          "v-row",
          {
            staticClass: "grey lighten-5 pa-10 rounded elevation-10",
            attrs: { "no-gutters": "" },
          },
          [
            _c(
              "v-col",
              { attrs: { cols: "12", sm: "12" } },
              [
                _c(
                  "v-form",
                  {
                    ref: "form",
                    attrs: { "lazy-validation": "" },
                    model: {
                      value: _vm.loading,
                      callback: function ($$v) {
                        _vm.loading = $$v
                      },
                      expression: "loading",
                    },
                  },
                  [
                    _c(
                      "v-row",
                      [
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c("v-text-field", {
                              attrs: {
                                rules: [_vm.rules.required],
                                "error-messages": _vm.errors.name,
                                label: "Name",
                              },
                              model: {
                                value: _vm.name,
                                callback: function ($$v) {
                                  _vm.name = $$v
                                },
                                expression: "name",
                              },
                            }),
                          ],
                          1
                        ),
                        _vm._v(" "),
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c("v-text-field", {
                              attrs: {
                                rules: [_vm.rules.required],
                                "error-messages": _vm.errors.email,
                                label: "Email",
                              },
                              model: {
                                value: _vm.email,
                                callback: function ($$v) {
                                  _vm.email = $$v
                                },
                                expression: "email",
                              },
                            }),
                          ],
                          1
                        ),
                        _vm._v(" "),
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c("v-select", {
                              attrs: {
                                items: [
                                  { id: 4, value: "Sale" },
                                  { id: 5, value: "Support" },
                                  { id: 6, value: "Customer" },
                                  { id: 7, value: "Production Manager" },
                                  { id: 8, value: "Developer" },
                                  { id: 9, value: "Marketing" },
                                  { id: 10, value: "Production Head" },
                                ],
                                "item-text": "value",
                                "item-value": "id",
                                label: "Role*",
                                required: "",
                                "error-messages": _vm.errors.role_id,
                              },
                              model: {
                                value: _vm.role_id,
                                callback: function ($$v) {
                                  _vm.role_id = $$v
                                },
                                expression: "role_id",
                              },
                            }),
                          ],
                          1
                        ),
                        _vm._v(" "),
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c("v-select", {
                              attrs: {
                                items: _vm.departments,
                                "item-text": "department_name",
                                "item-value": "id",
                                label: "Department*",
                                required: "",
                                "error-messages": _vm.errors.department_id,
                              },
                              model: {
                                value: _vm.department_id,
                                callback: function ($$v) {
                                  _vm.department_id = $$v
                                },
                                expression: "department_id",
                              },
                            }),
                          ],
                          1
                        ),
                        _vm._v(" "),
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c("v-text-field", {
                              attrs: {
                                "error-messages": _vm.errors.password,
                                label: "Password",
                                type: "password",
                                autocomplete: "new-password",
                              },
                              model: {
                                value: _vm.password,
                                callback: function ($$v) {
                                  _vm.password = $$v
                                },
                                expression: "password",
                              },
                            }),
                          ],
                          1
                        ),
                        _vm._v(" "),
                        _c(
                          "v-col",
                          {
                            staticClass: "pb-0",
                            attrs: { cols: "12", sm: "12" },
                          },
                          [
                            _c(
                              "v-btn",
                              {
                                attrs: {
                                  color: "secondary",
                                  elevation: "1",
                                  large: "",
                                  raised: "",
                                  loading: _vm.btnloading,
                                  disabled: _vm.btnloading,
                                },
                                on: { click: _vm.addbrand },
                              },
                              [_vm._v("Update")]
                            ),
                          ],
                          1
                        ),
                      ],
                      1
                    ),
                  ],
                  1
                ),
              ],
              1
            ),
          ],
          1
        ),
      ],
      1
    )
  }
  var staticRenderFns = []
  render._withStripped = true
  
  
  
  /***/ })
  
  }]);