import{j as e,H as r,L as i}from"./app-BRoRPa4x.js";import{A as l}from"./AuthenticatedLayout-BmADMCcz.js";import"./Dropdown-B4bpLCgK.js";import"./transition-u43f5Dc-.js";import"./Preloader-ljohZMnx.js";const o=({auth:a,bookings:s})=>e.jsxs(l,{user:a.user,header:e.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"My Bookings"}),children:[e.jsx(r,{title:"My Bookings"}),e.jsx("div",{className:"py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-white overflow-hidden shadow-sm sm:rounded-lg",children:e.jsxs("div",{className:"p-6 text-gray-900",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Your Bookings"}),s.data.length>0?e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[e.jsx("thead",{className:"bg-gray-50",children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Reference"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Type"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Item"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Date"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Price"}),e.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"})]})}),e.jsx("tbody",{className:"bg-white divide-y divide-gray-200"})]})}):e.jsx("p",{children:"You have no bookings yet."}),s.links.length>3&&e.jsx("nav",{className:"flex items-center justify-between mt-4",children:e.jsx("div",{className:"flex-1 flex justify-between sm:justify-end",children:s.links.map(t=>e.jsx(i,{href:t.url,className:`relative inline-flex items-center px-4 py-2 border text-sm font-medium rounded-md ${t.active?"bg-indigo-600 text-white":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,dangerouslySetInnerHTML:{__html:t.label}},t.url||t.label))})})]})})})})]});export{o as default};
