import{d as a,j as e,H as l,L as r,c as d}from"./app-vYFZLebK.js";import{A as c,F as n}from"./AuthenticatedLayout-dsnBHnD2.js";import{P as o}from"./ProBackground-HBykvu3f.js";import{A as x}from"./AnimatedGrid-Bf6AiAAC.js";import{S as p}from"./square-pen-pYe1ouVr.js";import{T as m}from"./trash-2-BGObRuXj.js";import{P as h}from"./plus-Df4Mh6JJ.js";import"./ThemeSwitcher-C0dt0hQX.js";import"./NotificationDropdown-hhsBJy8C.js";import"./transition-6I0c9VKA.js";import"./x-5fjm0jEE.js";import"./mail-CgMp0qFW.js";const u=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],b=a("eye-off",u);const g=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],f=a("eye",g);function T({posts:s}){const i=t=>{confirm("Permanently delete this post?")&&d.delete(route("admin.blog.destroy",t))};return e.jsxs("div",{className:"min-h-screen bg-[var(--bg-main)] text-[var(--text-main)] transition-colors duration-300",children:[e.jsx(o,{}),e.jsxs(c,{header:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("div",{className:"p-2 bg-purple-500/10 border border-purple-500/30 rounded-lg text-purple-500",children:e.jsx(n,{size:20})}),e.jsxs("div",{className:"text-left",children:[e.jsx("h2",{className:"text-lg font-black tracking-tighter uppercase italic leading-none",children:"Transmission_Log"}),e.jsx("p",{className:"text-[8px] text-purple-500 uppercase tracking-[0.4em] font-bold mt-1",children:"Content Management"})]})]}),e.jsxs(r,{href:route("admin.blog.create"),className:"flex items-center px-6 py-2 bg-[var(--text-main)] text-[var(--bg-main)] rounded-lg font-black text-[10px] uppercase tracking-widest hover:bg-purple-500 hover:text-white transition-all shadow-xl",children:[e.jsx(h,{className:"mr-2",size:14,strokeWidth:3})," New_Entry"]})]}),children:[e.jsx(l,{title:"Blog Management"}),e.jsxs("div",{className:"relative min-h-full p-8 lg:p-12 overflow-y-auto",children:[e.jsx(x,{}),e.jsx("div",{className:"max-w-7xl mx-auto relative z-10",children:e.jsx("div",{className:"bg-[var(--bg-surface)] border border-[var(--border)] rounded-[2.5rem] overflow-hidden shadow-2xl",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border)] bg-[var(--bg-elevated)]",children:[e.jsx("th",{className:"px-8 py-6 text-[10px] font-black uppercase tracking-[0.3em] text-[var(--text-muted)]",children:"Title"}),e.jsx("th",{className:"px-8 py-6 text-[10px] font-black uppercase tracking-[0.3em] text-[var(--text-muted)]",children:"Category"}),e.jsx("th",{className:"px-8 py-6 text-[10px] font-black uppercase tracking-[0.3em] text-[var(--text-muted)]",children:"Status"}),e.jsx("th",{className:"px-8 py-6 text-[10px] font-black uppercase tracking-[0.3em] text-[var(--text-muted)] text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-[var(--border)]",children:s.map(t=>e.jsxs("tr",{className:"group hover:bg-[var(--bg-elevated)] transition-colors",children:[e.jsx("td",{className:"px-8 py-6",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-bold text-[var(--text-main)]",children:t.title}),e.jsxs("span",{className:"text-[10px] font-mono text-[var(--text-muted)]",children:["/",t.slug]})]})}),e.jsx("td",{className:"px-8 py-6",children:e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest bg-purple-500/10 text-purple-500 px-2 py-1 rounded border border-purple-500/20",children:t.category})}),e.jsx("td",{className:"px-8 py-6",children:e.jsxs("div",{className:`flex items-center gap-2 text-[10px] font-black uppercase tracking-widest ${t.is_published?"text-emerald-500":"text-amber-500"}`,children:[t.is_published?e.jsx(f,{size:14}):e.jsx(b,{size:14}),t.is_published?"Published":"Draft"]})}),e.jsx("td",{className:"px-8 py-6 text-right",children:e.jsxs("div",{className:"flex justify-end gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx(r,{href:route("admin.blog.edit",t.id),className:"p-2 bg-[var(--bg-main)] border border-[var(--border)] rounded-lg hover:border-purple-500 hover:text-purple-500 transition-colors",children:e.jsx(p,{size:14})}),e.jsx("button",{onClick:()=>i(t.id),className:"p-2 bg-[var(--bg-main)] border border-[var(--border)] rounded-lg hover:border-rose-500 hover:text-rose-500 transition-colors",children:e.jsx(m,{size:14})})]})})]},t.id))})]})})})})]})]})]})}export{T as default};
