import{j as a}from"./login-aN2dRsX6.js";import{P as x}from"./page_header-wdV8ucix.js";import{b as r}from"./index-26bvdVY4.js";import{H as p}from"./query-c3dDncii.js";import"./app-gmlkJjeD.js";function c({title:s,value:l,icon:n,trend:d,className:i,trendText:t,trendDirection:e}){return a.jsx("div",{className:`card ${i||""}`,children:a.jsxs("div",{className:"card-body",children:[a.jsx("label",{className:"card-title fw-medium mb-1",children:s}),a.jsxs("h3",{className:"card-value mb-1 gap-2 d-flex align-items-center",children:[n," ",l]}),a.jsxs("small",{children:[a.jsxs("span",{className:`d-inline-flex ${e}`,children:[d," ",a.jsx("i",{className:`ri-arrow-${e==="text-success"?"up":"down"}-line`})]})," ",t]})]})})}function f(){var l,n,d,i,t,e,o,m;const s=p();return a.jsxs("div",{className:"container",children:[a.jsx(x,{title:"Dashboard",breadcrumb:[{title:"Home",path:"/app/dashboard"}]}),a.jsxs("div",{className:"content",children:[a.jsx("h2",{children:"Selamat Datang"}),a.jsx("h5",{children:"Berikut ringkasan posisi keuangan perusahaan Anda"}),a.jsx("div",{children:a.jsxs("div",{className:"row g-3",children:[a.jsx("div",{className:"col-xl-3 col-6",children:a.jsx(c,{title:"Kas pada Bank",value:`Rp. ${r((l=s.data)==null?void 0:l.saldo_penempatan)}`,trend:`${(n=s.data)==null?void 0:n.penempatan} Rekening`})}),a.jsx("div",{className:"col-xl-3 col-6",children:a.jsx(c,{title:"Kas",value:`Rp. ${r((d=s.data)==null?void 0:d.saldo_kas)}`,trend:`${(i=s.data)==null?void 0:i.kas} Rekening`})}),a.jsx("div",{className:"col-xl-3 col-6",children:a.jsx(c,{title:"Tabungan",value:`Rp. ${r((t=s.data)==null?void 0:t.saldo_tabungan)}`,trend:`${(e=s.data)==null?void 0:e.tabungan} Rekening`})}),a.jsx("div",{className:"col-xl-3 col-6",children:a.jsx(c,{title:"Deposito",value:`Rp. ${r((o=s.data)==null?void 0:o.saldo_deposito)}`,trend:`${(m=s.data)==null?void 0:m.deposito} Rekening`})})]})})]})]})}export{f as default};
