import{T as f,c as v,a as d,u as n,b as t,w as b,t as i,d as r,v as c,g as h,o as S,Z as y,q as E}from"./app-13978987.js";import{_ as w}from"./AdminLayout-bd13ff9d.js";import{_ as M}from"./SpinnerBtn-cb152833.js";import{_ as V}from"./PageHeader-8c638686.js";import"./dropdown-45d66330.js";const O={class:"container flex-grow p-4 sm:p-6"},T={class:"space-y-6"},B={class:"grid grid-cols-12"},D={class:"lg:col-span-5"},U={class:"lg:col-span-7"},$={class:"card"},k={class:"card-header"},q={class:"mb-0"},C={class:"card-body"},I={class:"mb-2"},N={class:"mb-2"},j={class:"mb-2"},Z={class:"mb-2"},x={class:"from-group row mt-3"},z={class:"col-lg-12"},A=h({layout:w}),L=Object.assign(A,{__name:"Show",props:["buttons","id","contents"],setup(p){var u,m,_;const l=p,e=f({_method:"patch",title:((u=l.contents)==null?void 0:u.title)??"",description:((m=l.contents)==null?void 0:m.description)??"",preview:null,tags:((_=l.contents)==null?void 0:_.tags)??""}),g=()=>{const s=route("admin.seo.update",l.id);e.post(s,{onSuccess:()=>{E.success("SEO data updated successfully")}})};return(s,o)=>(S(),v("main",O,[d(n(y),{title:"Edit SEO Settings"}),d(V,{title:s.trans("Edit SEO Settings"),buttons:p.buttons},null,8,["title","buttons"]),t("div",T,[t("form",{onSubmit:b(g,["prevent"]),enctype:"multipart/form-data"},[t("div",B,[t("div",D,[t("strong",null,i(s.trans("Edit page seo settings")),1),t("p",null,i(s.trans("Edit page seo and necessary information from here")),1)]),t("div",U,[t("div",$,[t("div",k,[t("h3",q,i(s.trans("Edit Settings")),1)]),t("div",C,[t("div",I,[t("label",null,i(s.trans("Meta Title")),1),r(t("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=a=>n(e).title=a),required:"",class:"input"},null,512),[[c,n(e).title]])]),t("div",N,[t("label",null,i(s.trans("Meta Description")),1),r(t("textarea",{"onUpdate:modelValue":o[1]||(o[1]=a=>n(e).description=a),class:"summernote input h-200"},null,512),[[c,n(e).description]])]),t("div",j,[t("label",null,i(s.trans("Meta Image")),1),t("input",{onInput:o[2]||(o[2]=a=>n(e).preview=a.target.files[0]),type:"file",accept:"image/*",class:"input"},null,32)]),t("div",Z,[t("label",null,i(s.trans("Meta Tags")),1),r(t("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=a=>n(e).tags=a),class:"input"},null,512),[[c,n(e).tags]])]),t("div",x,[t("div",z,[d(M,{processing:n(e).processing,"btn-text":s.trans("Save Changes")},null,8,["processing","btn-text"])])])])])])])],32)])]))}});export{L as default};
