text: (window.webpackJsonp=window.webpackJsonp||[]).push([[49],{77:function(t,a,e){"use strict";e.r(a);var s={created:function(){User.loggedIn()||this.$router.push({name:"/tdeiadmin"})},data:function(){return{form:{patent_photo:null,patent_ady_tm:null,patent_ady_ru:null,patent_ady_en:null,mug_ady_tm:null,mug_ady_ru:null,mug_ady_en:null,hunar_tm:null,hunar_ru:null,hunar_en:null,dusundiris_tm:null,dusundiris_ru:null,dusundiris_en:null,patent_photo1:null},errors:{}}},methods:{onFileSelected1:function(t){var a=this,e=t.target.files[0];if(e.size>3048770)Notification.image_validation();else{var s=new FileReader;s.onload=function(t){a.form.patent_photo=t.target.result,console.log(t.target.result)},s.readAsDataURL(e)}},onFileSelected2:function(t){var a=this,e=t.target.files[0];if(e.size>3048770)Notification.image_validation();else{var s=new FileReader;s.onload=function(t){a.form.patent_photo1=t.target.result,console.log(t.target.result)},s.readAsDataURL(e)}},mustunInsert:function(){var t=this;axios.post("/api/mustun",this.form).then((function(){t.$router.push({name:"mustun"}),Notification.success()})).catch((function(a){return t.errors=a.response.data.errors}))}}},r=e(0),o=Object(r.a)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"row"},[e("router-link",{staticClass:"btn btn-primary",attrs:{to:"/tdeiadmin/mustun"}},[t._v("Ahli Mugallymlar ustunlikleri ")])],1),t._v(" "),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-xl-12 col-lg-12 col-md-12"},[e("div",{staticClass:"card shadow-sm my-5"},[e("div",{staticClass:"card-body p-0"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[e("div",{staticClass:"login-form"},[t._m(0),t._v(" "),e("form",{staticClass:"user",attrs:{enctype:"multipart/form-data"},on:{submit:function(a){return a.preventDefault(),t.mustunInsert(a)}}},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-6"},[e("input",{staticClass:"custom-file-input",attrs:{type:"file",id:"customFile"},on:{change:t.onFileSelected1}}),t._v(" "),t.errors.patent_photo?e("small",{staticClass:"text-danger"},[t._v(" "+t._s(t.errors.patent_photo[0])+" ")]):t._e(),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"customFile"}},[t._v("patent_photo")])]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("img",{staticStyle:{height:"40px",width:"40px"},attrs:{src:t.form.patent_photo}})])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.patent_ady_tm,expression:"form.patent_ady_tm"}],staticClass:"form-control",attrs:{type:"text",placeholder:"patent_ady_tm"},domProps:{value:t.form.patent_ady_tm},on:{input:function(a){a.target.composing||t.$set(t.form,"patent_ady_tm",a.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.patent_ady_ru,expression:"form.patent_ady_ru"}],staticClass:"form-control",attrs:{type:"text",placeholder:"patent_ady_ru"},domProps:{value:t.form.patent_ady_ru},on:{input:function(a){a.target.composing||t.$set(t.form,"patent_ady_ru",a.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.patent_ady_en,expression:"form.patent_ady_en"}],staticClass:"form-control",attrs:{type:"text",placeholder:"patent_ady_en"},domProps:{value:t.form.patent_ady_en},on:{input:function(a){a.target.composing||t.$set(t.form,"patent_ady_en",a.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.mug_ady_tm,expression:"form.mug_ady_tm"}],staticClass:"form-control",attrs:{type:"text",placeholder:"mug_ady_tm"},domProps:{value:t.form.mug_ady_tm},on:{input:function(a){a.target.composing||t.$set(t.form,"mug_ady_tm",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.mug_ady_ru,expression:"form.mug_ady_ru"}],staticClass:"form-control",attrs:{type:"text",placeholder:"mug_ady_ru"},domProps:{value:t.form.mug_ady_ru},on:{input:function(a){a.target.composing||t.$set(t.form,"mug_ady_ru",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.mug_ady_en,expression:"form.mug_ady_en"}],staticClass:"form-control",attrs:{type:"text",placeholder:"mug_ady_en"},domProps:{value:t.form.mug_ady_en},on:{input:function(a){a.target.composing||t.$set(t.form,"mug_ady_en",a.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.hunar_tm,expression:"form.hunar_tm"}],staticClass:"form-control",attrs:{type:"text",placeholder:"hunar_tm"},domProps:{value:t.form.hunar_tm},on:{input:function(a){a.target.composing||t.$set(t.form,"hunar_tm",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.hunar_ru,expression:"form.hunar_ru"}],staticClass:"form-control",attrs:{type:"text",placeholder:"hunar_ru"},domProps:{value:t.form.hunar_ru},on:{input:function(a){a.target.composing||t.$set(t.form,"hunar_ru",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.hunar_en,expression:"form.hunar_en"}],staticClass:"form-control",attrs:{type:"text",placeholder:"hunar_en"},domProps:{value:t.form.hunar_en},on:{input:function(a){a.target.composing||t.$set(t.form,"hunar_en",a.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.dusundiris_tm,expression:"form.dusundiris_tm"}],staticClass:"form-control",attrs:{type:"text",placeholder:"dusundiris_tm"},domProps:{value:t.form.dusundiris_tm},on:{input:function(a){a.target.composing||t.$set(t.form,"dusundiris_tm",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.dusundiris_ru,expression:"form.dusundiris_ru"}],staticClass:"form-control",attrs:{type:"text",placeholder:"dusundiris_ru"},domProps:{value:t.form.dusundiris_ru},on:{input:function(a){a.target.composing||t.$set(t.form,"dusundiris_ru",a.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.dusundiris_en,expression:"form.dusundiris_en"}],staticClass:"form-control",attrs:{type:"text",placeholder:"dusundiris_en"},domProps:{value:t.form.dusundiris_en},on:{input:function(a){a.target.composing||t.$set(t.form,"dusundiris_en",a.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col-md-6"},[e("input",{staticClass:"custom-file-input",attrs:{type:"file",id:"customFile"},on:{change:t.onFileSelected2}}),t._v(" "),t.errors.patent_photo1?e("small",{staticClass:"text-danger"},[t._v(" "+t._s(t.errors.patent_photo1[0])+" ")]):t._e(),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"customFile"}},[t._v("patent_photo")])]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("img",{staticStyle:{height:"40px",width:"40px"},attrs:{src:t.form.patent_photo1}})])])]),t._v(" "),t._m(1)]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"text-center"}),t._v(" "),e("div",{staticClass:"text-center"})])])])])])])])])}),[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"text-center"},[a("h1",{staticClass:"h4 text-gray-900 mb-4"},[this._v("Mugallymlar ustunlikleri gosmak")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"form-group"},[a("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit"}},[this._v("Submit")])])}],!1,null,null,null);a.default=o.exports}}]);