1import{u as a,j as s,H as e,L as r}from"./app-CYNscnFw.js";import{T as o,I as l}from"./TextInput-BiMVJ6XU.js";import{I as m}from"./InputLabel-DSokxe_-.js";import{P as t}from"./PrimaryButton-7OV88z6O.js";function n(){const{data:n,setData:d,post:i,processing:c,errors:u,reset:p}=a({nama:"",email:"",password:"",password_confirmation:""});return s.jsxs("div",{className:"min-h-screen bg-gray-100 py-10 px-4",children:[s.jsx(e,{title:"Tambah Pengguna - Rama Group"}),s.jsxs("div",{className:"max-w-2xl mx-auto bg-white shadow-lg rounded-2xl p-8 border border-gray-200",children:[s.jsxs("div",{className:"mb-6 text-center",children:[s.jsx("img",{src:"/img/rama_group_logo.png",alt:"Rama Group",className:"h-16 w-auto mx-auto"}),s.jsx("h1",{className:"text-2xl font-bold text-gray-800 mt-4",children:"Tambah Pengguna Baru"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Form ini hanya dapat diakses oleh admin"})]}),s.jsxs("form",{onSubmit:a=>{a.preventDefault(),i(route("dashboard.register.store"),{onFinish:()=>p("password","password_confirmation")})},className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx(m,{htmlFor:"nama",value:"Nama Lengkap"}),s.jsx(o,{id:"nama",name:"nama",value:n.nama,className:"mt-1 block w-full border-gray-300 rounded-lg shadow-sm focus:ring-yellow-400 focus:border-yellow-400",autoComplete:"nama",onChange:a=>d("nama",a.target.value),required:!0}),s.jsx(l,{message:u.nama,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(m,{htmlFor:"email",value:"Email"}),s.jsx(o,{id:"email",type:"email",name:"email",value:n.email,className:"mt-1 block w-full border-gray-300 rounded-lg shadow-sm focus:ring-yellow-400 focus:border-yellow-400",autoComplete:"username",onChange:a=>d("email",a.target.value),required:!0}),s.jsx(l,{message:u.email,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(m,{htmlFor:"password",value:"Password"}),s.jsx(o,{id:"password",type:"password",name:"password",value:n.password,className:"mt-1 block w-full border-gray-300 rounded-lg shadow-sm focus:ring-yellow-400 focus:border-yellow-400",autoComplete:"new-password",onChange:a=>d("password",a.target.value),required:!0}),s.jsx(l,{message:u.password,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(m,{htmlFor:"password_confirmation",value:"Konfirmasi Password"}),s.jsx(o,{id:"password_confirmation",type:"password",name:"password_confirmation",value:n.password_confirmation,className:"mt-1 block w-full border-gray-300 rounded-lg shadow-sm focus:ring-yellow-400 focus:border-yellow-400",autoComplete:"new-password",onChange:a=>d("password_confirmation",a.target.value),required:!0}),s.jsx(l,{message:u.password_confirmation,className:"mt-2"})]}),s.jsxs("div",{className:"pt-4 flex items-center justify-between",children:[s.jsx(r,{href:"/dashboard",className:"text-sm text-gray-600 underline hover:text-gray-900",children:"â Kembali ke Panel Admin"}),s.jsx(t,{className:"bg-yellow-400 hover:bg-yellow-500 text-black font-semibold px-6 py-2 rounded-lg shadow-md transition disabled:opacity-50",disabled:c,children:c?"Memproses...":"Tambah Pengguna"})]})]})]})]})}export{n 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.