import{T as c,c as _,a as r,b as t,t as i,d as n,v as d,u as s,y as p,w as u,g as b,o as g}from"./app-13978987.js";import{_ as f}from"./AdminLayout-bd13ff9d.js";import{_ as v}from"./PageHeader-8c638686.js";import{_ as h}from"./SpinnerBtn-cb152833.js";import{_ as y}from"./RichEditor-132d6d13.js";import"./dropdown-45d66330.js";import"./FloatingDropdown-0be3e47c.js";const V={class:"container p-4 sm:p-6"},q={class:"card"},M={class:"card-body space-y-5"},T={class:"mb-2"},U={class:"label label-required mb-1"},k={class:"mb-2"},x={class:"label label-required mb-1"},S={class:"mb-2"},C={class:"label label-required mb-1"},D={class:"col-lg-12"},E={class:"mb-2 mt-2"},O={class:"label label-required mb-1"},$={class:"col-lg-12"},w={class:"mb-2 mt-3"},B={class:"label label-required mb-1"},P={class:"col-lg-12"},N={class:"mb-2 mt-3"},j={for:"toggle-status",class:"toggle toggle-sm"},z=t("div",{class:"toggle-body"},null,-1),A={class:"label label-md"},F=b({layout:f}),W=Object.assign(F,{__name:"Create",setup(G){const e=c({title:"",description:"",meta_title:"",meta_description:"",meta_tags:"",status:!1}),m=()=>e.post(route("admin.page.store"));return(o,a)=>(g(),_("main",V,[r(v),t("form",{method:"post",onSubmit:u(m,["prevent"])},[t("div",q,[t("div",M,[t("div",T,[t("label",U,i(o.trans("Page Title")),1),n(t("input",{type:"text",name:"title","onUpdate:modelValue":a[0]||(a[0]=l=>s(e).title=l),required:"",class:"input"},null,512),[[d,s(e).title]])]),t("div",k,[t("label",x,i(o.trans("Page Description")),1),r(y,{modelValue:s(e).description,"onUpdate:modelValue":a[1]||(a[1]=l=>s(e).description=l)},null,8,["modelValue"])]),t("div",S,[t("label",C,i(o.trans("SEO Meta Title")),1),t("div",D,[n(t("input",{"onUpdate:modelValue":a[2]||(a[2]=l=>s(e).meta_title=l),type:"text",name:"meta_title",required:"",class:"input"},null,512),[[d,s(e).meta_title]])])]),t("div",E,[t("label",O,i(o.trans("SEO Meta Description")),1),t("div",$,[n(t("textarea",{"onUpdate:modelValue":a[3]||(a[3]=l=>s(e).meta_description=l),name:"meta_description",required:"",class:"textarea"},null,512),[[d,s(e).meta_description]])])]),t("div",w,[t("label",B,i(o.trans("SEO Meta Tags")),1),t("div",P,[n(t("input",{"onUpdate:modelValue":a[4]||(a[4]=l=>s(e).meta_tags=l),type:"text",name:"meta_tags",required:"",class:"input"},null,512),[[d,s(e).meta_tags]])])]),t("div",N,[t("div",null,[t("label",j,[n(t("input",{"onUpdate:modelValue":a[5]||(a[5]=l=>s(e).status=l),class:"toggle-input peer sr-only",id:"toggle-status",type:"checkbox"},null,512),[[p,s(e).status]]),z,t("span",A,i(o.trans("Make it publish?")),1)])])]),r(h,{processing:s(e).processing,btnText:o.trans("Create")},null,8,["processing","btnText"])])])],32)]))}});export{W as default};
