import{_ as h}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as p,c as d,o as i,a,b as s,u as n,m as g,h as m,t as e,F as u,r as b,j as c,f as r,P as _}from"./app-BidmlC59.js";import{_ as f}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{_ as w}from"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import{_ as v}from"./Files.vue_vue_type_script_setup_true_lang-RfZgjaKd.js";import"./simplebar.min-hRaQJumN.js";import"./useToastify-Bhe2cyz3.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";/* empty css                             *//* empty css              */import"./useCopyToClipboard-CsEpRQpU.js";import"./useRandomNum-BTw6623a.js";const $={class:"container-fluid"},y={class:"user-list list mb-4"},k={class:"card"},C={class:"card-body"},N={class:"table-responsive mb-4"},V={class:"table",style:{"min-width":"900px"}},j={class:"first-small"},B=["src","alt"],F={key:0},P={class:"badge bg-danger"},T={class:"dropdown"},D={class:"dropdown-menu shadow-smooth-2"},E=["data-bs-target"],L=["id"],S={class:"modal-dialog modal-dialog-centered"},q={class:"modal-content"},z={action:"#",style:{direction:"rtl"}},A={class:"modal-header"},G={class:"modal-title lts-05 fs-5"},H={class:"modal-footer"},I={key:0,class:"product-list-empty"},J={class:"lts-05"},ls=p({layout:h,__name:"Trash",props:{brands:{},keyword:{}},setup(K){return(t,o)=>(i(),d(u,null,[a(n(g),{title:t.$t("messages.title.brand_list_trash")},null,8,["title"]),s("div",$,[a(v,{title:t.$t("messages.word.trash")},null,8,["title"]),s("div",y,[s("div",k,[s("div",C,[a(w,{keyword:t.keyword,placeholder:t.$t("messages.sentence.brand_title")+" ..."},null,8,["keyword","placeholder"]),s("div",N,[s("table",V,[s("thead",null,[s("tr",null,[s("th",j,e(t.$t("messages.word.logo")),1),s("th",null,e(t.$t("messages.word.name")),1),s("th",null,e(t.$t("messages.sentence.product_count")),1),s("th",null,e(t.$t("messages.word.view")),1),s("th",null,e(t.$t("messages.word.status")),1),s("th",null,e(t.$t("messages.word.edit")),1),o[0]||(o[0]=s("th",{class:"first-small"},[s("i",{class:"ri-settings-4-line"})],-1))])]),s("tbody",null,[(i(!0),d(u,null,b(t.brands.data,l=>(i(),d("tr",{key:l.id},[s("td",null,[s("img",{width:"35",height:"35",class:"br-10 shadow-1",src:l.get_logo,alt:l.title},null,8,B)]),s("td",null,[s("strong",null,e(l.title),1)]),s("td",null,e(l.products_count),1),s("td",null,e(l.view_count),1),l.status=="deleted"?(i(),d("td",F,[s("span",P,e(t.$t("messages.word.deleted")),1)])):m("",!0),s("td",null,e(l.jalali_updated_at[3]),1),s("td",T,[o[4]||(o[4]=s("i",{class:"ri-more-2-fill","data-bs-toggle":"dropdown"},null,-1)),s("div",D,[s("ul",null,[s("li",null,[a(n(_),{class:"dropdown-item lts-05",href:t.route("admin.brands.destroy",l.slug),data:{status:"publish"},as:"button",method:"delete"},{default:c(()=>[o[1]||(o[1]=s("i",{class:"ri-corner-up-right-double-line"},null,-1)),r(" "+e(t.$t("messages.word.publish")),1)]),_:2},1032,["href"])]),s("li",null,[s("a",{class:"dropdown-item lts-05",href:"javascript:void(0)","data-bs-toggle":"modal","data-bs-target":"#remove-brand-"+l.id},[o[2]||(o[2]=s("i",{class:"ri-delete-bin-line"},null,-1)),r(" "+e(t.$t("messages.word.delete")),1)],8,E)])])]),s("div",{class:"modal fade",id:"remove-brand-"+l.id,tabindex:"-1","aria-hidden":"true"},[s("div",S,[s("div",q,[s("form",z,[s("div",A,[s("div",G,e(t.$t("messages.sentence.are_you_sure_delete_brand")),1),o[3]||(o[3]=s("button",{type:"button",class:"btn modal-close","data-bs-dismiss":"modal","aria-label":"Close"},[s("i",{class:"ri-close-line"})],-1))]),s("div",H,[a(n(_),{as:"button",href:t.route("admin.brands.destroy",l.slug),method:"delete",data:{status:"delete"},class:"btn btn-sm btn-danger px-3","data-bs-dismiss":"modal","aria-label":"Close"},{default:c(()=>[r(e(t.$t("messages.word.delete")),1)]),_:2},1032,["href"])])])])])],8,L)])]))),128))])])]),t.brands.data.length==0?(i(),d("div",I,[s("div",J,e(t.$t("messages.sentence.no_items_found")),1)])):m("",!0),a(f,{links:t.brands.links},null,8,["links"])])])])])],64))}});export{ls as default};
