import{_ as g}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as h,c as l,o as n,a as i,b as s,u as r,m as _,h as p,t,F as u,p as f,j as d,f as c,P as m}from"./app-DJb_CRLj.js";import{_ as b}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import{_ as w}from"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import{_ as $}from"./Files.vue_vue_type_script_setup_true_lang-CRYWsXWh.js";import"./simplebar.min-CZ5saGqI.js";import"./debounce-CDPmhVE8.js";import"./useToastify-DqLaHt3f.js";import"./coloris-DdyWondq.js";/* empty css                             *//* empty css              */import"./useCopyToClipboard-CrZ6pkmz.js";import"./useRandomNum-BTw6623a.js";import"./FilterList.vue_vue_type_script_setup_true_lang-CCLhEmVl.js";const k={class:"container-fluid"},y={class:"user-list list mb-4"},v={class:"card"},N={class:"card-body"},V={class:"table-responsive mb-4"},B={class:"table",style:{"min-width":"900px"}},C={class:"first-small"},j=["src","alt"],F={key:0,class:"badge bg-success"},P={key:1,class:"badge bg-danger"},S={key:2,class:"badge bg-info"},A={key:0,class:"product-list-empty"},D={class:"lts-05"},W=h({layout:g,__name:"AwaitingStores",props:{stores:{},keyword:{}},setup(E){return(e,o)=>(n(),l(u,null,[i(r(_),{title:e.$t("messages.title.awaiting_stores")},null,8,["title"]),s("div",k,[i($,{title:e.$t("messages.sentence.awaiting_stores"),item:e.$t("messages.word.stores")},null,8,["title","item"]),s("div",y,[s("div",v,[s("div",N,[i(w,{keyword:e.keyword,placeholder:e.$t("messages.sentence.store_title")+" ..."},null,8,["keyword","placeholder"]),s("div",V,[s("table",B,[s("thead",null,[s("tr",null,[s("th",C,t(e.$t("messages.word.logo")),1),s("th",null,t(e.$t("messages.sentence.store_title")),1),s("th",null,t(e.$t("messages.word.user")),1),s("th",null,t(e.$t("messages.word.code")),1),s("th",null,t(e.$t("messages.word.status")),1),s("th",null,t(e.$t("messages.sentence.register_date")),1),o[0]||(o[0]=s("th",null,[s("i",{class:"ri-settings-4-line"})],-1))])]),s("tbody",null,[(n(!0),l(u,null,f(e.stores.data,a=>(n(),l("tr",{key:a.id},[s("td",null,[s("img",{width:"35",height:"35",class:"br-10 border-gray-2 shadow-1",src:a.get_logo,alt:a.name},null,8,j)]),s("td",null,[i(r(m),{class:"link",target:"_blank",href:e.route("admin.stores.show",a.uuid)},{default:d(()=>[c(t(a.name),1)]),_:2},1032,["href"])]),s("td",null,[i(r(m),{class:"link",href:e.route("admin.users.show",a.user.id)},{default:d(()=>[c(t(a.user.get_name),1)]),_:2},1032,["href"])]),s("td",null,t(a.uuid),1),s("td",null,[a.status=="active"?(n(),l("span",F,t(e.$t("messages.word.active")),1)):a.status=="banned"?(n(),l("span",P,t(e.$t("messages.word.banned")),1)):(n(),l("span",S,t(e.$t("messages.sentence.awaiting_verify")),1))]),s("td",null,t(a.jalali_created_at[0]),1),s("td",null,[i(r(m),{href:e.route("admin.stores.show",a.uuid),as:"button",class:"btn btn-light fs-8 lts-05"},{default:d(()=>[o[1]||(o[1]=s("i",{class:"ri-survey-line fs-8 me-2"},null,-1)),s("span",null,t(e.$t("messages.sentence.check_and_confirm")),1)]),_:2},1032,["href"])])]))),128))])])]),e.stores.data.length==0?(n(),l("div",A,[s("div",D,t(e.$t("messages.sentence.no_items_found")),1)])):p("",!0),i(b,{links:e.stores.links},null,8,["links"])])])])])],64))}});export{W as default};
