1import{j as e}from"./app-C1iegf7Q.js";import{H as p}from"./inertia-BpyZy4w-.js";import{A as d}from"./admin-badge-CnLlmTcA.js";import{A as r}from"./admin-card-CGRnBfIW.js";import{H as c}from"./hub-tab-bar-frTrnkQy.js";import{a as x,P as n}from"./pulse-strip-CiQuA-On.js";import{R as m}from"./record-row-B2CaTgsm.js";import{a as h}from"./admin-layout-BhXWbUlP.js";/* empty css */import"./chevron-right-ymZwGCJO.js";import"./createLucideIcon-wqc1LSWg.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.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 q({users:s,leads:l,providers:i,bookings:o}){return e.jsxs(h,{children:[e.jsx(p,{title:"People â Admin"}),e.jsx(c,{tabs:[{label:"Overview",href:"/admin/people",active:!0},{label:"Users",href:"/admin/users"},{label:"Leads",href:"/admin/contacts"},{label:"Providers",href:"/admin/providers"},{label:"Bookings",href:"/admin/providers/bookings"}]}),e.jsxs("div",{className:"px-4 py-5 sm:px-7 sm:py-6",children:[e.jsx("h1",{className:"mb-5 text-base font-semibold text-ink",children:"People"}),e.jsxs(x,{cols:4,children:[e.jsx(n,{label:"Users",value:s.total,delta:`+${s.this_week} this week`,deltaUp:s.this_week>0}),e.jsx(n,{label:"Leads",value:l.total,delta:`+${l.this_week} this week`,deltaUp:l.this_week>0}),e.jsx(n,{label:"Providers",value:i.total,delta:i.pending>0?`${i.pending} pending approval`:"All approved",deltaAlert:i.pending>0}),e.jsx(n,{label:"Active bookings",value:o.active,delta:"confirmed or scheduled"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3.5 items-start lg:grid-cols-[1fr_300px]",children:[e.jsxs("div",{className:"flex flex-col gap-3.5",children:[e.jsx(r,{label:"Recent signups",seeAll:{href:"/admin/users",label:"View all users"},children:s.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No users yet"}):s.recent.map((t,a)=>e.jsx(m,{href:t.href,initials:t.initials,name:t.name,meta:t.email,right:e.jsx("span",{className:"text-xs text-ink-3",children:t.time_ago})},a))}),e.jsx(r,{label:"Recent leads",seeAll:{href:"/admin/contacts",label:"View all leads"},children:l.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No leads yet"}):l.recent.map((t,a)=>e.jsx(m,{href:t.href,initials:t.initials!=="â"?t.initials:void 0,avatarPlaceholder:t.initials==="â",name:t.name,meta:t.email??t.source,right:e.jsx(d,{variant:t.source_badge,children:t.source_label})},a))})]}),e.jsxs("div",{className:"flex flex-col gap-3.5",children:[e.jsx(r,{label:"Providers",seeAll:{href:"/admin/providers"},children:i.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No providers yet"}):i.recent.map((t,a)=>e.jsx(m,{href:t.href,initials:t.initials,name:t.name,right:e.jsx(d,{variant:t.status_badge,children:t.status})},a))}),e.jsx(r,{label:"Bookings",seeAll:{href:"/admin/providers/bookings"},children:o.recent.length===0?e.jsx("p",{className:"px-4 py-4 text-sm text-ink-3",children:"No bookings yet"}):o.recent.map((t,a)=>e.jsx(m,{href:t.href,name:t.client,meta:`with ${t.provider}`,right:e.jsx(d,{variant:t.status_badge,children:t.status})},a))})]})]})]})]})}export{q 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.