import{e as o,j as s}from"./index-sga-FecS.js";import{u as h,f as c}from"./DefaultLayout-R679muSx.js";import{b as x}from"./index.esm-7CdJvro0.js";import{C as l,a}from"./CRow-BaMSc2yS.js";import{C as d,a as n}from"./CCardBody-e8lVonr1.js";import{C as i}from"./CCardHeader-B7SoQ3bq.js";import"./university-logo-full-HPG0vyLU.js";import"./cil-user-Dlmw-Gem.js";function g(){const{t:r}=o(),{user:e,loading:t,error:m}=h();return t?s.jsx("div",{children:"Loading..."}):m?s.jsx("div",{children:"Error loading user."}):!e||e.role!=="accountant"?s.jsx("div",{children:"Unauthorized"}):s.jsxs(x,{fluid:!0,className:"py-4",children:[s.jsx(l,{className:"mb-4",children:s.jsxs(a,{xs:"12",children:[s.jsx("h2",{className:"mb-1",children:r("accountant_dashboard")}),s.jsxs("p",{className:"text-medium-emphasis mb-0",children:[r("accountant_dashboard_welcome")," ",s.jsx("strong",{children:e?.full_name||e?.username})]})]})}),s.jsxs(l,{children:[s.jsx(a,{xs:"12",md:"4",className:"mb-4",children:s.jsxs(d,{className:"h-100 border-success border-start-4",children:[s.jsx(i,{children:s.jsx("strong",{children:r("acc_card_today_payments_title")})}),s.jsxs(n,{children:[s.jsx("div",{className:"text-medium-emphasis small mb-1",children:r("acc_card_today_payments_sub")}),s.jsxs("h4",{className:"mb-2",children:[r("acc_currency_prefix")," 0"]}),s.jsx(c,{color:"success",children:r("acc_status_placeholder")})]})]})}),s.jsx(a,{xs:"12",md:"4",className:"mb-4",children:s.jsxs(d,{className:"h-100 border-info border-start-4",children:[s.jsx(i,{children:s.jsx("strong",{children:r("acc_card_pending_fees_title")})}),s.jsxs(n,{children:[s.jsx("div",{className:"text-medium-emphasis small mb-1",children:r("acc_card_pending_fees_sub")}),s.jsxs("h4",{className:"mb-2",children:[r("acc_currency_prefix")," 0"]}),s.jsx(c,{color:"warning",textColor:"dark",children:r("acc_status_placeholder")})]})]})}),s.jsx(a,{xs:"12",md:"4",className:"mb-4",children:s.jsxs(d,{className:"h-100 border-primary border-start-4",children:[s.jsx(i,{children:s.jsx("strong",{children:r("acc_card_refunds_title")})}),s.jsxs(n,{children:[s.jsx("div",{className:"text-medium-emphasis small mb-1",children:r("acc_card_refunds_sub")}),s.jsxs("h4",{className:"mb-2",children:[r("acc_currency_prefix")," 0"]}),s.jsx(c,{color:"secondary",children:r("acc_status_placeholder")})]})]})})]})]})}export{g as default};
