import{K as c,u as d,r as o,j as e,S as s}from"./app-DBtZ8h0a.js";import{i as m,F as x,e as h,j as u}from"./index-6FD8lOav.js";import{M as p}from"./menu-layout-BrN0NShy.js";/* empty css            */import"./iconBase-DFNKp9Em.js";import"./AppLayout-aqdAMN5f.js";const k=()=>{const{auth:b,data:a}=c().props,{log:t}=d();o.useEffect(()=>{t("Payment success page loaded")},[t]);const i=()=>{s.visit(`/${a.nouid}`)},n=()=>{s.visit(`/${a.nouid}/payment/history`)},r=()=>{s.visit(`/${a.nouid}/payment/invoice`)},l=()=>{window.history.back()};return e.jsx(p,{title:"Pembayaran Berhasil",onBack:l,children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:e.jsx(m,{className:"text-green-600",size:32})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Pembayaran Berhasil!"}),e.jsx("p",{className:"text-gray-600",children:"Terima kasih, pembayaran Anda telah berhasil diproses."})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Detail Transaksi"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Status:"}),e.jsx("span",{className:"text-green-600 font-medium",children:"Berhasil"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Tanggal:"}),e.jsx("span",{className:"text-gray-900",children:new Date().toLocaleDateString("id-ID")})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Waktu:"}),e.jsx("span",{className:"text-gray-900",children:new Date().toLocaleTimeString("id-ID")})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Metode Pembayaran:"}),e.jsx("span",{className:"text-gray-900",children:"Saldo Tabungan"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Total Pembayaran:"}),e.jsx("span",{className:"text-lg font-semibold text-gray-900",children:new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR",minimumFractionDigits:0,maximumFractionDigits:0}).format(205e4)})]})]})]}),e.jsxs("div",{className:"bg-blue-50 rounded-lg border border-blue-200 p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-blue-900 mb-4",children:"Langkah Selanjutnya"}),e.jsxs("div",{className:"space-y-3 text-sm text-blue-800",children:[e.jsx("p",{children:"• Bukti pembayaran telah dikirim ke email Anda"}),e.jsx("p",{children:"• Status tagihan akan diperbarui dalam beberapa menit"}),e.jsx("p",{children:"• Simpan bukti pembayaran untuk keperluan administrasi"}),e.jsx("p",{children:"• Jika ada pertanyaan, silakan hubungi admin sekolah"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{onClick:r,className:"w-full flex items-center justify-center gap-3 p-4 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(x,{size:20}),"Lihat Invoice"]}),e.jsxs("button",{onClick:n,className:"w-full flex items-center justify-center gap-3 p-4 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors",children:[e.jsx(h,{size:20}),"Lihat Riwayat Pembayaran"]}),e.jsxs("button",{onClick:i,className:"w-full flex items-center justify-center gap-3 p-4 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors",children:[e.jsx(u,{size:20}),"Kembali ke Beranda"]})]})]})})};export{k as default};
