import{_ as g}from"./AdminLayout-DeT_GLTC.js";import{_ as v}from"./Paginate-BZTS8QtF.js";import{h as w}from"./moment-BAtM24Ew.js";import{d as b,s as k,r as _,y,c as i,o as n,a as t,b as l,e as x,t as e,u as s,f as o,F as u,g as C,l as D,n as h,w as A}from"./app-Do7K7VDV.js";import{_ as I}from"./NoDataFound-oJx-Mfyi.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const B={class:"space-y-6"},$={class:"table-responsive whitespace-nowrap rounded-primary"},z={class:"table"},F={class:"text-right"},L={key:0},M={class:"text-left"},E={class:"h-12",alt:"preview"},N={class:"text-left"},V={class:"text-left"},j={class:""},O={class:"dropdown","data-placement":"bottom-start"},P={class:"dropdown-toggle"},R={class:"dropdown-content w-40"},S={class:"dropdown-list"},T={class:"dropdown-list-item"},Y={class:"dropdown-list-item"},q=["onClick"],G=b({layout:g}),ot=Object.assign(G,{__name:"Index",props:["integrations"],setup(c){const{deleteRow:p}=k();return(d,H)=>{const r=_("Icon"),m=_("Link"),f=y("lazy");return n(),i(u,null,[t("div",B,[t("div",$,[t("table",z,[t("thead",null,[t("tr",null,[t("th",null,e(s(o)("Preview")),1),t("th",null,e(s(o)("Title")),1),t("th",null,e(s(o)("Is Active")),1),t("th",null,e(s(o)("Is Featured")),1),t("th",null,e(s(o)("Created At")),1),t("th",null,[t("p",F,e(s(o)("Action")),1)])])]),c.integrations.total?(n(),i("tbody",L,[(n(!0),i(u,null,C(c.integrations.data,a=>(n(),i("tr",{key:a.id},[t("td",M,[D(t("img",E,null,512),[[f,a.preview]])]),t("td",null,e(a.title),1),t("td",N,[t("span",{class:h(["badge",a.is_active?"badge-success":"badge-danger"])},e(a.is_active?s(o)("Active"):s(o)("Draft")),3)]),t("td",V,[t("span",{class:h(["badge",a.is_featured?"badge-success":"badge-danger"])},e(a.is_featured?s(o)("Active"):s(o)("Draft")),3)]),t("td",null,e(s(w)(a.created_at).format("D-MMM-Y")),1),t("td",j,[t("div",O,[t("div",P,[l(r,{class:"w-30 text-lg",icon:"bi:three-dots-vertical"})]),t("div",R,[t("ul",S,[t("li",T,[l(m,{href:d.route("admin.integrations.edit",a),class:"dropdown-link"},{default:A(()=>[l(r,{class:"w-30 text-lg",icon:"bx:edit"}),t("span",null,e(s(o)("Edit")),1)]),_:2},1032,["href"])]),t("li",Y,[t("button",{as:"button",class:"dropdown-link",onClick:J=>s(p)(d.route("admin.integrations.destroy",a.id))},[l(r,{class:"w-30 text-lg",icon:"bx:trash"}),t("span",null,e(s(o)("Delete")),1)],8,q)])])])])])]))),128))])):(n(),x(I,{key:1,"for-table":"true"}))])])]),l(v,{links:c.integrations.links},null,8,["links"])],64)}}});export{ot as default};
