import{L as p}from"./Layout-DhxLvS0V.js";import{j as a,t as s,k as t,m as o,U as i,X as h,E as d,z as f,F as u,q as g,B as _,D as m,L as v,y as c,x as w}from"./vendor-CoimUlS3.js";import{P as y}from"./Pagination-D_wo4K-u.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";import"./utils-CXPYudwi.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";function k(r,n){return s(),a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function x(r,n){return s(),a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[t("path",{d:"M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z"}),t("path",{d:"M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z"})])}const B={class:"py-12"},L={class:"max-w-4xl mx-auto sm:px-6 lg:px-8"},N={class:"bg-white overflow-hidden shadow-sm sm:rounded-lg"},V={role:"list",class:"divide-y divide-gray-200"},C={class:"flex items-center px-4 py-4 sm:px-6"},Z={class:"min-w-0 flex-1 flex items-center"},j={class:"flex-shrink-0"},I={key:1,class:"relative flex h-8 w-8"},M={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},z={class:"mt-2 flex items-center text-sm text-gray-500"},A={key:0,class:"text-center py-10"},D={class:"mt-6"},E={__name:"Index",props:{notifications:Object},setup(r){return(n,l)=>(s(),a(u,null,[o(i(h),{title:"All Notifications"}),o(p,null,{header:d(()=>[...l[0]||(l[0]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"}," All Notifications ",-1)])]),default:d(()=>[t("div",B,[t("div",L,[t("div",N,[t("ul",V,[(s(!0),a(u,null,g(r.notifications.data,e=>(s(),a("li",{key:e.id},[o(i(_),{href:n.route("notifications.read",e.id),method:"post",as:"button",type:"button",class:m(["block w-full text-left hover:bg-gray-50 focus:outline-none focus:bg-gray-100 transition",{"bg-blue-50":!e.read_at}])},{default:d(()=>[t("div",C,[t("div",Z,[t("div",j,[e.read_at?(s(),v(i(x),{key:0,class:"h-8 w-8 rounded-full text-gray-400"})):(s(),a("span",I,[o(i(x),{class:"h-8 w-8 rounded-full text-blue-500"}),l[1]||(l[1]=t("span",{class:"absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-blue-400 ring-2 ring-white"},null,-1))]))]),t("div",M,[t("div",null,[t("p",{class:m(["text-sm truncate",{"font-bold text-gray-800":!e.read_at,"text-gray-600":e.read_at}])},c(e.data.message),3),t("p",z,[w(c(n.$t("Ticket")),1),t("span",null,": "+c(e.data.ticket_subject),1)])])])])])]),_:2},1032,["href","class"])]))),128)),r.notifications.data.length===0?(s(),a("li",A,[o(i(k),{class:"h-12 w-12 text-green-400 mx-auto"}),l[2]||(l[2]=t("p",{class:"mt-2 text-sm text-gray-600"},"No notifications yet.",-1))])):f("",!0)])]),t("div",D,[o(y,{links:r.notifications.links},null,8,["links"])])])])]),_:1})],64))}},J=b(E,[["__scopeId","data-v-5ec6c5fd"]]);export{J as default};
