import{b as e,d as t,f as n,g as r,l as i,m as a,n as o,o as s,p as c,s as l,t as u,x as d,y as f}from"./app-CKOenY1V.js";import{t as p}from"./AdminLayout-B78knqLu.js";var m={class:`page-heading`},h={class:`stat-grid`},g={class:`content-card schedule-card`},_={class:`card-header`},v={key:0,class:`schedule-list`},y={key:1,class:`empty-state`},b={__name:`Dashboard`,props:{stats:Array,todayAppointments:Array},setup(b){let x=e=>`badge ${e}`;return(S,C)=>(c(),i(s,null,[n(f(u),{title:`Admin dashboard`}),n(p,null,{default:r(()=>[l(`div`,m,[C[1]||=l(`div`,null,[l(`p`,{class:`eyebrow`},`Overview`),l(`h1`,null,`Good morning.`),l(`p`,null,`Here’s what’s happening with your consultations today.`)],-1),n(f(o),{href:`/admin/appointments`,class:`button primary`},{default:r(()=>[...C[0]||=[t(`View appointments `,-1),l(`span`,null,`→`,-1)]]),_:1})]),l(`div`,h,[(c(!0),i(s,null,a(b.stats,t=>(c(),i(`article`,{key:t.label,class:e([`stat-card`,t.tone])},[l(`p`,null,d(t.label),1),l(`strong`,null,d(t.value),1),C[2]||=l(`span`,null,`Current schedule`,-1)],2))),128))]),l(`div`,g,[l(`div`,_,[C[4]||=l(`div`,null,[l(`p`,{class:`eyebrow`},`Today’s schedule`),l(`h2`,null,`Appointments`)],-1),n(f(o),{href:`/admin/calendar`,class:`text-link`},{default:r(()=>[...C[3]||=[t(`Open calendar →`,-1)]]),_:1})]),b.todayAppointments.length?(c(),i(`div`,v,[(c(!0),i(s,null,a(b.todayAppointments,t=>(c(),i(`div`,{key:t.id,class:`schedule-row`},[l(`time`,null,d(t.start_time?.slice(0,5)),1),l(`div`,null,[l(`strong`,null,d(t.client_name),1),l(`p`,null,d(t.service?.name)+` · `+d(t.consultation_type),1)]),l(`span`,{class:e(x(t.status))},d(t.status),3)]))),128))])):(c(),i(`div`,y,[C[6]||=l(`span`,null,`○`,-1),C[7]||=l(`h3`,null,`No appointments today`,-1),C[8]||=l(`p`,null,`Your schedule is clear. You can manage availability or review upcoming bookings.`,-1),n(f(o),{href:`/admin/availability`,class:`text-link`},{default:r(()=>[...C[5]||=[t(`Manage availability →`,-1)]]),_:1})]))])]),_:1})],64))}};export{b as default};