import{_ as g}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as f,c as o,o as a,a as i,b as s,u as d,m as w,h as r,t,F as c,p as _,x as b,j as m,f as h,P as p}from"./app-DJb_CRLj.js";import{_ as y}from"./Files.vue_vue_type_script_setup_true_lang-CRYWsXWh.js";import{_ as k}from"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import{_ as $}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.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 v={class:"container-fluid"},j={class:"orders-list list"},B={class:"card"},C={class:"card-body"},G={class:"orders order-groups-list"},N={class:"table-responsive mb-4"},V={class:"table",style:{"min-width":"750px"}},F={class:"first-small white-space-nowrap"},P={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"],os={class:"empty-content-message text-center"},ys=f({layout:g,__name:"Completed",props:{orderGroups:{},keyword:{}},setup(ns){return(e,u)=>(a(),o(c,null,[i(d(w),{title:e.$t("messages.title.completed_orders")},null,8,["title"]),s("div",v,[i(y,{title:e.$t("messages.word.completed"),item:e.$t("messages.word.orders")},null,8,["title","item"]),s("div",j,[s("div",B,[s("div",C,[s("div",G,[i(k,{keyword:e.keyword,placeholder:e.$t("messages.sentence.order_uuid")+" ..."},null,8,["keyword","placeholder"]),s("div",N,[s("table",V,[s("thead",null,[s("tr",null,[s("th",null,t(e.$t("messages.word.consignments")),1),s("th",F,t(e.$t("messages.sentence.order_uuid")),1),s("th",P,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),o(c,null,_(e.orderGroups.data,l=>(a(),o("tr",{key:l.id},[s("td",L,[s("ul",null,[(a(!0),o(c,null,_(l.orders,n=>(a(),o("li",{key:n.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(n.uuid),1)]),s("div",z,[s("span",A,t(e.$t("messages.sentence.send_by"))+": ",1),n.get_send_by==null?(a(),o("span",H,t(e.$t("messages.sentence.main_shop")),1)):(a(),b(d(p),{key:1,href:e.route("admin.stores.show",n.get_send_by.uuid),class:"link fw-bold lts-05 fs-8"},{default:m(()=>[h(t(n.get_send_by.name),1)]),_:2},1032,["href"]))])]),s("div",I,[s("div",J,[n.status=="registered"?(a(),o("span",K,t(e.$t("messages.word.processing")),1)):n.status=="sent"?(a(),o("span",M,t(e.$t("messages.word.sent")),1)):n.status=="delivered"?(a(),o("span",O,t(e.$t("messages.word.delivered")),1)):n.status=="cancelled"?(a(),o("span",Q,t(e.$t("messages.word.cancelled")),1)):n.status=="returned"?(a(),o("span",R,t(e.$t("messages.word.returned")),1)):r("",!0)]),i(d(p),{href:e.route("admin.orders.show",n.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),u[0]||(u[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(d(p),{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(),o("span",Z,t(e.$t("messages.word.processing")),1)):l.status=="completed"?(a(),o("span",x,t(e.$t("messages.word.completed")),1)):r("",!0)]),s("td",ss,t(l.jalali_created_at[2]),1)]))),128))])])]),e.orderGroups.data.length==0?(a(),o("div",es,[s("div",ts,[s("img",{src:e.$page.props.appUrl+"/img/template/orders.svg",alt:""},null,8,as)]),s("div",os,[s("p",null,t(e.$t("messages.sentence.no_items_found")),1)])])):r("",!0),i($,{links:e.orderGroups.links},null,8,["links"])])])])])])],64))}});export{ys as default};
