import{_ as m}from"./Files.vue_vue_type_script_setup_true_lang-RfZgjaKd.js";import{_ as u}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{u as c}from"./useRandomNum-BTw6623a.js";import{_}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as p,c as o,o as a,a as n,b as s,u as l,m as f,h,f as r,t,F as d,r as g,j as b,P as $}from"./app-BidmlC59.js";import"./useToastify-Bhe2cyz3.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";import"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import"./useCopyToClipboard-CsEpRQpU.js";import"./simplebar.min-hRaQJumN.js";/* empty css                             *//* empty css              */const v={class:"container-fluid"},k={class:"user-list list mb-4"},w={class:"card"},y={class:"card-body p-4"},N={class:"title fs-8 lts-05 mb-4"},V={class:"badge bg-info fs-8 ms-1"},B={class:"table-responsive mb-4"},C={class:"table",style:{"min-width":"990px"}},F={key:0,class:"product-list-empty"},P={class:"lts-05"},K=p({layout:_,__name:"Usage",props:{discount:{},users:{}},setup(j){return(e,D)=>(a(),o(d,null,[n(l(f),{title:e.$t("messages.word.discounts")},null,8,["title"]),s("div",v,[n(m,{title:e.$t("messages.word.consumers"),item:e.$t("messages.word.discounts")},null,8,["title","item"]),s("div",k,[s("div",w,[s("div",y,[s("div",N,[r(t(e.$t("messages.sentence.discount_usage_list"))+": ",1),s("span",V,t(e.discount.code),1)]),s("div",B,[s("table",C,[s("thead",null,[s("tr",null,[s("th",null,t(e.$t("messages.word.name")),1),s("th",null,t(e.$t("messages.sentence.usage_count")),1)])]),s("tbody",null,[(a(!0),o(d,null,g(e.users.data,i=>(a(),o("tr",{key:l(c)(1e5,999999)},[s("td",null,[n(l($),{class:"link fw-normal",href:e.route("admin.users.show",i.user.id)},{default:b(()=>[r(t(i.user.name),1)]),_:2},1032,["href"])]),s("td",null,t(i.count),1)]))),128))])])]),e.users.data.length==0?(a(),o("div",F,[s("div",P,t(e.$t("messages.sentence.no_items_found")),1)])):h("",!0),n(u,{links:e.users.links},null,8,["links"])])])])])],64))}});export{K as default};
