import{L as _}from"./Layout-Cjzy8bEI.js";import{I as h,h as g}from"./moment-DeOISj6Y.js";import{P as x}from"./Pagination-boCwlsjj.js";import{S as u}from"./Subscribe-Iv8OTg3X.js";import{Z as f,i as b,r as n,c as s,o,a as d,b as t,t as l,F as v,j as w,f as k,w as y,e as L}from"./app-BhD6J0Va.js";import{_ as N}from"./FlashMessages-DW2Y2mP0.js";import"./LoadingButton-BKJMdZnQ.js";const B={layout:_,props:{posts:Object,title:String},components:{Subscribe:u,Icon:h,Pagination:x,Link:b,Head:f},created(){this.moment=g}},I={class:"relative z-10 overflow-hidden bg-primary pt-[120px] pb-[100px] md:pt-[130px] lg:pt-[160px]"},S={class:"container"},V={class:"-mx-4 flex flex-wrap items-center"},Y={class:"w-full px-4"},z={class:"text-center"},C={class:"text-4xl font-semibold text-white"},D={class:"pt-20 pb-10 lg:pt-[120px] lg:pb-20"},H={class:"container"},M={key:0,class:"-mx-4 flex flex-wrap"},j={class:"wow fadeInUp group mb-10","data-wow-delay":".1s"},F={class:"mb-8 overflow-hidden rounded"},P=["href"],$=["src"],E={class:"mb-5 inline-block rounded bg-primary py-1 px-4 text-center text-xs font-semibold leading-loose text-white"},O={class:"text-base text-body-color"},T={key:1};function U(a,r,i,Z,q,A){const c=n("Head"),m=n("Link"),p=n("pagination");return o(),s("div",null,[d(c,{title:a.$t(i.title)},null,8,["title"]),t("section",I,[t("div",S,[t("div",V,[t("div",Y,[t("div",z,[t("h1",C,l(a.$t("Blogs & News")),1)])])])]),r[0]||(r[0]=t("div",null,[t("span",{class:"absolute top-0 left-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-1.svg",alt:""})]),t("span",{class:"absolute top-0 right-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-2.svg",alt:""})])],-1))]),t("section",D,[t("div",H,[i.posts.data.length?(o(),s("div",M,[(o(!0),s(v,null,w(i.posts.data,e=>(o(),s("div",{class:"w-full px-4 md:w-1/2 lg:w-1/3",key:e.id},[t("div",j,[t("div",F,[t("a",{href:a.route("blog.details",e.id),class:"block"},[e.image?(o(),s("img",{key:0,src:e.image,alt:"",class:"w-full transition group-hover:rotate-6 group-hover:scale-125"},null,8,$)):k("",!0)],8,P)]),t("div",null,[t("span",E,l(a.moment(e.updated_at).format("MMM DD, YYYY")),1),t("h3",null,[d(m,{href:a.route("blog.details",e.id),class:"mb-4 inline-block text-xl font-semibold text-dark hover:text-primary sm:text-2xl lg:text-xl xl:text-2xl"},{default:y(()=>[L(l(e.title),1)]),_:2},1032,["href"])]),t("p",O,l(e.details.length<70?e.details:e.details.substring(0,70)+"..."),1)])])]))),128))])):(o(),s("div",T,"No blog items found!")),d(p,{class:"mt-6",links:i.posts.links},null,8,["links"])])])])}const tt=N(B,[["render",U]]);export{tt as default};
