import{b as e,c as t,d as n,f as r,g as i,l as a,m 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:`content-card`},h={class:`table-wrap`},g={key:0,class:`empty-state`},_={__name:`Appointments`,props:{appointments:Object},setup(_){return(v,y)=>(c(),a(s,null,[r(f(u),{title:`Appointments`}),r(p,null,{default:i(()=>[y[4]||=l(`div`,{class:`page-heading`},[l(`div`,null,[l(`p`,{class:`eyebrow`},`Consultations`),l(`h1`,null,`Appointments`),l(`p`,null,`Review, confirm, and manage every client booking.`)]),l(`button`,{class:`button primary`},[n(`Add appointment `),l(`span`,null,`+`)])],-1),l(`div`,m,[y[3]||=l(`div`,{class:`filters`},[l(`input`,{"aria-label":`Search appointments`,placeholder:`Search client, phone, or appointment no.`}),l(`select`,{"aria-label":`Filter by status`},[l(`option`,null,`All statuses`),l(`option`,null,`Pending`),l(`option`,null,`Confirmed`),l(`option`,null,`Completed`)]),l(`button`,{class:`filter-button`},`Filters`)],-1),l(`div`,h,[l(`table`,null,[y[1]||=l(`thead`,null,[l(`tr`,null,[l(`th`,null,`Appointment`),l(`th`,null,`Client`),l(`th`,null,`Service`),l(`th`,null,`Date & time`),l(`th`,null,`Status`),l(`th`)])],-1),l(`tbody`,null,[(c(!0),a(s,null,o(_.appointments.data,t=>(c(),a(`tr`,{key:t.id},[l(`td`,null,[l(`strong`,null,d(t.appointment_no),1),l(`small`,null,d(t.consultation_type),1)]),l(`td`,null,[l(`strong`,null,d(t.client_name),1),l(`small`,null,d(t.client_phone),1)]),l(`td`,null,d(t.service?.name),1),l(`td`,null,[n(d(t.appointment_date),1),l(`small`,null,d(t.start_time?.slice(0,5))+` – `+d(t.end_time?.slice(0,5)),1)]),l(`td`,null,[l(`span`,{class:e(`badge ${t.status}`)},d(t.status),3)]),y[0]||=l(`td`,null,[l(`button`,{class:`row-action`},`View →`)],-1)]))),128))])])]),_.appointments.data.length?t(``,!0):(c(),a(`div`,g,[...y[2]||=[l(`span`,null,`○`,-1),l(`h3`,null,`No appointments found`,-1),l(`p`,null,`New consultation requests will appear here.`,-1)]]))])]),_:1})],64))}};export{_ as default};