1import{A as y}from"./AuthenticatedLayout-DcpqZk2r.js";import{i as g,Z as h,r as i,f,a as n,w as d,b as e,d as k,l as m,v as c,g as w,m as F,o as x,t as l,e as u,F as B,T as C}from"./app-B9KORyBa.js";import{P as L}from"./PrimaryButton-vaEit9c1.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ApplicationLogo-DrAX-EpC.js";import"./NavLink-BiVKPBr8.js";import"./TextOutline-CGLkonHp.js";import"./DocumentTextOutline-B7A647Cs.js";import"./InformationCircleOutline-DCl6slX2.js";const A={components:{PrimaryButton:L,AuthenticatedLayout:y,Head:h,Link:g},props:{feature:{type:Object,default:()=>({})}},setup(a){const t=C({feature_name:a.feature.feature_name||"",feature_description:a.feature.feature_description||"",active:!!a.feature.active});return{form:t,submit:()=>{a.feature.id?t.put(route("admin.schoolstudentfeatures.update",{schoolstudentfeature:a.feature.id})):t.post(route("admin.schoolstudentfeatures.store"))}}}},N={class:"flex"},P={class:"font-semibold text-xl text-gray-800 leading-tight"},D={class:"py-12"},E={class:"max-w-4xl mx-auto sm:px-6 lg:px-8"},H={class:"bg-white shadow-sm sm:rounded-lg p-6"},M={class:"mb-4"},S={class:"mb-4"},T={class:"mb-4"},U={key:0,class:"text-red-500 text-sm"},j={class:"flex justify-end"};function O(a,t,r,o,Z,q){const _=i("Head"),b=i("Link"),p=i("PrimaryButton"),v=i("AuthenticatedLayout");return x(),f(B,null,[n(_,{title:r.feature.id?"Edit Feature":"Create Feature"},null,8,["title"]),n(v,null,{header:d(()=>[e("div",N,[e("h2",P,l(r.feature.id?"Edit Feature":"Create Feature"),1),t[5]||(t[5]=e("div",{class:"flex-grow"},null,-1)),n(b,{class:"btn btn-secondary",href:a.route("admin.schoolstudentfeatures.index")},{default:d(()=>[...t[4]||(t[4]=[u(" Back to List ",-1)])]),_:1},8,["href"])]),t[6]||(t[6]=u(" > ",-1))]),default:d(()=>[e("div",D,[e("div",E,[e("div",H,[e("form",{onSubmit:t[3]||(t[3]=k((...s)=>o.submit&&o.submit(...s),["prevent"]))},[e("div",M,[t[7]||(t[7]=e("label",{for:"feature_name",class:"block text-sm font-medium text-gray-700"},"Feature Name",-1)),m(e("input",{"onUpdate:modelValue":t[0]||(t[0]=s=>o.form.feature_name=s),id:"feature_name",type:"text",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm"},null,512),[[c,o.form.feature_name]])]),e("div",S,[t[8]||(t[8]=e("label",{for:"feature_description",class:"block text-sm font-medium text-gray-700 mt-4"},"Description",-1)),m(e("textarea",{id:"programm_description","onUpdate:modelValue":t[1]||(t[1]=s=>o.form.feature_description=s),class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm"},null,512),[[c,o.form.feature_description]])]),e("div",T,[t[9]||(t[9]=e("label",{for:"active",class:"block text-sm font-medium text-gray-700"},"Active",-1)),m(e("input",{id:"active",type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=s=>o.form.active=s),class:"form-checkbox h-5 w-5 text-indigo-600"},null,512),[[F,o.form.active]]),o.form.errors.active?(x(),f("span",U,l(o.form.errors.active),1)):w("",!0)]),e("div",j,[n(p,{type:"submit",disabled:o.form.processing},{default:d(()=>[u(l(r.feature.id?"Save Changes":"Create Feature"),1)]),_:1},8,["disabled"])])],32)])])])]),_:1})],64)}const Y=V(A,[["render",O]]);export{Y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.