import{L as h}from"./Layout-BNWXhjq5.js";import{c as a,o as s,b as t,a as o,G as n,Z as f,w as d,f as g,F as u,j as _,i as p,n as m,h as v,t as c,e as w}from"./app-BhD6J0Va.js";import{P as y}from"./Pagination-KBt07-7T.js";import{_ as b}from"./FlashMessages-DW2Y2mP0.js";import"./moment-DeOISj6Y.js";function k(r,i){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,i){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 N={class:"py-12"},B={class:"max-w-4xl mx-auto sm:px-6 lg:px-8"},L={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"},A={class:"mt-2 flex items-center text-sm text-gray-500"},F={key:0,class:"text-center py-10"},P={class:"mt-6"},S={__name:"Index",props:{notifications:Object},setup(r){return(i,l)=>(s(),a(u,null,[o(n(f),{title:"All Notifications"}),o(h,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",N,[t("div",B,[t("div",L,[t("ul",V,[(s(!0),a(u,null,_(r.notifications.data,e=>(s(),a("li",{key:e.id},[o(n(p),{href:i.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(n(x),{key:0,class:"h-8 w-8 rounded-full text-gray-400"})):(s(),a("span",I,[o(n(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",A,[w(c(i.$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",F,[o(n(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))])):g("",!0)])]),t("div",P,[o(y,{links:r.notifications.links},null,8,["links"])])])])]),_:1})],64))}},G=b(S,[["__scopeId","data-v-5ec6c5fd"]]);export{G as default};
