import{m as f,e as l,b as i,u as s,k as p,w as n,a as e,p as x,g as b,i as y,v as g,o as m,t as c,l as h,d as w,F as v}from"./app-iLLm8RtX.js";import{_}from"./Layout-C0f8t0-G.js";/* empty css            */const k={class:"py-6 sm:py-12 px-3 sm:px-6 flex items-center justify-center min-h-screen"},V={class:"max-w-md w-full bg-white rounded-lg shadow-md p-4 sm:p-6"},C={class:"mb-4 sm:mb-6"},B={key:0,class:"text-red-600 text-sm mt-1"},E=["disabled"],N={class:"mt-4 text-center"},O={__name:"Index",props:{errors:Object},setup(o){const r=f({certificate_number:""}),d=()=>{r.post("/verify")},{processing:a}=r;return(j,t)=>(m(),l(v,null,[i(s(p),{title:"Certificate Verification - ARP OS | Verify Educational Certificates Online"}),i(_,null,{default:n(()=>[e("div",k,[e("div",V,[t[3]||(t[3]=e("div",{class:"text-center mb-4 sm:mb-6"},[e("div",{class:"mx-auto w-12 h-12 sm:w-16 sm:h-16 bg-purple-100 rounded-full flex items-center justify-center mb-3 sm:mb-4"},[e("svg",{class:"w-6 h-6 sm:w-8 sm:h-8 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])]),e("h1",{class:"text-xl sm:text-2xl font-bold text-gray-900"},"Certificate Verification"),e("p",{class:"text-gray-600 mt-2 text-sm sm:text-base"},"Enter a certificate number to verify authenticity")],-1)),e("form",{onSubmit:x(d,["prevent"])},[e("div",C,[t[1]||(t[1]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Certificate Number",-1)),b(e("input",{"onUpdate:modelValue":t[0]||(t[0]=u=>s(r).certificate_number=u),type:"text",class:"w-full px-3 py-3 sm:py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-purple-500 focus:border-purple-500 text-base sm:text-sm",placeholder:"Enter certificate number",required:""},null,512),[[g,s(r).certificate_number]]),o.errors.certificate_number?(m(),l("div",B,c(o.errors.certificate_number),1)):y("",!0)]),e("button",{type:"submit",disabled:s(a),class:"w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 sm:py-2 px-4 rounded disabled:opacity-50 text-base sm:text-sm transition-colors duration-200"},c(s(a)?"Verifying...":"Verify Certificate"),9,E)],32),t[4]||(t[4]=e("div",{class:"mt-4 sm:mt-6 p-3 sm:p-4 bg-gray-50 rounded-lg"},[e("h3",{class:"text-sm font-semibold text-gray-900 mb-2"},"How it works:"),e("ul",{class:"text-xs sm:text-sm text-gray-600 space-y-1"},[e("li",null,"• Enter the certificate number"),e("li",null,"• System checks for valid certification"),e("li",null,"• View verified certificate details")])],-1)),e("div",N,[i(s(h),{href:"/",class:"text-purple-600 hover:text-purple-700 text-sm font-medium"},{default:n(()=>[...t[2]||(t[2]=[w(" ← Back to Home ",-1)])]),_:1})])])])]),_:1})],64))}};export{O as default};
