1import{j as e}from"./app-C1iegf7Q.js";import{H as a,L as l}from"./inertia-BpyZy4w-.js";import{a as n}from"./admin-layout-BhXWbUlP.js";/* empty css */import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./createLucideIcon-wqc1LSWg.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./x-DQSeRCcH.js";import"./arrow-left-DCX0fhKH.js";import"./menu-BR3Nc3Gr.js";import"./users-BCcupCXV.js";import"./folder-open-I72SPUVk.js";import"./pound-sterling-D16GLaAZ.js";import"./book-open-DVFlG_9t.js";function r(t,i=!1){return e.jsx("span",{className:t>0&&i?"font-medium text-amber-ink":t>0?"text-ink":"text-ink-3",children:t})}function L({specialists:t}){const i=t.filter(s=>s.needs_attention).length;return e.jsxs(n,{children:[e.jsx(a,{title:"Specialists · Admin"}),e.jsxs("div",{className:"px-6 py-8 max-w-4xl",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-xl font-semibold text-ink",children:"Specialists"}),e.jsxs("p",{className:"mt-1 text-sm text-ink-3",children:["Live caseload per specialist, busiest first.",i>0&&` ${i} with clients waiting on them.`]})]}),e.jsx("div",{className:"overflow-hidden rounded-card border border-line bg-white",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-line text-left text-2xs uppercase tracking-eyebrow text-ink-3",children:[e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Specialist"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Active cases"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Sign-offs waiting"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Open asks"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Overdue follow-ups"})]})}),e.jsxs("tbody",{children:[t.map(s=>e.jsxs("tr",{className:"cursor-pointer border-b border-line last:border-0 hover:bg-bg-2",children:[e.jsx("td",{className:"px-4 py-2.5",children:e.jsxs(l,{href:`/admin/specialists/${s.slug}`,className:"flex items-center gap-2",children:[e.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${s.needs_attention?"bg-amber":"bg-transparent"}`}),e.jsxs("span",{children:[e.jsx("span",{className:"block font-medium text-ink",children:s.name}),s.email&&e.jsx("span",{className:"block text-xs text-ink-3",children:s.email})]})]})}),e.jsx("td",{className:"px-4 py-2.5",children:r(s.active_cases)}),e.jsx("td",{className:"px-4 py-2.5",children:r(s.pending_signoffs,!0)}),e.jsx("td",{className:"px-4 py-2.5",children:r(s.open_asks)}),e.jsx("td",{className:"px-4 py-2.5",children:r(s.overdue_followups,!0)})]},s.user_id)),t.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-8 text-center text-ink-3",children:"No approved specialists yet."})})]})]})})]})]})}export{L 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.