PageSourceSearch

https://app.mathsolveai.com/build/assets/Index-Hq52ngi9.js

js mathsolveai.com collected 2026-10-08 21:57:54 UTC 3,047 bytes, 1 lines download raw bytes

1import{a as l,j as e,H as d,L as t}from"./app-lczoVn-d.js";import{A as m}from"./AppShellLayout-Dz2KPFN8.js";import{P as o}from"./ProfileHeaderActions-Bs3TQIyH.js";import{P as x}from"./plus-CBlqK6-E.js";import{S as n}from"./square-pen-CLL3eZl_.js";import{T as c}from"./trash-2-BHaWrAPI.js";import"./IconSidebar-BNIPoUy8.js";import"./utils-D6xuqHYi.js";import"./createLucideIcon-yI9HOhj4.js";import"./user-CJf1bG3d.js";import"./Dropdown-BVLzXA4F.js";import"./transition-CScZY8-O.js";import"./log-out-BllkMpgS.js";function P({categories:r}){const{delete:i}=l(),a=s=>{confirm("Are you sure you want to delete this category?")&&i(route("admin.categories.destroy",s))};return e.jsxs(m,{children:[e.jsx(d,{title:"Categories"}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsx("header",{className:"shrink-0 border-b border-border bg-surface px-4 py-3 sm:px-6",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground sm:text-xl",children:"Mathematics Categories"}),e.jsx("p",{className:"mt-0.5 text-sm text-text-muted",children:"Manage math categories."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[e.jsx(o,{}),e.jsxs(t,{href:route("admin.categories.create"),className:"inline-flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition hover:bg-primary/90",children:[e.jsx(x,{size:18}),"Add Category"]})]})]})}),e.jsx("div",{className:"flex-1 p-4 sm:p-6",children:e.jsx("div",{className:"bg-white dark:bg-surface rounded-xl shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-surface-2 dark:bg-surface-3 text-text-muted text-sm uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4 font-semibold",children:"Name"}),e.jsx("th",{className:"px-6 py-4 font-semibold",children:"Slug"}),e.jsx("th",{className:"px-6 py-4 font-semibold",children:"Icon"}),e.jsx("th",{className:"px-6 py-4 font-semibold",children:"Order"}),e.jsx("th",{className:"px-6 py-4 font-semibold text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-border/50",children:r.map(s=>e.jsxs("tr",{className:"hover:bg-surface-2/50 transition",children:[e.jsx("td",{className:"px-6 py-4 font-medium",children:s.name}),e.jsx("td",{className:"px-6 py-4 text-text-muted",children:s.slug}),e.jsx("td",{className:"px-6 py-4",children:s.icon}),e.jsx("td",{className:"px-6 py-4",children:s.order}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx(t,{href:route("admin.categories.edit",s.id),className:"text-blue-500 hover:text-blue-600 transition",children:e.jsx(n,{size:18})}),e.jsx("button",{onClick:()=>a(s.id),className:"text-red-500 hover:text-red-600 transition",children:e.jsx(c,{size:18})})]})})]},s.id))})]})})})]})]})}export{P 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.