import{_ as g}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as f,c as n,o as a,a as i,b as s,u as r,m as w,h as d,t,F as c,r as p,n as b,j as m,f as h,P as u}from"./app-BidmlC59.js";import{_ as y}from"./Files.vue_vue_type_script_setup_true_lang-RfZgjaKd.js";import{_ as k}from"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import{_ as $}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.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 v={class:"container-fluid"},j={class:"orders-list list"},B={class:"card"},G={class:"card-body"},N={class:"orders order-groups-list"},V={class:"table-responsive mb-4"},C={class:"table",style:{"min-width":"750px"}},P={class:"first-small white-space-nowrap"},F={class:"first-small white-space-nowrap"},D={class:"first-small white-space-nowrap"},E={class:"first-small white-space-nowrap"},L={class:"orders-badge"},S={class:"d-flex flex-column justify-content-center"},T={class:"lts-05 mb-1"},U={class:"fs-9 text-gray"},q={class:"fw-bold text-dark fs-8"},z={class:"lts-05"},A={class:"fs-9 text-gray"},H={key:0,class:"text-dark fw-bold fs-8"},I={class:"d-flex flex-column justify-content-center ms-4"},J={class:"status lts-05 mb-1"},K={key:0,class:"badge bg-info"},M={key:1,class:"badge bg-success"},O={key:2,class:"badge bg-success"},Q={key:3,class:"badge bg-danger"},R={key:4,class:"badge bg-danger"},W={class:"first-small white-space-nowrap"},X={class:"first-small white-space-nowrap"},Y={class:"first-small white-space-nowrap"},Z={key:0,class:"badge bg-purple"},x={key:1,class:"badge bg-success"},ss={class:"first-small white-space-nowrap lts-05 fs-8"},es={key:0,class:"cart-empty"},ts={class:"empty-content-icon"},as=["src"],ns={class:"empty-content-message text-center"},bs=f({layout:g,__name:"Processing",props:{orderGroups:{},keyword:{}},setup(os){return(e,_)=>(a(),n(c,null,[i(r(w),{title:e.$t("messages.title.processing_orders")},null,8,["title"]),s("div",v,[i(y,{title:e.$t("messages.word.processing"),item:e.$t("messages.word.orders")},null,8,["title","item"]),s("div",j,[s("div",B,[s("div",G,[s("div",N,[i(k,{keyword:e.keyword,placeholder:e.$t("messages.sentence.order_uuid")+" ..."},null,8,["keyword","placeholder"]),s("div",V,[s("table",C,[s("thead",null,[s("tr",null,[s("th",null,t(e.$t("messages.word.consignments")),1),s("th",P,t(e.$t("messages.sentence.order_uuid")),1),s("th",F,t(e.$t("messages.word.customer")),1),s("th",D,t(e.$t("messages.sentence.main_status")),1),s("th",E,t(e.$t("messages.sentence.registered_date")),1)])]),s("tbody",null,[(a(!0),n(c,null,p(e.orderGroups.data,l=>(a(),n("tr",{key:l.id},[s("td",L,[s("ul",null,[(a(!0),n(c,null,p(l.orders,o=>(a(),n("li",{key:o.id,class:"d-inline-flex align-items-center justify-content-between"},[s("div",S,[s("div",T,[s("span",U,t(e.$t("messages.sentence.consignment_uuid"))+": ",1),s("span",q,t(o.uuid),1)]),s("div",z,[s("span",A,t(e.$t("messages.sentence.send_by"))+": ",1),o.get_send_by==null?(a(),n("span",H,t(e.$t("messages.sentence.main_shop")),1)):(a(),b(r(u),{key:1,href:e.route("admin.stores.show",o.get_send_by.uuid),class:"link fw-bold lts-05 fs-8"},{default:m(()=>[h(t(o.get_send_by.name),1)]),_:2},1032,["href"]))])]),s("div",I,[s("div",J,[o.status=="registered"?(a(),n("span",K,t(e.$t("messages.word.processing")),1)):o.status=="sent"?(a(),n("span",M,t(e.$t("messages.word.sent")),1)):o.status=="delivered"?(a(),n("span",O,t(e.$t("messages.word.delivered")),1)):o.status=="cancelled"?(a(),n("span",Q,t(e.$t("messages.word.cancelled")),1)):o.status=="returned"?(a(),n("span",R,t(e.$t("messages.word.returned")),1)):d("",!0)]),i(r(u),{href:e.route("admin.orders.show",o.id),as:"button",class:"btn btn-outline-light pt-1 pb-1 lts-05"},{default:m(()=>[s("span",null,t(e.$t("messages.word.check")),1),_[0]||(_[0]=s("i",{class:"ri-arrow-left-s-fill"},null,-1))]),_:2},1032,["href"])])]))),128))])]),s("td",W,t(l.uuid),1),s("td",X,[i(r(u),{href:e.route("admin.users.show",l.user.id),class:"link fw-normal lts-05"},{default:m(()=>[h(t(l.user.get_name),1)]),_:2},1032,["href"])]),s("td",Y,[l.status=="processing"?(a(),n("span",Z,t(e.$t("messages.word.processing")),1)):l.status=="completed"?(a(),n("span",x,t(e.$t("messages.word.completed")),1)):d("",!0)]),s("td",ss,t(l.jalali_created_at[2]),1)]))),128))])])]),e.orderGroups.data.length==0?(a(),n("div",es,[s("div",ts,[s("img",{src:e.$page.props.appUrl+"/img/template/orders.svg",alt:""},null,8,as)]),s("div",ns,[s("p",null,t(e.$t("messages.sentence.no_items_found")),1)])])):d("",!0),i($,{links:e.orderGroups.links},null,8,["links"])])])])])])],64))}});export{bs as default};
