import{T as p,c,a as m,b as s,w as b,t as n,d as i,v as r,u as l,y as _,g as f,o as g,q as v}from"./app-13978987.js";import{_ as k}from"./AdminLayout-bd13ff9d.js";import{_ as y}from"./PageHeader-8c638686.js";import{_ as h}from"./SpinnerBtn-cb152833.js";import"./dropdown-45d66330.js";const w={class:"container flex-grow p-4 sm:p-6"},V={class:"space-y-6"},U={class:"grid grid-cols-12"},M={class:"col-span-5"},C={class:"card-wrapper col-span-7"},T={class:"card"},q={class:"card-body"},P={class:"mb-2"},S={class:"mb-2"},B={class:"mb-2"},D={class:"mb-2"},N={class:"mb-2"},$={class:"mb-2"},I={class:"mb-2"},j={class:"mb-2"},A={class:"mb-2"},E={for:"toggle-status",class:"toggle toggle-sm"},F=s("div",{class:"toggle-body"},null,-1),L={class:"label label-md"},O={class:"from-group row mt-3"},x={class:"col-lg-12"},z=f({layout:k}),R=Object.assign(z,{__name:"Create",props:["buttons","segments"],setup(u){const e=p({member_name:"",member_position:"",profile_picture:"",about:"",status:!1,socials:{facebook:null,twitter:null,linkedin:null,instagram:null}}),d=()=>{e.post(route("admin.team.store"),{onSuccess:()=>{e.reset(),v.success(trans("Team has been added successfully"))}})};return(a,t)=>(g(),c("main",w,[m(y,{title:"Create Team Member",buttons:u.buttons},null,8,["buttons"]),s("div",V,[s("form",{method:"post",onSubmit:b(d,["prevent"]),enctype:"multipart/form-data"},[s("div",U,[s("div",M,[s("strong",null,n(a.trans("Create a team member")),1),s("p",null,n(a.trans("Add your team member details and necessary information from here")),1)]),s("div",C,[s("div",T,[s("div",q,[s("div",P,[s("label",null,n(a.trans("Member Name")),1),i(s("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>l(e).member_name=o),type:"text",name:"member_name",required:"",class:"input"},null,512),[[r,l(e).member_name]])]),s("div",S,[s("label",null,n(a.trans("Member Position")),1),i(s("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>l(e).member_position=o),type:"text",name:"member_position",required:"",class:"input"},null,512),[[r,l(e).member_position]])]),s("div",B,[s("label",null,n(a.trans("Profile Picture")),1),s("input",{onInput:t[2]||(t[2]=o=>l(e).profile_picture=o.target.files[0]),type:"file",accept:"image/*",name:"profile_picture",required:"",class:"input"},null,32)]),s("div",D,[s("label",null,n(a.trans("Profile Description")),1),i(s("textarea",{"onUpdate:modelValue":t[3]||(t[3]=o=>l(e).about=o),class:"input h-200",name:"about",maxlength:"1000",required:""},null,512),[[r,l(e).about]])]),s("div",N,[s("label",null,n(a.trans("Facebook profile link")),1),i(s("input",{"onUpdate:modelValue":t[4]||(t[4]=o=>l(e).socials.facebook=o),type:"url",name:"socials[facebook]",class:"input"},null,512),[[r,l(e).socials.facebook]])]),s("div",$,[s("label",null,n(a.trans("Twitter profile link")),1),i(s("input",{"onUpdate:modelValue":t[5]||(t[5]=o=>l(e).socials.twitter=o),type:"url",name:"socials[twitter]",class:"input"},null,512),[[r,l(e).socials.twitter]])]),s("div",I,[s("label",null,n(a.trans("Linkedin profile link")),1),i(s("input",{"onUpdate:modelValue":t[6]||(t[6]=o=>l(e).socials.linkedin=o),type:"url",name:"socials[linkedin]",class:"input"},null,512),[[r,l(e).socials.linkedin]])]),s("div",j,[s("label",null,n(a.trans("Instagram profile link")),1),i(s("input",{"onUpdate:modelValue":t[7]||(t[7]=o=>l(e).socials.instagram=o),type:"url",name:"socials[instagram]",class:"input"},null,512),[[r,l(e).socials.instagram]])]),s("div",A,[s("label",E,[i(s("input",{"onUpdate:modelValue":t[8]||(t[8]=o=>l(e).status=o),class:"toggle-input peer sr-only",id:"toggle-status",type:"checkbox"},null,512),[[_,l(e).status]]),F,s("span",L,n(a.trans("Make it publish?")),1)])]),s("div",O,[s("div",x,[m(h,{processing:l(e).processing,"btn-text":a.trans("Save Changes")},null,8,["processing","btn-text"])])])])])])])],32)])]))}});export{R as default};
