1import{m as r,at as n,r as x,c as a,d as t,f as i,g as m,F as p,q as y,o as l,t as o}from"./CjXW0tVs.js";const u={class:"px-4 sm:px-6 lg:px-8"},f={class:"-mx-4 mt-8 sm:-mx-0"},_={class:"min-w-full divide-y divide-gray-300"},g={key:0,class:"divide-y divide-gray-200 bg-white"},b={class:"w-full max-w-0 py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none sm:pl-0"},h={class:"px-3 py-4 text-sm text-gray-500 lg:table-cell"},v={class:"px-3 py-4 text-sm text-gray-500 sm:table-cell"},w={class:"px-3 py-4 text-sm text-gray-500"},F={__name:"dashboard",setup(k){const d=x(null);return r(async()=>{const{data:c}=await n("/dashboard/order");d.value=c.value}),(c,e)=>(l(),a("div",u,[e[1]||(e[1]=t("div",{class:"sm:flex sm:items-center"},[t("div",{class:"sm:flex-auto"},[t("h1",{class:"text-base font-semibold text-gray-900"},"Orders"),t("p",{class:"mt-2 text-sm text-gray-700"},"A list of orders.")])],-1)),t("div",f,[t("table",_,[e[0]||(e[0]=t("thead",null,[t("tr",null,[t("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0"}," Order id "),t("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900 lg:table-cell"}," Status "),t("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900 sm:table-cell"}," Payment status "),t("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"}," Total cost ")])],-1)),m(d)?(l(),a("tbody",g,[(l(!0),a(p,null,y(m(d),s=>(l(),a("tr",{key:s.id},[t("td",b,o(s.id),1),t("td",h,o(s.status),1),t("td",v,o(s.payment.status),1),t("td",w,o(s.total_cost),1)]))),128))])):i("",!0)])])]))}};export{F 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.