import{_ as p}from"./AdminLayout-DeT_GLTC.js";import{d as f,s as g,r as w,y as v,c as d,o as n,a as t,e as b,i as x,t as e,u as s,f as o,F as y,g as k,l as C,h as D,n as N,b as l,w as z,z as B}from"./app-Do7K7VDV.js";import{_ as V}from"./Paginate-BZTS8QtF.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const E={class:"space-y-6"},I={class:"table-responsive whitespace-nowrap rounded-primary"},$={class:"table"},j={class:"text-right"},A={class:"flex justify-end"},F={class:"flex items-center gap-2"},S={class:"avatar rounded-square mr-3"},q={class:"text-left"},L={class:"text-right"},O={class:"dropdown","data-placement":"bottom-start"},P={class:"dropdown-toggle"},R={class:"dropdown-content w-40"},T={class:"dropdown-list"},G={class:"dropdown-list-item"},H={class:"dropdown-list-item"},J=["onClick"],K=f({layout:p}),et=Object.assign(K,{__name:"Index",props:["posts"],setup(i){const{textExcerpt:r,deleteRow:m}=g();return(_,M)=>{const c=w("Icon"),h=v("lazy");return n(),d("div",E,[t("div",I,[t("table",$,[t("thead",null,[t("tr",null,[t("th",null,e(s(o)("Name")),1),t("th",null,e(s(o)("Position")),1),t("th",j,e(s(o)("Status")),1),t("th",A,e(s(o)("Action")),1)])]),t("tbody",null,[(n(!0),d(y,null,k(i.posts.data,a=>{var u;return n(),d("tr",{key:a.id},[t("td",F,[C(t("img",S,null,512),[[h,(u=a.preview)==null?void 0:u.value]]),D(" "+e(s(r)(a.title,50)),1)]),t("td",q,e(s(r)(a.slug,50)),1),t("td",L,[t("span",{class:N(["badge",a.status==1?"badge-success":"badge-danger"])},e(a.status==1?s(o)("Active"):s(o)("Draft")),3)]),t("td",null,[t("div",O,[t("div",P,[l(c,{class:"w-30 text-lg",icon:"bi:three-dots-vertical"})]),t("div",R,[t("ul",T,[t("li",G,[l(s(B),{href:_.route("admin.team.edit",a.id),class:"dropdown-link"},{default:z(()=>[l(c,{class:"w-30 text-lg",icon:"bx:edit"}),t("span",null,e(s(o)("Edit")),1)]),_:2},1032,["href"])]),t("li",H,[t("button",{type:"button",class:"dropdown-link",onClick:Q=>s(m)(_.route("admin.team.destroy",a.id))},[l(c,{class:"w-30 text-lg",icon:"bx:trash"}),t("span",null,e(s(o)("Delete")),1)],8,J)])])])])])])}),128))])])]),i.posts.data.length!=0?(n(),b(V,{key:0,links:i.posts.links},null,8,["links"])):x("",!0)])}}});export{et as default};
