import{_ as h}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as g,q as b,c as d,o as a,a as i,b as s,u as n,m as f,h as m,t as e,F as u,p as w,g as v,f as r,x as $,j as c,P as _,T as y}from"./app-DJb_CRLj.js";import{_ as k}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import{_ as C}from"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import{_ as B}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 N={class:"container-fluid"},T={class:"product-list list mb-4"},V={class:"card"},j={class:"card-body"},D={class:"table-responsive mb-4"},F={class:"table",style:{"min-width":"900px"}},P={class:"first-small"},q=["src","alt"],E={key:0,class:"ri-star-s-fill vip-product"},L={class:"lts-05"},S={class:"badge bg-danger"},z={class:"dropdown"},A={class:"dropdown-menu shadow-smooth-2"},G=["data-bs-target"],H={class:"table-modals"},I=["id"],J={class:"modal-dialog modal-dialog-centered"},K={class:"modal-content"},M={style:{direction:"rtl"}},O={class:"modal-header"},Q={class:"modal-title lts-05 fs-5"},R={class:"modal-footer"},U={key:0,class:"product-list-empty"},W={class:"lts-05"},us=g({layout:h,__name:"Trash",props:{articles:{},keyword:{}},setup(X){return(t,l)=>{const p=b("tooltip");return a(),d(u,null,[i(n(f),{title:t.$t("messages.title.article_list_trash")},null,8,["title"]),s("div",N,[i(B,{title:t.$t("messages.word.trash")},null,8,["title"]),s("div",T,[s("div",V,[s("div",j,[i(C,{keyword:t.keyword,placeholder:t.$t("messages.word.title")+" "+t.$t("messages.word.article")+" ..."},null,8,["keyword","placeholder"]),s("div",D,[s("table",F,[s("thead",null,[s("tr",null,[s("th",P,e(t.$t("messages.word.image")),1),s("th",null,e(t.$t("messages.word.title")),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.last_update")),1),l[0]||(l[0]=s("th",{class:"first-small"},[s("i",{class:"ri-settings-4-line"})],-1))])]),s("tbody",null,[(a(!0),d(u,null,w(t.articles.data,o=>(a(),d("tr",{key:o.id},[s("td",null,[s("img",{class:"br-10",width:"35",height:"35",src:o.get_image.url,alt:o.title},null,8,q)]),v((a(),d("td",null,[r(e(o.title)+" ",1),o.editor_choice?(a(),d("i",E)):m("",!0)])),[[p,o.editor_choice?t.$t("messages.sentence.editor_choice"):null,void 0,{bottom:!0}]]),s("td",null,e(o.get_formatted_view_count),1),s("td",L,[s("span",S,e(t.$t("messages.word.deleted")),1)]),s("td",null,e(o.jalali_updated_at[2]),1),s("td",z,[l[4]||(l[4]=s("i",{class:"ri-more-2-fill","data-bs-toggle":"dropdown"},null,-1)),s("div",A,[s("ul",null,[s("li",null,[i(n(_),{href:t.route("admin.articles.destroy",o.slug),method:"delete",as:"button",data:{status:"publish"},class:"dropdown-item no-btn"},{default:c(()=>[l[1]||(l[1]=s("i",{class:"ri-spam-3-line"},null,-1)),r(" "+e(t.$t("messages.word.publish")),1)]),_:2},1032,["href"])]),s("li",null,[s("a",{href:"javascript:void(0)","data-bs-toggle":"modal","data-bs-target":"#remove-article-"+o.id,class:"dropdown-item no-btn"},[l[2]||(l[2]=s("i",{class:"ri-delete-bin-line"},null,-1)),r(" "+e(t.$t("messages.word.delete")+" "+t.$t("messages.word.permanently")),1)],8,G)])])]),(a(),$(y,{to:"body"},[s("div",H,[s("div",{class:"modal fade",id:"remove-article-"+o.id,tabindex:"-1","aria-hidden":"true"},[s("div",J,[s("div",K,[s("form",M,[s("div",O,[s("div",Q,e(t.$t("messages.sentence.are_yo_sure_delete_article")),1),l[3]||(l[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",R,[i(n(_),{as:"button",href:t.route("admin.articles.destroy",o.slug),method:"delete",data:{status:"deep_deleted"},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,I)])]))])]))),128))])])]),t.articles.data.length==0?(a(),d("div",U,[s("div",W,e(t.$t("messages.sentence.no_items_found")),1)])):m("",!0),i(k,{links:t.articles.links},null,8,["links"])])])])])],64)}}});export{us as default};
