import{d as p,j as w,s as k,r as b,c as l,o as n,a as t,e as c,t as s,F as g,g as v,b as d,w as y,h as u,u as i,aa as m,i as C}from"./app-Do7K7VDV.js";import{_ as x}from"./Paginate-BZTS8QtF.js";import{_ as B}from"./NoDataFound-BCWTwO3P.js";import{_ as N}from"./AdminLayout-DeT_GLTC.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const V={class:"table-responsive mt-4 w-full"},$={class:"table"},j={class:"!text-right"},L={class:"!text-right"},M={key:0,class:"tbody"},D={class:"!text-right"},F={class:"flex justify-end"},I={class:"dropdown","data-placement":"bottom-start"},O={class:"dropdown-toggle"},S={class:"dropdown-content w-56"},T={class:"dropdown-list"},A={class:"dropdown-list-item"},E=["onClick"],G={class:"w-full"},R=p({layout:N}),X=Object.assign(R,{__name:"Index",props:["groups"],setup(a){w();const{deleteRow:_}=k();return(e,q)=>{const h=b("Link");return n(),l("div",V,[t("table",$,[t("thead",null,[t("tr",null,[t("th",null,s(e.trans("Group")),1),t("th",null,s(e.trans("Members")),1),t("th",null,s(e.trans("Module")),1),t("th",j,s(e.trans("Owner")),1),t("th",L,s(e.trans("Action")),1)])]),a.groups.data.length?(n(),l("tbody",M,[(n(!0),l(g,null,v(a.groups.data,(o,f)=>(n(),l("tr",{key:f},[t("td",null,s(o.name),1),t("td",null,s(o.customers_count),1),t("td",null,s(o.module),1),t("td",D,[d(h,{href:e.route("admin.users.show",o.owner)},{default:y(()=>{var r;return[u(s((r=o.owner)==null?void 0:r.name),1)]}),_:2},1032,["href"])]),t("td",null,[t("div",F,[t("div",I,[t("div",O,[d(i(m),{class:"h-5 text-3xl text-slate-400",icon:"bx:dots-vertical-rounded"})]),t("div",S,[t("ul",T,[t("li",A,[t("button",{class:"dropdown-link delete-confirm",href:"#",onClick:r=>i(_)(e.route("admin.logs.groups.destroy",o))},[d(i(m),{icon:"bx:trash"}),u(" "+s(e.trans("Delete")),1)],8,E)])])])])])])]))),128))])):(n(),c(B,{key:1,forTable:!0}))]),t("div",G,[a.groups.data.length?(n(),c(x,{key:0,links:a.groups.links},null,8,["links"])):C("",!0)])])}}});export{X as default};
