import{d as p,T as b,c as f,o as c,a as e,t as n,b as m,l as i,v as r,u as s,A as g,B as v,x as _}from"./app-Do7K7VDV.js";import{_ as V}from"./AdminLayout-DeT_GLTC.js";import{_ as k}from"./SpinnerBtn-C-rqKjUt.js";import{_ as d}from"./TextInput-BS2lqTT0.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const y={class:"space-y-6"},U={class:"grid grid-cols-1 gap-5 lg:grid-cols-12"},w={class:"lg:col-span-4"},q={class:"card-wrapper lg:col-span-8"},M={class:"card"},h={class:"card-body"},C={class:"mb-2"},B={class:"mb-2"},P={class:"mb-2"},S={class:"mb-2"},T={class:"mb-2"},A={value:"male"},D={value:"female"},N={value:"other"},$={class:"mb-2"},E={class:"mb-2"},F={class:"mb-2"},I={class:"mb-2"},L={class:"mb-2"},O={for:"toggle-status",class:"toggle toggle-sm"},j={class:"label label-md"},G={class:"from-group row mt-3"},Q={class:"col-lg-12"},z=p({layout:V}),ee=Object.assign(z,{__name:"Create",props:["buttons","segments"],setup(H){const o=b({member_name:"",member_position:"",profile_picture:"",about:"",status:!1,information:{location:"",email:"",age:"",qualification:"",gender:"male"},socials:{facebook:null,twitter:null,linkedin:null,instagram:null}}),u=()=>{o.post(route("admin.team.store"))};return(a,l)=>(c(),f("div",y,[e("form",{method:"post",onSubmit:_(u,["prevent"]),enctype:"multipart/form-data"},[e("div",U,[e("div",w,[e("strong",null,n(a.trans("Create a team member")),1),e("p",null,n(a.trans("Add your team member details and necessary information from here")),1)]),e("div",q,[e("div",M,[e("div",h,[e("div",C,[e("label",null,n(a.trans("Member Name")),1),i(e("input",{"onUpdate:modelValue":l[0]||(l[0]=t=>s(o).member_name=t),type:"text",name:"member_name",required:"",class:"input"},null,512),[[r,s(o).member_name]])]),e("div",B,[e("label",null,n(a.trans("Position")),1),i(e("input",{"onUpdate:modelValue":l[1]||(l[1]=t=>s(o).member_position=t),type:"text",name:"member_position",required:"",class:"input"},null,512),[[r,s(o).member_position]])]),e("div",P,[e("label",null,n(a.trans("Profile Picture")),1),e("input",{onInput:l[2]||(l[2]=t=>s(o).profile_picture=t.target.files[0]),type:"file",accept:"image/*",name:"profile_picture",required:"",class:"input"},null,32)]),e("div",S,[e("label",null,n(a.trans("Profile Description")),1),i(e("textarea",{"onUpdate:modelValue":l[3]||(l[3]=t=>s(o).about=t),class:"input h-200",name:"about",maxlength:"1000",required:""},null,512),[[r,s(o).about]])]),m(d,{label:a.trans("Location"),modelValue:s(o).information.location,"onUpdate:modelValue":l[4]||(l[4]=t=>s(o).information.location=t)},null,8,["label","modelValue"]),m(d,{label:a.trans("Email"),modelValue:s(o).information.email,"onUpdate:modelValue":l[5]||(l[5]=t=>s(o).information.email=t)},null,8,["label","modelValue"]),m(d,{label:a.trans("Age"),modelValue:s(o).information.age,"onUpdate:modelValue":l[6]||(l[6]=t=>s(o).information.age=t)},null,8,["label","modelValue"]),m(d,{label:a.trans("Qualification"),modelValue:s(o).information.qualification,"onUpdate:modelValue":l[7]||(l[7]=t=>s(o).information.qualification=t)},null,8,["label","modelValue"]),e("div",T,[e("label",null,n(a.trans("Gender")),1),i(e("select",{"onUpdate:modelValue":l[8]||(l[8]=t=>s(o).information.gender=t),class:"select"},[e("option",A,n(a.trans("Male")),1),e("option",D,n(a.trans("Female")),1),e("option",N,n(a.trans("Other")),1)],512),[[g,s(o).information.gender]])]),e("div",$,[e("label",null,n(a.trans("Facebook profile link")),1),i(e("input",{"onUpdate:modelValue":l[9]||(l[9]=t=>s(o).socials.facebook=t),type:"url",name:"socials[facebook]",class:"input"},null,512),[[r,s(o).socials.facebook]])]),e("div",E,[e("label",null,n(a.trans("Twitter profile link")),1),i(e("input",{"onUpdate:modelValue":l[10]||(l[10]=t=>s(o).socials.twitter=t),type:"url",name:"socials[twitter]",class:"input"},null,512),[[r,s(o).socials.twitter]])]),e("div",F,[e("label",null,n(a.trans("Linkedin profile link")),1),i(e("input",{"onUpdate:modelValue":l[11]||(l[11]=t=>s(o).socials.linkedin=t),type:"url",name:"socials[linkedin]",class:"input"},null,512),[[r,s(o).socials.linkedin]])]),e("div",I,[e("label",null,n(a.trans("Instagram profile link")),1),i(e("input",{"onUpdate:modelValue":l[12]||(l[12]=t=>s(o).socials.instagram=t),type:"url",name:"socials[instagram]",class:"input"},null,512),[[r,s(o).socials.instagram]])]),e("div",L,[e("label",O,[i(e("input",{"onUpdate:modelValue":l[13]||(l[13]=t=>s(o).status=t),class:"toggle-input peer sr-only",id:"toggle-status",type:"checkbox"},null,512),[[v,s(o).status]]),l[14]||(l[14]=e("div",{class:"toggle-body"},null,-1)),e("span",j,n(a.trans("Make it publish?")),1)])]),e("div",G,[e("div",Q,[m(k,{processing:s(o).processing,"btn-text":a.trans("Save Changes")},null,8,["processing","btn-text"])])])])])])])],32)]))}});export{ee as default};
