import{_ as c,a as u}from"./StoreLayout.vue_vue_type_script_setup_true_lang-B7aW7sSo.js";import{d as _,c as o,o as l,a as r,b as s,u as n,m as p,h as d,t,F as m,r as h,j as g,f,P as v}from"./app-BidmlC59.js";import{_ as y}from"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import{_ as b}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";/* empty css                             */import"./simplebar.min-hRaQJumN.js";/* empty css              */import"./useToastify-Bhe2cyz3.js";import"./useRandomNum-BTw6623a.js";import"./useCopyToClipboard-CsEpRQpU.js";import"./useNl2br-N6ZYQSPJ.js";const $={class:"container-fluid"},k={class:"orders-list list"},w={class:"card"},N={class:"card-body"},V={class:"orders"},B={class:"table-responsive mb-4"},C={class:"table",style:{"min-width":"1100px"}},j={class:"first-small"},D={key:0,class:"badge bg-success"},F={key:1,class:"badge bg-success"},P={key:2,class:"badge bg-success"},E={class:"lts-05 fs-8"},L={class:"first-small",style:{width:"150px"}},S={key:0,class:"cart-empty"},T={class:"empty-content-icon"},U=["src"],q={class:"empty-content-message text-center"},Z=_({layout:c,__name:"Delivered",props:{consignments:{},keyword:{}},setup(z){return(e,i)=>(l(),o(m,null,[r(n(p),{title:e.$t("messages.title.delivered_orders")},null,8,["title"]),s("div",$,[r(u,{title:e.$t("messages.word.delivered"),item:e.$t("messages.word.orders")},null,8,["title","item"]),s("div",k,[s("div",w,[s("div",N,[s("div",V,[r(y,{keyword:e.keyword,placeholder:e.$t("messages.sentence.consignment_uuid")+" ..."},null,8,["keyword","placeholder"]),s("div",B,[s("table",C,[s("thead",null,[s("tr",null,[s("th",null,t(e.$t("messages.sentence.order_uuid")),1),s("th",null,t(e.$t("messages.word.status")),1),s("th",null,t(e.$t("messages.sentence.delivered_date")),1),s("th",j,t(e.$t("messages.word.actions")),1)])]),s("tbody",null,[(l(!0),o(m,null,h(e.consignments.data,a=>(l(),o("tr",{key:a.id},[s("td",null,t(a.send_type=="direct"?a.order_uuid:a.uuid),1),s("td",null,[a.status=="delivered_to_main_storage"?(l(),o("span",D,t(e.$t("messages.sentence.delivered_to_main_storage")),1)):d("",!0),a.status=="sent_to_customer"?(l(),o("span",F,t(e.$t("messages.sentence.sent_to_customer")),1)):d("",!0),a.status=="delivered"?(l(),o("span",P,t(e.$t("messages.sentence.delivered_to_customer")),1)):d("",!0)]),s("td",E,t(a.jalali_updated_at[2]),1),s("td",L,[r(n(v),{href:e.route("seller.orders.show",a.id),as:"button",class:"btn btn-sm btn-outline-light pt-1 pb-1 lts-05"},{default:g(()=>[f(t(e.$t("messages.word.details"))+" ",1),i[0]||(i[0]=s("i",{class:"ri-arrow-left-s-fill"},null,-1))]),_:2},1032,["href"])])]))),128))])])]),e.consignments.data.length==0?(l(),o("div",S,[s("div",T,[s("img",{src:e.$page.props.appUrl+"/img/template/orders.svg",alt:""},null,8,U)]),s("div",q,[s("p",null,t(e.$t("messages.sentence.no_items_found")),1)])])):d("",!0),r(b,{links:e.consignments.links},null,8,["links"])])])])])])],64))}});export{Z as default};
