import{_ as f}from"./AdminLayout-bd13ff9d.js";import{_ as v}from"./PageHeader-8c638686.js";import{s as x,p as s,h as g,c as d,a as l,b as t,t as a,u as e,F as k,r as w,i as _,e as h,g as y,o as i,k as C,n as M,j as A,z as $}from"./app-13978987.js";import I from"./OverviewGrid-21ea6fc2.js";import{_ as N}from"./NoDataFound-bc81d7fa.js";import{_ as B}from"./Paginate-f61b79b2.js";import"./dropdown-45d66330.js";const E={class:"flex-grow p-4 sm:p-6"},V={class:"space-y-6"},j={class:"table-responsive whitespace-nowrap rounded-primary"},z={class:"table"},D={class:"text-right"},S={class:"flex justify-end"},T={class:"flex items-center gap-2"},F=["src"],O={class:"text-left"},q={class:"text-right"},L={class:"dropdown","data-placement":"bottom-start"},P={class:"dropdown-toggle"},R={class:"dropdown-content w-40"},G={class:"dropdown-list"},H={class:"dropdown-list-item"},J={class:"dropdown-list-item"},K=["onClick"],Q=y({layout:f}),ot=Object.assign(Q,{__name:"Index",props:["posts","buttons","totalMembers","totalActiveMembers","totalInActiveMembers"],setup(n){const{textExcerpt:m,deleteRow:p}=x(),c=n,b=[{value:c.totalMembers,title:s("Total Members"),iconClass:"bx:user-pin"},{value:c.totalActiveMembers,title:s("Active Members"),iconClass:"bx:check-circle"},{value:c.totalInActiveMembers,title:s("Expired Members"),iconClass:"bx:x-circle"}];return(u,U)=>{const r=g("Icon");return i(),d("main",E,[l(v,{title:"Team",buttons:n.buttons},null,8,["buttons"]),t("div",V,[l(I,{items:b,grid:"3"}),t("div",j,[t("table",z,[t("thead",null,[t("tr",null,[t("th",null,a(e(s)("Name")),1),t("th",null,a(e(s)("Position")),1),t("th",D,a(e(s)("Status")),1),t("th",S,a(e(s)("Action")),1)])]),t("tbody",null,[(i(!0),d(k,null,w(n.posts.data,o=>(i(),d("tr",{key:o.id},[t("td",T,[t("img",{src:o.preview.value,class:"avatar rounded-square mr-3"},null,8,F),C(" "+a(e(m)(o.title,50)),1)]),t("td",O,a(e(m)(o.slug,50)),1),t("td",q,[t("span",{class:M(["badge",o.status==1?"badge-success":"badge-danger"])},a(o.status==1?e(s)("Active"):e(s)("Draft")),3)]),t("td",null,[t("div",L,[t("div",P,[l(r,{class:"text-2xl",icon:"bx:dots-horizontal-rounded"})]),t("div",R,[t("ul",G,[t("li",H,[l(e($),{href:u.route("admin.team.edit",o.id),class:"dropdown-link"},{default:A(()=>[l(r,{icon:"fe:edit"}),t("span",null,a(e(s)("Edit")),1)]),_:2},1032,["href"])]),t("li",J,[t("button",{type:"button",class:"dropdown-link",onClick:W=>e(p)(u.route("admin.team.destroy",o.id))},[l(r,{icon:"fe:trash"}),t("span",null,a(e(s)("Delete")),1)],8,K)])])])])])]))),128))])]),n.posts.data.length==0?(i(),_(N,{key:0,type:"info",text:e(s)("Opps you have not created any plan....")},null,8,["text"])):h("",!0)]),n.posts.data.length!=0?(i(),_(B,{key:0,links:n.posts.links},null,8,["links"])):h("",!0)])])}}});export{ot as default};
