module.exports=[63021,(a,b,c)=>{b.exports=a.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62212,a=>{a.n(a.i(66114))},44067,a=>{a.n(a.i(36102))},66518,a=>{"use strict";var b=a.i(63021);let c=globalThis.prismaGlobal??new b.PrismaClient;a.s(["default",0,c])},21229,a=>{"use strict";var b=a.i(7997),c=a.i(66518);async function d(){let a=await c.default.activityLog.findMany({include:{admin:!0},orderBy:{createdAt:"desc"}});return(0,b.jsxs)("div",{className:"p-6 font-prompt",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold text-primary mb-6",children:"Activity Logs"}),(0,b.jsx)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:(0,b.jsxs)("table",{className:"w-full text-sm text-left",children:[(0,b.jsx)("thead",{className:"bg-gray-50 border-b text-gray-500",children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{className:"p-4",children:"Admin Name"}),(0,b.jsx)("th",{className:"p-4",children:"Action"}),(0,b.jsx)("th",{className:"p-4",children:"Details"}),(0,b.jsx)("th",{className:"p-4",children:"Date & Time"})]})}),(0,b.jsx)("tbody",{children:a.map(a=>(0,b.jsxs)("tr",{className:"border-b hover:bg-gray-50 transition",children:[(0,b.jsx)("td",{className:"p-4 font-bold",children:a.admin?.name||a.admin?.username}),(0,b.jsx)("td",{className:"p-4",children:(0,b.jsx)("span",{className:`px-2 py-1 rounded text-[10px] font-bold ${"CREATE"===a.action?"bg-green-100 text-green-700":"UPDATE"===a.action?"bg-blue-100 text-blue-700":"bg-red-100 text-red-700"}`,children:a.action})}),(0,b.jsx)("td",{className:"p-4 text-gray-600",children:a.details}),(0,b.jsx)("td",{className:"p-4 text-gray-400",children:new Date(a.createdAt).toLocaleString("th-TH")})]},a.id))})]})})]})}a.s(["default",()=>d])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__1dbb629a._.js.map