import{_,E as i,r as h,m as p,c as a,a as t,t as s,d,F as u,A as m,o as n}from"./app-C3pBWUn1.js";/* empty css            */const b={class:"my-2"},y={class:"d-block mb-2 mb-lg-3 fs-4 fw-bold"},f={class:"table-responsive mt-5"},g={class:"table"},$={scope:"col"},k={scope:"col"},S={scope:"col"},A={scope:"col"},D={scope:"col"},v={key:0,class:"border-start border-end"},B={class:"text-capitalize"},P={class:"badge bg-success"},F={class:"text-success"},T={class:"px-3 py-1 border border-success"},j={key:1,class:"border-start border-end"},z={colspan:"6",class:"text-center text-danger"},E={__name:"DashboardPayment",setup(H){const l=i();let c=h({});const r=e=>e.toString().padStart(6,"0");return p(()=>{r()}),axios.get("/transactions",{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer "+l.authToken}}).then(e=>{c.value=e.data.data.transactions}),(e,I)=>(n(),a("section",b,[t("span",y,s(e.$t("Home"))+"/"+s(e.$t("Payment History")),1),t("div",f,[t("table",g,[t("thead",null,[t("tr",null,[t("th",$,s(e.$t("Transaction ID")),1),t("th",k,s(e.$t("Method")),1),t("th",S,s(e.$t("Amount")),1),t("th",A,s(e.$t("Status")),1),t("th",D,s(e.$t("Pay Date")),1)])]),d(c).length>0?(n(),a("tbody",v,[(n(!0),a(u,null,m(d(c),o=>(n(),a("tr",{key:o},[t("td",null,"#"+s(r(o.id)),1),t("td",B,[t("span",P,s(o.payment_method),1)]),t("td",null,s(o.payment_amount),1),t("td",F,[t("span",T,s(o.status),1)]),t("td",null,s(o.pay_at),1)]))),128))])):(n(),a("tbody",j,[t("tr",null,[t("td",z,s(e.$t("there is no payment history found!")),1)])]))])])]))}},C=_(E,[["__scopeId","data-v-2a6f7c17"]]);export{C as default};
