import{_ as h}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as p,c as i,o as a,a as d,b as s,u as n,m as g,h as m,t as e,F as u,p as b,x as f,j as c,f as r,P as _,T as w}from"./app-DJb_CRLj.js";import{_ as v}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import{_ as y}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"},C={class:"user-list list mb-4"},B={class:"card"},N={class:"card-body"},T={class:"table-responsive mb-4"},V={class:"table",style:{"min-width":"900px"}},j={class:"first-small"},F=["src","alt"],P={key:0},D={class:"badge bg-danger"},E={class:"dropdown"},L={class:"dropdown-menu shadow-smooth-2"},S=["data-bs-target"],q={class:"table-modals"},z=["id"],A={class:"modal-dialog modal-dialog-centered"},G={class:"modal-content"},H={action:"#",style:{direction:"rtl"}},I={class:"modal-header"},J={class:"modal-title lts-05 fs-5"},K={class:"modal-footer"},M={key:0,class:"product-list-empty"},O={class:"lts-05"},is=p({layout:h,__name:"Trash",props:{brands:{},keyword:{}},setup(Q){return(t,o)=>(a(),i(u,null,[d(n(g),{title:t.$t("messages.title.brand_list_trash")},null,8,["title"]),s("div",k,[d($,{title:t.$t("messages.word.trash")},null,8,["title"]),s("div",C,[s("div",B,[s("div",N,[d(y,{keyword:t.keyword,placeholder:t.$t("messages.sentence.brand_title")+" ..."},null,8,["keyword","placeholder"]),s("div",T,[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,[(a(!0),i(u,null,b(t.brands.data,l=>(a(),i("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,F)]),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"?(a(),i("td",P,[s("span",D,e(t.$t("messages.word.deleted")),1)])):m("",!0),s("td",null,e(l.jalali_updated_at[3]),1),s("td",E,[o[4]||(o[4]=s("i",{class:"ri-more-2-fill","data-bs-toggle":"dropdown"},null,-1)),s("div",L,[s("ul",null,[s("li",null,[d(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,S)])])]),(a(),f(w,{to:"body"},[s("div",q,[s("div",{class:"modal fade",id:"remove-brand-"+l.id,tabindex:"-1","aria-hidden":"true"},[s("div",A,[s("div",G,[s("form",H,[s("div",I,[s("div",J,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",K,[d(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,z)])]))])]))),128))])])]),t.brands.data.length==0?(a(),i("div",M,[s("div",O,e(t.$t("messages.sentence.no_items_found")),1)])):m("",!0),d(v,{links:t.brands.links},null,8,["links"])])])])])],64))}});export{is as default};
