import{_ as i,A as c}from"./_plugin-vue_export-helper-8019582c.js";import{r as n,o as r,c as l,b as s,t as e,d,w as _}from"./index-454c8244.js";const h={name:"DashboardPage",setup(){},components:{},props:{},data(){return{user:localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")):{},statistics:{fs:{total:0,resolved:0,remaining:0},os:{total:0,resolved:0,remaining:0},overall:{total:0,resolved:0,remaining:0}},chartOptions:{chart:{id:"vuechart-example"},xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul"]}},chartSeries:[{name:"Total",data:[30,40,25,50,49,60,70]},{name:"Resolved",data:[30,40,25,50,49,60,70]}]}},mounted(){this.getStatistics()},methods:{async getStatistics(){const o=await c.get("user/dashboard");this.statistics=o.data}}},m={class:"pt-0",style:{"margin-top":"70px"}},p={class:"grid-container p-3"},g={class:"grid-item card shadow"},u={class:"card-body d-flex justify-content-center align-items-center flex-column gap-3"},f={class:"fw-bolder"},v=s("h3",{class:"fw-bold"},"Total",-1),b={class:"grid-item card shadow"},x={class:"card-body d-flex justify-content-center align-items-center flex-column gap-3"},y={class:"fw-bolder"},w=s("h3",{class:"fw-bold"},"Resolved",-1),S={class:"grid-item card shadow"},j={class:"card-body d-flex justify-content-center align-items-center flex-column gap-3"},k={class:"fw-bolder"},A=s("h3",{class:"fw-bold"},"Remaining",-1),D=s("div",{class:"card-body d-flex justify-content-center align-items-center flex-column gap-1 py-4"},[s("i",{class:"iconly-Arrow-Right-Square icli fs-2"}),s("h1",{class:"text-white m-0"},"More")],-1);function J(o,R,B,I,t,M){const a=n("router-link");return r(),l("section",m,[s("div",p,[s("div",g,[s("div",u,[s("h1",f,e(t.statistics.overall.total),1),v])]),s("div",b,[s("div",x,[s("h1",y,e(t.statistics.overall.resolved),1),w])]),s("div",S,[s("div",j,[s("h1",k,e(t.statistics.overall.remaining),1),A])]),d(a,{to:"/issue/list",class:"grid-item btn btn-primary shadow"},{default:_(()=>[D]),_:1})])])}const O=i(h,[["render",J]]);export{O as default};
