import{s as f,h as l,c as a,b as e,a as s,u as p,F as h,r as b,g as w,o as n,O as g,j as d,t as c}from"./app-13978987.js";import{_ as v}from"./UserLayout-6a50516d.js";import{_ as x}from"./CreatePostCard-92b6d387.js";import{_ as k}from"./PageHeader-8c638686.js";import{_ as y}from"./FilterDropdown-9268f1dc.js";import"./dropdown-45d66330.js";import"./SpinnerBtn-899a94c2.js";const j={class:"container flex-grow p-4 sm:p-6"},B={class:"mb-8 mt-4 flex items-center justify-between"},C={class:"w-80"},O={class:"grid w-full grid-cols-1 gap-8 pb-8 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4"},$={class:"dropdown absolute right-2 top-2","data-placement":"bottom-end"},I=e("div",{class:"dropdown-toggle p-1"},[e("button",{type:"button",class:"h-8 w-8 rounded-full bg-white font-medium shadow-sm dark:bg-slate-800"},[e("i",{class:"bx bx-dots-vertical-rounded text-xl"})])],-1),L={class:"dropdown-content w-32 !overflow-visible p-1"},N={class:"text-sm"},E=["src"],F={class:"font-semibold"},V=w({layout:v}),J=Object.assign(V,{__name:"Index",props:["brands"],setup(m){f();const u=[{label:"Name",value:"name"}];return(t,i)=>{const _=l("Icon"),r=l("Link");return n(),a("main",j,[e("div",B,[s(k,{title:"Brands"}),e("div",C,[s(y,{options:u})])]),e("div",O,[s(x,{classes:"h-88 min-w-[16rem]",text:"Create Brand",onAction:i[0]||(i[0]=()=>p(g).get(t.route("user.brand.create")))}),(n(!0),a(h,null,b(m.brands.data,o=>(n(),a("div",{key:o.id,class:"relative flex h-88 min-w-[16rem] flex-col overflow-hidden rounded-2xl border border-gray-50 shadow-md dark:border-gray-600 dark:bg-[#0f172a7e]"},[e("div",$,[I,e("div",L,[s(r,{href:t.route("user.brand.show",o.uuid),class:"dropdown-link"},{default:d(()=>[s(_,{icon:"fe:edit"}),e("span",N,c(t.trans("Edit")),1)]),_:2},1032,["href"])])]),s(r,{href:t.route("user.brand.show",o.uuid)},{default:d(()=>[e("img",{class:"h-72 w-full object-cover",src:o.logo,alt:"placeholder"},null,8,E)]),_:2},1032,["href"]),s(r,{href:t.route("user.brand.show",o.uuid),class:"flex items-center justify-between px-4 pt-5"},{default:d(()=>[e("p",F,c(o.name),1)]),_:2},1032,["href"])]))),128))])])}}});export{J as default};
