import{h as _}from"./moment-BAtM24Ew.js";import{_ as u}from"./NoDataFound-BCWTwO3P.js";import{_ as m}from"./Paginate-BZTS8QtF.js";import{d as h,s as f,r as b,c as l,o,a as t,e as c,i as k,t as e,u as a,f as n,F as p,g,n as x,b as y,w as C,h as v}from"./app-Do7K7VDV.js";import{_ as w}from"./UserLayout-B1erUghk.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const N={class:"table-responsive whitespace-nowrap rounded-primary"},V={class:"table"},j={class:"text-end"},B={key:0},Y={class:"text-center"},L=["href"],M={class:"text-center"},S={class:"text-center"},T={class:"flex justify-end"},$=h({layout:w}),K=Object.assign($,{__name:"Index",props:["supports"],setup(r){const{textExcerpt:i}=f();return(D,E)=>{const d=b("Link");return o(),l("div",N,[t("table",V,[t("thead",null,[t("tr",null,[t("th",null,e(a(n)("Ticket No")),1),t("th",null,e(a(n)("Subject")),1),t("th",null,e(a(n)("Conversations")),1),t("th",null,e(a(n)("Status")),1),t("th",null,e(a(n)("Created At")),1),t("th",null,[t("p",j,e(a(n)("Ticket")),1)])])]),r.supports.total?(o(),l("tbody",B,[(o(!0),l(p,null,g(r.supports.data,s=>(o(),l("tr",{key:s.id},[t("td",Y,e(s.ticket_no),1),t("td",null,[t("a",{class:"text-dark",href:"/user/supports/"+s.id},e(a(i)(s.subject,50)),9,L)]),t("td",M,e(s.conversations_count),1),t("td",null,[t("span",{class:x(s.status==2?"badge badge-warning":s.status==1?"badge badge-success":"badge badge-danger")},e(a(n)(s.status==2?"pending":s.status==1?"Open":"Closed")),3)]),t("td",S,e(a(_)(s.created_at).format("MMM Do YYYY")),1),t("td",null,[t("div",T,[y(d,{href:"/user/supports/"+s.id,class:"btn btn-primary btn-sm"},{default:C(()=>[v(e(a(n)("View")),1)]),_:2},1032,["href"])])])]))),128))])):(o(),c(u,{key:1,"for-table":"true"}))]),r.supports.data.length!=0?(o(),c(m,{key:0,links:r.supports.links},null,8,["links"])):k("",!0)])}}});export{K as default};
