import{q as r,j as s,b as n}from"./BulkImageUpload-DGPbX05r.js";import"./bootstrap.esm-e_F80uXB.js";const o=({uid:t,list:a,removeListing:i})=>{const{url:m,component:l}=r(),e=c=>()=>{i(c)};return s.jsxs("div",{className:"row shadow-sm list-row border rounded",children:[s.jsx("div",{className:"col-lg-4 pe-0 img-col",children:s.jsx("a",{href:route("view",a.url),children:s.jsx("img",{className:"rounded",src:a.image,alt:""})})}),s.jsxs("div",{className:"col-lg-8 detail-col",children:[s.jsx("a",{href:route("view",a.url),children:s.jsxs("div",{className:"bofy-col",children:[s.jsx("h2",{className:"text-truncate",children:a.business_name}),s.jsx("p",{className:"text-truncate",children:a.description}),s.jsxs("ul",{className:"row ms-1",children:[s.jsxs("li",{className:"col-md-4",children:[s.jsx("i",{className:"bi bi-telephone"})," ",a.mobile]}),s.jsxs("li",{className:"col-md-8",children:[s.jsx("i",{className:"bi bi-envelope"})," ",a.email]})]}),s.jsxs("ul",{className:"row ms-1",children:[s.jsxs("li",{className:"col-md-4",children:[" ",s.jsx("i",{className:"bi bi-map "})," ",a.city]}),s.jsx("li",{className:"col-md-8",children:s.jsxs("p",{className:"text-truncate",children:[s.jsx("i",{className:"bi bi-geo-alt text-truncate"})," ",a.address]})})]})]})}),s.jsx("div",{className:"footcover pe-0",children:s.jsxs("ul",{children:[s.jsxs("li",{className:"rev",children:[a.rating>=1?s.jsx("i",{className:"bi act bi-star-fill"}):s.jsx("i",{className:"bi  bi-star-fill"}),a.rating>=2?s.jsx("i",{className:"bi act bi-star-fill"}):s.jsx("i",{className:"bi  bi-star-fill"}),a.rating>=3?s.jsx("i",{className:"bi act bi-star-fill"}):s.jsx("i",{className:"bi  bi-star-fill"}),a.rating>=4?s.jsx("i",{className:"bi act bi-star-fill"}):s.jsx("i",{className:"bi  bi-star-fill"}),a.rating>=5?s.jsx("i",{className:"bi act bi-star-fill"}):s.jsx("i",{className:"bi  bi-star-fill"}),s.jsxs("small",{children:[" ",a.rating,"  (",a.rcount," Reviews)"]})]}),s.jsx("li",{className:"actionlist",children:l!=="User/Bookmarks"?s.jsxs("span",{children:[s.jsxs("button",{onClick:e(a.id),type:"button",className:"btn btn-sm btn-danger",children:[s.jsx("i",{className:"bi bi-trash3"})," Delete"]}),s.jsx(n,{href:route("listing.edit",a.id),children:s.jsxs("button",{className:"btn btn-primary btn-sm",children:[s.jsx("i",{className:"bi bi-pencil-square"})," Edit"]})})]}):s.jsxs("button",{onClick:e(a.id),type:"button",className:"btn btn-sm btn-danger",children:[s.jsx("i",{className:"bi bi-trash3"})," Remove"]})})]})})]})]})};export{o as default};
