"use strict";(()=>{var e={};e.id=6555,e.ids=[6555],e.modules={53524:e=>{e.exports=require("@prisma/client")},47849:e=>{e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},6113:e=>{e.exports=require("crypto")},92761:e=>{e.exports=require("node:async_hooks")},6005:e=>{e.exports=require("node:crypto")},71017:e=>{e.exports=require("path")},57310:e=>{e.exports=require("url")},95994:(e,t,r)=>{r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>p,originalPathname:()=>m,pages:()=>c,routeModule:()=>u,tree:()=>d}),r(99313),r(9457),r(32029),r(35866);var a=r(23191),s=r(88716),n=r(37922),i=r.n(n),o=r(95231),l={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);r.d(t,l);let d=["",{children:["admin",{children:["resources",{children:["materials",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,99313)),"C:\\School Management System\\Working\\V2\\src\\app\\admin\\resources\\materials\\page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,9457)),"C:\\School Management System\\Working\\V2\\src\\app\\admin\\layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,32029)),"C:\\School Management System\\Working\\V2\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,35866,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["C:\\School Management System\\Working\\V2\\src\\app\\admin\\resources\\materials\\page.tsx"],m="/admin/resources/materials/page",p={require:r,loadChunk:()=>Promise.resolve()},u=new a.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/admin/resources/materials/page",pathname:"/admin/resources/materials",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},99313:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var a=r(19510),s=r(17710),n=r(99294);let i=[{id:1,title:"Algebra II Fundamentals",type:"PDF",subject:{name:"Mathematics"},teacher:{name:"John",surname:"Doe"},url:"#",createdAt:new Date},{id:2,title:"History of Rome",type:"DOC",subject:{name:"History"},teacher:{name:"Jane",surname:"Smith"},url:"#",createdAt:new Date},{id:3,title:"Physics Lab Manual",type:"PDF",subject:{name:"Physics"},teacher:{name:"Robert",surname:"Brown"},url:"#",createdAt:new Date}],o=()=>(0,a.jsxs)("div",{className:"p-6 bg-gray-50 min-h-screen",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"text-3xl font-bold text-gray-800",children:"Resource Library"}),a.jsx("p",{className:"text-gray-500 mt-1",children:"Digital assets and study materials."})]}),a.jsx("div",{className:"bg-school-green-600 rounded-xl",children:a.jsx(n.Z,{table:"resource",type:"create"})})]}),(0,a.jsxs)("div",{className:"bg-white rounded-3xl border border-gray-100 overflow-hidden shadow-sm",children:[i.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between p-5 border-b border-gray-50 last:border-0 hover:bg-gray-50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-5",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-red-50 flex items-center justify-center text-red-500 font-bold border border-red-100",children:e.type}),(0,a.jsxs)("div",{children:[a.jsx("h4",{className:"font-bold text-gray-800 text-sm mb-1",children:e.title}),(0,a.jsxs)("p",{className:"text-xs text-gray-400 font-medium",children:[e.subject.name," • Uploaded by ",e.teacher.name," ",e.teacher.surname]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("a",{href:e.url,target:"_blank",className:"p-3 hover:bg-gray-200 rounded-xl transition-colors",children:a.jsx(s.default,{src:"/download.png",width:20,height:20,alt:"download",className:"opacity-60"})}),a.jsx(n.Z,{table:"resource",type:"delete",id:e.id})]})]},e.id)),0===i.length&&a.jsx("div",{className:"p-10 text-center text-gray-400",children:"No resources found."})]})]})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,7070,8459,3706,4079,9404,2082,7343,9651,5030,2290,7924,4706,4839,9104,8977],()=>r(95994));module.exports=a})();