improve the performance of orders page... enhance the user experience by adding circular instead of no products during the loading... and show more information not only the existing one like type...
[{"id":221,"user_id":null,"status":"On Way","notes":"","full_name":"Semaa","governorate":"saladin","city":"Tikrit","address":"Tikrit","closest_point":"","phone_number":"07724680896","type":"","created_at":"2024-09-24T17:31:39.063Z","coupon_id":null,"updated_at":"2024-09-24T18:33:39.341Z","items":[{"id":43,"cart_id":221,"product_id":966,"size_id":2136,"color_id":null,"quantity":1},{"id":44,"cart_id":221,"product_id":542,"size_id":1914,"color_id":null,"quantity":1},{"id":45,"cart_id":221,"product_id":545,"size_id":1913,"color_id":null,"quantity":1},{"id":46,"cart_id":221,"product_id":565,"size_id":1884,"color_id":null,"quantity":1},{"id":47,"cart_id":221,"product_id":727,"size_id":1110,"color_id":null,"quantity":1}],"coupon":null},{"id":220,"user_id":null,"status":"On Way","notes":"","full_name":"Raghad","governorate":"baghdad","city":"بغداد","address":"الراشدية ","closest_point":"المراسمة  قرب افران تبارك الرحمن ","phone_number":"07717654315","type":"home","created_at":"2024-09-24T16:59:50.124Z","coupon_id":5,"updated_at":"2024-09-24T18:13:01.517Z","items":[{"id":39,"cart_id":220,"product_id":451,"size_id":1688,"color_id":null,"quantity":1},{"id":40,"cart_id":220,"product_id":890,"size_id":2053,"color_id":null,"quantity":2},{"id":41,"cart_id":220,"product_id":220,"size_id":1069,"color_id":null,"quantity":1},{"id":42,"cart_id":220,"product_id":219,"size_id":1713,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":219,"user_id":null,"status":"On Way","notes":"","full_name":"ملاك حاتم ","governorate":"baghdad","city":"زيونة","address":"زيونة ٧١٤ شارع رقم ١","closest_point":"عمارة بشار بركر","phone_number":"07710380001","type":"home","created_at":"2024-09-24T15:40:55.894Z","coupon_id":5,"updated_at":"2024-09-24T16:09:04.365Z","items":[{"id":37,"cart_id":219,"product_id":967,"size_id":2137,"color_id":null,"quantity":1},{"id":38,"cart_id":219,"product_id":751,"size_id":1150,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":218,"user_id":null,"status":"On Way","notes":"يوصل المنتج بارد","full_name":"Ilham Mohammed","governorate":"babil","city":"حي المهندسين","address":"قرب المستوصف الصحي","closest_point":"","phone_number":"07723955032","type":"","created_at":"2024-09-24T10:14:05.073Z","coupon_id":5,"updated_at":"2024-09-24T16:14:09.111Z","items":[{"id":36,"cart_id":218,"product_id":415,"size_id":1609,"color_id":null,"quantity":2}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":217,"user_id":null,"status":"On Way","notes":"","full_name":"S1araakram سارة","governorate":"baghdad","city":"بغداد","address":"زعفرانية دور الشرطة شارع الكهرباء ","closest_point":"","phone_number":"07755591528","type":"","created_at":"2024-09-24T09:46:20.033Z","coupon_id":5,"updated_at":"2024-09-24T16:14:39.690Z","items":[{"id":34,"cart_id":217,"product_id":886,"size_id":2049,"color_id":null,"quantity":1},{"id":35,"cart_id":217,"product_id":192,"size_id":1352,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":216,"user_id":null,"status":"On Way","notes":"الرجاء عدم تعرض المنتجات للحرارة عند التوصيل ","full_name":"Ameer mansoor","governorate":"najaf","city":"النجف","address":"النجف / حي الجامعة / خلف جامع ابن كشكول","closest_point":"خلف جامع ابن كشكول","phone_number":"07804270704","type":"","created_at":"2024-09-23T20:52:00.662Z","coupon_id":5,"updated_at":"2024-09-24T16:23:45.640Z","items":[{"id":31,"cart_id":216,"product_id":329,"size_id":1839,"color_id":null,"quantity":1},{"id":32,"cart_id":216,"product_id":913,"size_id":2079,"color_id":null,"quantity":1},{"id":33,"cart_id":216,"product_id":728,"size_id":1111,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":215,"user_id":null,"status":"On Way","notes":"","full_name":"noor","governorate":"karbala","city":"Karbala","address":"حي الحسين ، قرب مشروع مزاج ","closest_point":"","phone_number":"07814536062","type":"","created_at":"2024-09-23T20:20:48.887Z","coupon_id":5,"updated_at":"2024-09-24T16:31:48.839Z","items":[{"id":29,"cart_id":215,"product_id":369,"size_id":1394,"color_id":null,"quantity":1},{"id":30,"cart_id":215,"product_id":189,"size_id":1343,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":214,"user_id":null,"status":"On Way","notes":"متواجدين بكل الايام عدا يوم الخميس والجمعه","full_name":"لينا نهاد","governorate":"karbala","city":"كربلاء","address":"مستشفى وارث للاورام","closest_point":"داخل المستشفى","phone_number":"07713390896","type":"work","created_at":"2024-09-23T20:19:28.390Z","coupon_id":5,"updated_at":"2024-09-24T16:26:26.822Z","items":[{"id":22,"cart_id":214,"product_id":904,"size_id":2068,"color_id":null,"quantity":2},{"id":23,"cart_id":214,"product_id":865,"size_id":1949,"color_id":null,"quantity":1},{"id":24,"cart_id":214,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":25,"cart_id":214,"product_id":456,"size_id":1668,"color_id":null,"quantity":1},{"id":26,"cart_id":214,"product_id":249,"size_id":1050,"color_id":null,"quantity":3},{"id":27,"cart_id":214,"product_id":206,"size_id":1055,"color_id":null,"quantity":2},{"id":28,"cart_id":214,"product_id":367,"size_id":1702,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":213,"user_id":null,"status":"On Way","notes":"التوصيل الثلاثاء ساعه 5 عصراً 🙏🏻🙏🏻","full_name":"Zahra Alkfaje","governorate":"karbala","city":"الروضتين ","address":"محل اسطنبول للمفروشات ","closest_point":"قرب مشروع العتبه العباسيه ","phone_number":"771 338 9266","type":"work","created_at":"2024-09-23T17:57:14.727Z","coupon_id":5,"updated_at":"2024-09-23T18:22:30.571Z","items":[{"id":19,"cart_id":213,"product_id":919,"size_id":2084,"color_id":null,"quantity":1},{"id":20,"cart_id":213,"product_id":382,"size_id":1729,"color_id":null,"quantity":1},{"id":21,"cart_id":213,"product_id":631,"size_id":1807,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":11,"user_id":null,"status":"On Way","notes":"","full_name":"Rousl","governorate":"qadisiyyah","city":"الديوانية ","address":" حي الجزائر شارع المطاعم","closest_point":"الفرع المقابل ل مأكولات القمه ","phone_number":"+964 782 353 2832","type":"","created_at":"2024-09-23T15:56:45.548Z","coupon_id":null,"updated_at":"2024-09-23T16:08:43.201Z","items":[{"id":13,"cart_id":11,"product_id":7,"size_id":1428,"color_id":null,"quantity":1},{"id":14,"cart_id":11,"product_id":673,"size_id":1005,"color_id":null,"quantity":1}],"coupon":null},{"id":9,"user_id":null,"status":"On Way","notes":"","full_name":"Haya","governorate":"baghdad","city":"حي العامل ","address":"•","closest_point":"بعد جسر ٧ نيسان","phone_number":"07810122332","type":"home","created_at":"2024-09-23T14:53:13.663Z","coupon_id":5,"updated_at":"2024-09-23T16:00:27.325Z","items":[{"id":10,"cart_id":9,"product_id":194,"size_id":1324,"color_id":null,"quantity":1},{"id":11,"cart_id":9,"product_id":326,"size_id":1612,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":8,"user_id":null,"status":"On Way","notes":"الاستلام قبل الساعه ال٦ المغرب","full_name":"Zainab","governorate":"baghdad","city":"السبع ابكار ","address":"السبع ابكار","closest_point":"قرب ماركت التوت الاحمر ","phone_number":"07727489945","type":"home","created_at":"2024-09-23T08:34:36.509Z","coupon_id":5,"updated_at":"2024-09-23T17:09:52.654Z","items":[{"id":4,"cart_id":8,"product_id":191,"size_id":1353,"color_id":null,"quantity":1},{"id":5,"cart_id":8,"product_id":367,"size_id":1702,"color_id":null,"quantity":1},{"id":6,"cart_id":8,"product_id":464,"size_id":2031,"color_id":null,"quantity":1},{"id":7,"cart_id":8,"product_id":58,"size_id":58,"color_id":null,"quantity":1},{"id":8,"cart_id":8,"product_id":631,"size_id":1806,"color_id":null,"quantity":1},{"id":9,"cart_id":8,"product_id":100,"size_id":791,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":203,"user_id":null,"status":"On Way","notes":null,"full_name":"laian","governorate":"baghdad","city":"بغداد","address":"حي البنوك","closest_point":"تحت جسر البنوك الجديد","phone_number":"0770 059 8697","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":571,"cart_id":203,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":572,"cart_id":203,"product_id":454,"size_id":1665,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":209,"user_id":null,"status":"On Way","notes":null,"full_name":"ايمان","governorate":"basra","city":"التنومه","address":"الكباسي","closest_point":"شارع استاذ رياض التميمي","phone_number":"07733434119","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":608,"cart_id":209,"product_id":1000,"size_id":2169,"color_id":null,"quantity":1},{"id":609,"cart_id":209,"product_id":195,"size_id":1412,"color_id":null,"quantity":1},{"id":610,"cart_id":209,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":611,"cart_id":209,"product_id":88,"size_id":1824,"color_id":null,"quantity":1},{"id":612,"cart_id":209,"product_id":1022,"size_id":2192,"color_id":null,"quantity":1},{"id":613,"cart_id":209,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":614,"cart_id":209,"product_id":911,"size_id":2077,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":207,"user_id":null,"status":"On Way","notes":null,"full_name":"Noor","governorate":"baghdad","city":"بغداد","address":"الدوره","closest_point":"ابو طياره","phone_number":"0739610888","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":599,"cart_id":207,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":600,"cart_id":207,"product_id":978,"size_id":2149,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":206,"user_id":null,"status":"On Way","notes":null,"full_name":"حنين احمد","governorate":"baghdad","city":"بغداد","address":"الحارثيه","closest_point":"فرع مقابل مطعم ستي سنتر","phone_number":"07707943160","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":595,"cart_id":206,"product_id":195,"size_id":1412,"color_id":null,"quantity":1},{"id":596,"cart_id":206,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":597,"cart_id":206,"product_id":437,"size_id":1159,"color_id":null,"quantity":1},{"id":598,"cart_id":206,"product_id":398,"size_id":1775,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":205,"user_id":null,"status":"On Way","notes":null,"full_name":"Marwa Qassem","governorate":"baghdad","city":"بغداد","address":"الرصافة / القاهرة","closest_point":"مقابل جامع غفار ذنوب / فرع صيدلية ايمان العضاض","phone_number":"0771 745 7134","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":579,"cart_id":205,"product_id":947,"size_id":2113,"color_id":null,"quantity":1},{"id":580,"cart_id":205,"product_id":831,"size_id":1817,"color_id":null,"quantity":1},{"id":581,"cart_id":205,"product_id":965,"size_id":2135,"color_id":null,"quantity":1},{"id":582,"cart_id":205,"product_id":514,"size_id":1931,"color_id":null,"quantity":1},{"id":583,"cart_id":205,"product_id":515,"size_id":1932,"color_id":null,"quantity":1},{"id":584,"cart_id":205,"product_id":269,"size_id":344,"color_id":null,"quantity":1},{"id":585,"cart_id":205,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":586,"cart_id":205,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":587,"cart_id":205,"product_id":914,"size_id":2080,"color_id":null,"quantity":1},{"id":588,"cart_id":205,"product_id":907,"size_id":2072,"color_id":null,"quantity":1},{"id":589,"cart_id":205,"product_id":386,"size_id":1635,"color_id":null,"quantity":1},{"id":590,"cart_id":205,"product_id":378,"size_id":1646,"color_id":null,"quantity":1},{"id":591,"cart_id":205,"product_id":337,"size_id":1479,"color_id":null,"quantity":1},{"id":592,"cart_id":205,"product_id":973,"size_id":2143,"color_id":null,"quantity":1},{"id":593,"cart_id":205,"product_id":311,"size_id":2032,"color_id":null,"quantity":1},{"id":594,"cart_id":205,"product_id":898,"size_id":2061,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":204,"user_id":null,"status":"On Way","notes":"كل الايام متاحه","full_name":"Reeman","governorate":"najaf","city":"عراق","address":"حي الزهراء-قرب مطعم ثابت-مقابيل اسواق الكريطي.","closest_point":"شارع عام مقابيل اسواق الكريطي🙂","phone_number":"07806288072","type":"home","created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":573,"cart_id":204,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":574,"cart_id":204,"product_id":722,"size_id":1262,"color_id":null,"quantity":1},{"id":575,"cart_id":204,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":576,"cart_id":204,"product_id":611,"size_id":854,"color_id":null,"quantity":1},{"id":577,"cart_id":204,"product_id":674,"size_id":1269,"color_id":null,"quantity":1},{"id":578,"cart_id":204,"product_id":823,"size_id":1818,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":202,"user_id":null,"status":"On Way","notes":null,"full_name":"Dr.Alaa salem","governorate":"nineveh","city":"قضاء الحمدانية","address":"نينوى  قضاء الحمدانية  قرب مستشفى الحمدانية","closest_point":"قرب مستشفى الحمدانية","phone_number":"07701727590","type":null,"created_at":"2024-09-22T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":566,"cart_id":202,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":567,"cart_id":202,"product_id":189,"size_id":1343,"color_id":null,"quantity":1},{"id":568,"cart_id":202,"product_id":254,"size_id":1714,"color_id":null,"quantity":1},{"id":569,"cart_id":202,"product_id":326,"size_id":1612,"color_id":null,"quantity":1},{"id":570,"cart_id":202,"product_id":487,"size_id":1997,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":192,"user_id":null,"status":"On Way","notes":null,"full_name":"زينب علي جاسم","governorate":"muthanna","city":"السماوة","address":"السماوة حي الشهداء الثاني على طريق المهدي","closest_point":null,"phone_number":"07806680714","type":null,"created_at":"2024-09-21T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":530,"cart_id":192,"product_id":660,"size_id":1434,"color_id":null,"quantity":2},{"id":531,"cart_id":192,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":532,"cart_id":192,"product_id":287,"size_id":1777,"color_id":null,"quantity":1}],"coupon":null},{"id":201,"user_id":null,"status":"On Way","notes":null,"full_name":"S1araakram سارة","governorate":"baghdad","city":"بغداد","address":"زعفرانية دور الشرطة شارع الكهرباء","closest_point":null,"phone_number":"07755591528","type":null,"created_at":"2024-09-21T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":564,"cart_id":201,"product_id":959,"size_id":2125,"color_id":null,"quantity":1},{"id":565,"cart_id":201,"product_id":1022,"size_id":2192,"color_id":null,"quantity":1}],"coupon":null},{"id":200,"user_id":null,"status":"On Way","notes":null,"full_name":"فاطمة جميل","governorate":"baghdad","city":"بغداد","address":"كراده/ بعد حلويات ابو عفيف بفرعين","closest_point":"بعد حلويات ابو عفيف بفرعين","phone_number":"0770 589 6349","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":558,"cart_id":200,"product_id":931,"size_id":2095,"color_id":null,"quantity":1},{"id":559,"cart_id":200,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":560,"cart_id":200,"product_id":961,"size_id":2129,"color_id":null,"quantity":1},{"id":561,"cart_id":200,"product_id":345,"size_id":424,"color_id":null,"quantity":1},{"id":562,"cart_id":200,"product_id":256,"size_id":936,"color_id":null,"quantity":1},{"id":563,"cart_id":200,"product_id":1022,"size_id":2192,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":197,"user_id":null,"status":"On Way","notes":null,"full_name":"zainab saad","governorate":"wasit","city":"kut","address":"الهورة ، شارع التربية","closest_point":"بالقرب من جامع ابو الفضل العباس","phone_number":"07816026637","type":null,"created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":545,"cart_id":197,"product_id":377,"size_id":1728,"color_id":null,"quantity":1},{"id":546,"cart_id":197,"product_id":938,"size_id":2101,"color_id":null,"quantity":1},{"id":547,"cart_id":197,"product_id":916,"size_id":2082,"color_id":null,"quantity":1},{"id":548,"cart_id":197,"product_id":247,"size_id":1963,"color_id":null,"quantity":1},{"id":549,"cart_id":197,"product_id":228,"size_id":1953,"color_id":null,"quantity":1},{"id":550,"cart_id":197,"product_id":956,"size_id":2122,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":195,"user_id":null,"status":"On Way","notes":null,"full_name":"Zainab Hussien","governorate":"saladin","city":"صلاح الدين _العلم","address":"صلاح الدين _العلم","closest_point":"جامع الطياوي","phone_number":"‭+٩٦٤ ٧٧٠ ٩١٩ ٤٧٨٣‬","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-22T00:00:00.000Z","items":[{"id":541,"cart_id":195,"product_id":876,"size_id":1977,"color_id":null,"quantity":1},{"id":542,"cart_id":195,"product_id":788,"size_id":1236,"color_id":null,"quantity":2},{"id":543,"cart_id":195,"product_id":935,"size_id":2104,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":194,"user_id":null,"status":"On Way","notes":null,"full_name":"Fatiam","governorate":"baghdad","city":"Iraq","address":"زيونة قرب شركة النيزك","closest_point":"قرب شركة النيزك","phone_number":"07727704120","type":null,"created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":536,"cart_id":194,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":537,"cart_id":194,"product_id":756,"size_id":1164,"color_id":null,"quantity":1},{"id":538,"cart_id":194,"product_id":575,"size_id":2036,"color_id":null,"quantity":1},{"id":539,"cart_id":194,"product_id":626,"size_id":884,"color_id":null,"quantity":1},{"id":540,"cart_id":194,"product_id":620,"size_id":878,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":193,"user_id":null,"status":"On Way","notes":null,"full_name":"Nareenarin","governorate":"dohuk","city":"duhok","address":"malta near viking restaurant","closest_point":"ahmed maronsi mosque","phone_number":"07516012727","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":533,"cart_id":193,"product_id":204,"size_id":1053,"color_id":null,"quantity":1},{"id":534,"cart_id":193,"product_id":249,"size_id":1050,"color_id":null,"quantity":1},{"id":535,"cart_id":193,"product_id":222,"size_id":1791,"color_id":null,"quantity":1}],"coupon":null},{"id":191,"user_id":null,"status":"On Way","notes":null,"full_name":"علا كريم","governorate":"basra","city":"Basra","address":"شارع البهو","closest_point":"مقابل العاب الفيصل","phone_number":"9647716600721","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":524,"cart_id":191,"product_id":415,"size_id":1609,"color_id":null,"quantity":1},{"id":525,"cart_id":191,"product_id":892,"size_id":2055,"color_id":null,"quantity":1},{"id":526,"cart_id":191,"product_id":1016,"size_id":2186,"color_id":null,"quantity":1},{"id":527,"cart_id":191,"product_id":1014,"size_id":2184,"color_id":null,"quantity":1},{"id":528,"cart_id":191,"product_id":214,"size_id":1063,"color_id":null,"quantity":2},{"id":529,"cart_id":191,"product_id":211,"size_id":1066,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":190,"user_id":null,"status":"On Way","notes":null,"full_name":"بلقيس","governorate":"basra","city":"البصرة","address":"الجمعيات","closest_point":"قرب مستشفى ابن البيطار","phone_number":"07827020002","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":521,"cart_id":190,"product_id":194,"size_id":1324,"color_id":null,"quantity":1},{"id":522,"cart_id":190,"product_id":27,"size_id":31,"color_id":null,"quantity":1},{"id":523,"cart_id":190,"product_id":100,"size_id":791,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":189,"user_id":null,"status":"On Way","notes":null,"full_name":"Sama Mohammed","governorate":"baghdad","city":"بغداد","address":"العامريه شارع السفارات بصف مدرسه بدر البدور","closest_point":null,"phone_number":"+964 771 042 0698","type":null,"created_at":"2024-09-21T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":519,"cart_id":189,"product_id":148,"size_id":1801,"color_id":null,"quantity":1},{"id":520,"cart_id":189,"product_id":173,"size_id":1832,"color_id":null,"quantity":1}],"coupon":null},{"id":188,"user_id":null,"status":"On Way","notes":null,"full_name":"سمر","governorate":"qadisiyyah","city":"الديوانيه","address":"ام الخيل","closest_point":"جامع إبراهيم الخليل","phone_number":"07811824031","type":"home","created_at":"2024-09-21T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":515,"cart_id":188,"product_id":940,"size_id":2106,"color_id":null,"quantity":1},{"id":516,"cart_id":188,"product_id":356,"size_id":2034,"color_id":null,"quantity":1},{"id":517,"cart_id":188,"product_id":178,"size_id":1796,"color_id":null,"quantity":1},{"id":518,"cart_id":188,"product_id":889,"size_id":2052,"color_id":null,"quantity":1}],"coupon":null},{"id":175,"user_id":null,"status":"On Way","notes":null,"full_name":"Noor Altaha","governorate":"basra","city":"Basra","address":"البصرة حي الاساتذة مقابل جامع السهلاني","closest_point":"صالون الوردة البيضاء ، رقم الدار ٣٢","phone_number":"783 306 7429","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":464,"cart_id":175,"product_id":466,"size_id":2011,"color_id":null,"quantity":1},{"id":465,"cart_id":175,"product_id":369,"size_id":1394,"color_id":null,"quantity":1},{"id":466,"cart_id":175,"product_id":148,"size_id":1801,"color_id":null,"quantity":1},{"id":467,"cart_id":175,"product_id":24,"size_id":587,"color_id":null,"quantity":1},{"id":468,"cart_id":175,"product_id":615,"size_id":867,"color_id":null,"quantity":1},{"id":469,"cart_id":175,"product_id":956,"size_id":2122,"color_id":null,"quantity":1},{"id":470,"cart_id":175,"product_id":610,"size_id":856,"color_id":null,"quantity":1},{"id":471,"cart_id":175,"product_id":683,"size_id":1258,"color_id":null,"quantity":1},{"id":472,"cart_id":175,"product_id":959,"size_id":2125,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":187,"user_id":null,"status":"On Way","notes":null,"full_name":"Fatima","governorate":"najaf","city":"Najaf","address":"نجف شارع غدير كرامة","closest_point":"حلويات رويالRoyal sweet","phone_number":"07833718334","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":512,"cart_id":187,"product_id":730,"size_id":1115,"color_id":null,"quantity":1},{"id":513,"cart_id":187,"product_id":989,"size_id":2160,"color_id":null,"quantity":1},{"id":514,"cart_id":187,"product_id":904,"size_id":2068,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":186,"user_id":null,"status":"On Way","notes":null,"full_name":"نورا  عبد الجبار","governorate":"basra","city":"Basra","address":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","closest_point":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","phone_number":"+9647703290438","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":509,"cart_id":186,"product_id":773,"size_id":1242,"color_id":null,"quantity":1},{"id":510,"cart_id":186,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":511,"cart_id":186,"product_id":301,"size_id":1738,"color_id":null,"quantity":1}],"coupon":null},{"id":184,"user_id":null,"status":"On Way","notes":"التوصيل غدا","full_name":"karam karam","governorate":"baghdad","city":"Baghdad","address":"السيديه","closest_point":"الشارع التجاري","phone_number":"07712972565","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":505,"cart_id":184,"product_id":1004,"size_id":2174,"color_id":null,"quantity":1},{"id":506,"cart_id":184,"product_id":461,"size_id":1675,"color_id":null,"quantity":1},{"id":507,"cart_id":184,"product_id":242,"size_id":1420,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":183,"user_id":null,"status":"On Way","notes":null,"full_name":"غسق(Ventham__)","governorate":"baghdad","city":"بغداد-البياع","address":"البياع مقابل التعاون هايبر ماركت الشارع الخدمي","closest_point":"قبل صعدة جسر ام الطبول","phone_number":"0775 530 1718","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":496,"cart_id":183,"product_id":467,"size_id":1706,"color_id":null,"quantity":1},{"id":497,"cart_id":183,"product_id":205,"size_id":1051,"color_id":null,"quantity":1},{"id":498,"cart_id":183,"product_id":281,"size_id":1692,"color_id":null,"quantity":2},{"id":499,"cart_id":183,"product_id":219,"size_id":1713,"color_id":null,"quantity":1},{"id":500,"cart_id":183,"product_id":152,"size_id":1834,"color_id":null,"quantity":1},{"id":501,"cart_id":183,"product_id":149,"size_id":1826,"color_id":null,"quantity":1},{"id":502,"cart_id":183,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":503,"cart_id":183,"product_id":454,"size_id":1665,"color_id":null,"quantity":1},{"id":504,"cart_id":183,"product_id":822,"size_id":1820,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":182,"user_id":null,"status":"On Way","notes":"الاحد عندي دوام فلازم العصر او بالليل","full_name":"تقى علي","governorate":"baghdad","city":"بغداد","address":"المسرح الوطني","closest_point":"فرع مشويات ابو علي","phone_number":"07809487143","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":495,"cart_id":182,"product_id":388,"size_id":1632,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":181,"user_id":null,"status":"On Way","notes":null,"full_name":"منار","governorate":"baghdad","city":"بغداد","address":"الامين الثانية","closest_point":"قرب صيدلية العلاج الامين","phone_number":"07823838992","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":487,"cart_id":181,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":488,"cart_id":181,"product_id":391,"size_id":1638,"color_id":null,"quantity":1},{"id":489,"cart_id":181,"product_id":34,"size_id":790,"color_id":null,"quantity":1},{"id":490,"cart_id":181,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":491,"cart_id":181,"product_id":943,"size_id":2109,"color_id":null,"quantity":1},{"id":492,"cart_id":181,"product_id":1001,"size_id":2170,"color_id":null,"quantity":1},{"id":493,"cart_id":181,"product_id":103,"size_id":793,"color_id":null,"quantity":1},{"id":494,"cart_id":181,"product_id":978,"size_id":2149,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":180,"user_id":null,"status":"On Way","notes":null,"full_name":"1 p","governorate":"basra","city":"الجنينة","address":"شارع الجامع","closest_point":null,"phone_number":"0782 553 7567","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":483,"cart_id":180,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":484,"cart_id":180,"product_id":611,"size_id":854,"color_id":null,"quantity":1},{"id":485,"cart_id":180,"product_id":49,"size_id":893,"color_id":null,"quantity":1},{"id":486,"cart_id":180,"product_id":892,"size_id":2055,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":179,"user_id":null,"status":"On Way","notes":null,"full_name":"Alin ali","governorate":"dohuk","city":"Malta","address":"قرب قاعة جوان","closest_point":"قرب whaee centre","phone_number":"07706946957","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":480,"cart_id":179,"product_id":959,"size_id":2125,"color_id":null,"quantity":1},{"id":481,"cart_id":179,"product_id":894,"size_id":2057,"color_id":null,"quantity":1},{"id":482,"cart_id":179,"product_id":639,"size_id":1757,"color_id":null,"quantity":1}],"coupon":null},{"id":174,"user_id":null,"status":"On Way","notes":null,"full_name":"رقيه احمد","governorate":"muthanna","city":"المثنى","address":"الجربوعيه الثالثه","closest_point":"قرب بوابة مجمع لؤلؤه ساوه","phone_number":"07811600129","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":461,"cart_id":174,"product_id":487,"size_id":1997,"color_id":null,"quantity":1},{"id":462,"cart_id":174,"product_id":631,"size_id":1806,"color_id":null,"quantity":1},{"id":463,"cart_id":174,"product_id":961,"size_id":2131,"color_id":null,"quantity":1}],"coupon":null},{"id":178,"user_id":null,"status":"On Way","notes":"التوصيل صباحاً","full_name":"Taif","governorate":"baghdad","city":"الزعفرانية","address":"شارع نادي الشباب الرياضي","closest_point":"ثاني فرع","phone_number":"07770356038","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":477,"cart_id":178,"product_id":940,"size_id":2106,"color_id":null,"quantity":1},{"id":478,"cart_id":178,"product_id":24,"size_id":587,"color_id":null,"quantity":1},{"id":479,"cart_id":178,"product_id":582,"size_id":1979,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":177,"user_id":null,"status":"On Way","notes":null,"full_name":"عبير","governorate":"qadisiyyah","city":"الديوانية","address":"الاسكان حي الزهراء","closest_point":"مجاور المعهد التقني الباب الجديد","phone_number":"‭+964 781 825 4036‬","type":"home","created_at":"2024-09-20T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":475,"cart_id":177,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":476,"cart_id":177,"product_id":1000,"size_id":2169,"color_id":null,"quantity":1}],"coupon":null},{"id":176,"user_id":null,"status":"On Way","notes":null,"full_name":"بتول خليل","governorate":"baghdad","city":"حي تونس افاق عربية","address":"حي تونس افاق عربية","closest_point":"الفرع المقابيل صيدلية سعد عبدالرزاق","phone_number":"07740488370","type":null,"created_at":"2024-09-20T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":473,"cart_id":176,"product_id":380,"size_id":1717,"color_id":null,"quantity":1},{"id":474,"cart_id":176,"product_id":565,"size_id":1884,"color_id":null,"quantity":1}],"coupon":null},{"id":160,"user_id":null,"status":"On Way","notes":null,"full_name":"نورا  عبد الجبار","governorate":"basra","city":"Basra","address":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","closest_point":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","phone_number":"+9647703290438","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":415,"cart_id":160,"product_id":340,"size_id":1614,"color_id":null,"quantity":1},{"id":416,"cart_id":160,"product_id":415,"size_id":1609,"color_id":null,"quantity":1}],"coupon":null},{"id":120,"user_id":null,"status":"On Way","notes":null,"full_name":"بسمله محمد","governorate":"baghdad","city":"بغداد","address":"حي الخضراء","closest_point":"المنقل شارع الجمعيه","phone_number":"07732377383","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":312,"cart_id":120,"product_id":851,"size_id":1718,"color_id":null,"quantity":2},{"id":313,"cart_id":120,"product_id":434,"size_id":1157,"color_id":null,"quantity":1},{"id":314,"cart_id":120,"product_id":330,"size_id":1153,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":126,"user_id":null,"status":"On Way","notes":"التوصيل يكون عصراً","full_name":"Sara satar","governorate":"karbala","city":"حي السلام","address":"مجمع السلام التربوي","closest_point":"شارع المدارس","phone_number":"07749070364","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":322,"cart_id":126,"product_id":651,"size_id":1779,"color_id":null,"quantity":1},{"id":323,"cart_id":126,"product_id":409,"size_id":1690,"color_id":null,"quantity":1},{"id":324,"cart_id":126,"product_id":641,"size_id":1857,"color_id":null,"quantity":1},{"id":325,"cart_id":126,"product_id":83,"size_id":862,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":127,"user_id":null,"status":"On Way","notes":"أتواجد بالبيت بعد الساعه اربعه ونص العصر","full_name":"فاطمه مهند","governorate":"baghdad","city":"بياع","address":"شارع ١٣","closest_point":"اللجان الطبيه في الكرخ","phone_number":"07707861373","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":326,"cart_id":127,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":327,"cart_id":127,"product_id":523,"size_id":1925,"color_id":null,"quantity":1},{"id":328,"cart_id":127,"product_id":799,"size_id":1276,"color_id":null,"quantity":1},{"id":329,"cart_id":127,"product_id":534,"size_id":813,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":129,"user_id":null,"status":"On Way","notes":null,"full_name":"لينه احمد","governorate":"baghdad","city":"بغداد","address":"العطيفية بالقرب من سيطرة عبد محسن","closest_point":null,"phone_number":"+964 771 704 0037","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":333,"cart_id":129,"product_id":901,"size_id":2064,"color_id":null,"quantity":1},{"id":334,"cart_id":129,"product_id":379,"size_id":1643,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":130,"user_id":null,"status":"On Way","notes":null,"full_name":"نور احمد","governorate":"baghdad","city":"شارع فلسطين","address":"قرب كلية الرافدين","closest_point":"قرب كلية الرافدين","phone_number":"07712532596","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":335,"cart_id":130,"product_id":907,"size_id":2072,"color_id":null,"quantity":1},{"id":336,"cart_id":130,"product_id":673,"size_id":1005,"color_id":null,"quantity":1},{"id":337,"cart_id":130,"product_id":149,"size_id":1826,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":131,"user_id":null,"status":"On Way","notes":null,"full_name":"lana","governorate":"erbil","city":"erbil","address":"zin city (263)","closest_point":null,"phone_number":"07504470712","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":338,"cart_id":131,"product_id":360,"size_id":441,"color_id":null,"quantity":1},{"id":339,"cart_id":131,"product_id":630,"size_id":1797,"color_id":null,"quantity":1}],"coupon":null},{"id":132,"user_id":null,"status":"On Way","notes":null,"full_name":"noor","governorate":"baghdad","city":"مدائن سلمان باك","address":"بغداد المدائن سلمان باك","closest_point":null,"phone_number":"07727729965","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":340,"cart_id":132,"product_id":935,"size_id":2104,"color_id":null,"quantity":1},{"id":341,"cart_id":132,"product_id":892,"size_id":2055,"color_id":null,"quantity":1},{"id":342,"cart_id":132,"product_id":913,"size_id":2079,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":133,"user_id":null,"status":"On Way","notes":null,"full_name":"زهراء","governorate":"baghdad","city":"بغداد","address":"شارع فلسطين","closest_point":null,"phone_number":"٠٧٧٠١٢٣٤٥٦٦","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":343,"cart_id":133,"product_id":977,"size_id":2147,"color_id":null,"quantity":1}],"coupon":null},{"id":134,"user_id":null,"status":"On Way","notes":null,"full_name":"فدك المنصوري","governorate":"basra","city":"الحكيميه","address":"شارع المقبره","closest_point":null,"phone_number":"7718307103","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":344,"cart_id":134,"product_id":410,"size_id":1323,"color_id":null,"quantity":1},{"id":345,"cart_id":134,"product_id":8,"size_id":1429,"color_id":null,"quantity":1},{"id":346,"cart_id":134,"product_id":99,"size_id":1559,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":138,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07700000000","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":351,"cart_id":138,"product_id":448,"size_id":1602,"color_id":null,"quantity":1}],"coupon":null},{"id":139,"user_id":null,"status":"On Way","notes":null,"full_name":"زهراء مصطفى","governorate":"karbala","city":"كربلاء","address":"حي الاطباء","closest_point":"قرب مطعم الماعون","phone_number":"+964 771 266 8774","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":352,"cart_id":139,"product_id":106,"size_id":817,"color_id":null,"quantity":1},{"id":353,"cart_id":139,"product_id":153,"size_id":1830,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":141,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":356,"cart_id":141,"product_id":540,"size_id":833,"color_id":null,"quantity":1},{"id":357,"cart_id":141,"product_id":968,"size_id":2138,"color_id":null,"quantity":1},{"id":358,"cart_id":141,"product_id":862,"size_id":1707,"color_id":null,"quantity":1},{"id":359,"cart_id":141,"product_id":914,"size_id":2080,"color_id":null,"quantity":1}],"coupon":null},{"id":142,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":360,"cart_id":142,"product_id":205,"size_id":1051,"color_id":null,"quantity":1},{"id":361,"cart_id":142,"product_id":7,"size_id":1428,"color_id":null,"quantity":1},{"id":362,"cart_id":142,"product_id":194,"size_id":1324,"color_id":null,"quantity":1},{"id":363,"cart_id":142,"product_id":454,"size_id":1665,"color_id":null,"quantity":1}],"coupon":null},{"id":143,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":364,"cart_id":143,"product_id":683,"size_id":1258,"color_id":null,"quantity":1},{"id":365,"cart_id":143,"product_id":415,"size_id":1609,"color_id":null,"quantity":1},{"id":366,"cart_id":143,"product_id":741,"size_id":1127,"color_id":null,"quantity":1}],"coupon":null},{"id":144,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":367,"cart_id":144,"product_id":219,"size_id":1713,"color_id":null,"quantity":1},{"id":368,"cart_id":144,"product_id":87,"size_id":111,"color_id":null,"quantity":1},{"id":369,"cart_id":144,"product_id":326,"size_id":1613,"color_id":null,"quantity":1},{"id":370,"cart_id":144,"product_id":150,"size_id":1825,"color_id":null,"quantity":1},{"id":371,"cart_id":144,"product_id":773,"size_id":1242,"color_id":null,"quantity":5}],"coupon":null},{"id":145,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":372,"cart_id":145,"product_id":304,"size_id":1737,"color_id":null,"quantity":1},{"id":373,"cart_id":145,"product_id":201,"size_id":1052,"color_id":null,"quantity":1}],"coupon":null},{"id":146,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":374,"cart_id":146,"product_id":519,"size_id":847,"color_id":null,"quantity":1},{"id":375,"cart_id":146,"product_id":27,"size_id":31,"color_id":null,"quantity":1},{"id":376,"cart_id":146,"product_id":412,"size_id":1036,"color_id":null,"quantity":1},{"id":377,"cart_id":146,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":378,"cart_id":146,"product_id":174,"size_id":1816,"color_id":null,"quantity":1}],"coupon":null},{"id":147,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07700000000","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":379,"cart_id":147,"product_id":961,"size_id":2130,"color_id":null,"quantity":1},{"id":380,"cart_id":147,"product_id":929,"size_id":2093,"color_id":null,"quantity":1}],"coupon":null},{"id":148,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":381,"cart_id":148,"product_id":192,"size_id":1352,"color_id":null,"quantity":1}],"coupon":null},{"id":149,"user_id":null,"status":"On Way","notes":null,"full_name":"زهراء فائز","governorate":"baghdad","city":"بغداد","address":"محلة ٧١٦","closest_point":"زيونة ساحة ميسلون فرع كوفي هيل وليل","phone_number":"0780 200 0196","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":382,"cart_id":149,"product_id":959,"size_id":2125,"color_id":null,"quantity":1},{"id":383,"cart_id":149,"product_id":901,"size_id":2064,"color_id":null,"quantity":1},{"id":384,"cart_id":149,"product_id":563,"size_id":1907,"color_id":null,"quantity":1},{"id":385,"cart_id":149,"product_id":327,"size_id":1712,"color_id":null,"quantity":1},{"id":386,"cart_id":149,"product_id":205,"size_id":1051,"color_id":null,"quantity":1},{"id":387,"cart_id":149,"product_id":885,"size_id":2046,"color_id":null,"quantity":1},{"id":388,"cart_id":149,"product_id":902,"size_id":2066,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":150,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":389,"cart_id":150,"product_id":988,"size_id":2159,"color_id":null,"quantity":1},{"id":390,"cart_id":150,"product_id":24,"size_id":587,"color_id":null,"quantity":2},{"id":391,"cart_id":150,"product_id":951,"size_id":2117,"color_id":null,"quantity":1},{"id":392,"cart_id":150,"product_id":631,"size_id":1806,"color_id":null,"quantity":1},{"id":393,"cart_id":150,"product_id":8,"size_id":1429,"color_id":null,"quantity":1},{"id":394,"cart_id":150,"product_id":578,"size_id":2016,"color_id":null,"quantity":1}],"coupon":null},{"id":151,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":395,"cart_id":151,"product_id":148,"size_id":1801,"color_id":null,"quantity":1},{"id":396,"cart_id":151,"product_id":410,"size_id":1323,"color_id":null,"quantity":1}],"coupon":null},{"id":152,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":397,"cart_id":152,"product_id":148,"size_id":1801,"color_id":null,"quantity":1},{"id":398,"cart_id":152,"product_id":83,"size_id":862,"color_id":null,"quantity":1}],"coupon":null},{"id":153,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":399,"cart_id":153,"product_id":639,"size_id":1757,"color_id":null,"quantity":1}],"coupon":null},{"id":154,"user_id":null,"status":"On Way","notes":null,"full_name":"نورا  عبد الجبار","governorate":"basra","city":"Basra","address":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","closest_point":"الجزائر العباسيه شارع المخابز قرب عيادة الجزائر لطب الاسنان","phone_number":"+9647703290438","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":400,"cart_id":154,"product_id":607,"size_id":1337,"color_id":null,"quantity":1},{"id":401,"cart_id":154,"product_id":913,"size_id":2079,"color_id":null,"quantity":2},{"id":402,"cart_id":154,"product_id":403,"size_id":1686,"color_id":null,"quantity":1},{"id":403,"cart_id":154,"product_id":449,"size_id":1558,"color_id":null,"quantity":1}],"coupon":null},{"id":155,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":404,"cart_id":155,"product_id":630,"size_id":1797,"color_id":null,"quantity":1},{"id":405,"cart_id":155,"product_id":630,"size_id":1798,"color_id":null,"quantity":1},{"id":406,"cart_id":155,"product_id":630,"size_id":1799,"color_id":null,"quantity":1},{"id":407,"cart_id":155,"product_id":961,"size_id":2129,"color_id":null,"quantity":1},{"id":408,"cart_id":155,"product_id":683,"size_id":1258,"color_id":null,"quantity":20},{"id":409,"cart_id":155,"product_id":155,"size_id":1831,"color_id":null,"quantity":2},{"id":410,"cart_id":155,"product_id":350,"size_id":816,"color_id":null,"quantity":2}],"coupon":null},{"id":159,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":414,"cart_id":159,"product_id":651,"size_id":1779,"color_id":null,"quantity":1}],"coupon":null},{"id":161,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":417,"cart_id":161,"product_id":321,"size_id":1849,"color_id":null,"quantity":1},{"id":418,"cart_id":161,"product_id":459,"size_id":1557,"color_id":null,"quantity":1}],"coupon":null},{"id":163,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":421,"cart_id":163,"product_id":859,"size_id":1694,"color_id":null,"quantity":1},{"id":422,"cart_id":163,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":423,"cart_id":163,"product_id":39,"size_id":896,"color_id":null,"quantity":1},{"id":424,"cart_id":163,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":425,"cart_id":163,"product_id":8,"size_id":1429,"color_id":null,"quantity":1},{"id":426,"cart_id":163,"product_id":106,"size_id":817,"color_id":null,"quantity":1},{"id":427,"cart_id":163,"product_id":454,"size_id":1665,"color_id":null,"quantity":2}],"coupon":null},{"id":164,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":428,"cart_id":164,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":429,"cart_id":164,"product_id":446,"size_id":1599,"color_id":null,"quantity":1},{"id":430,"cart_id":164,"product_id":449,"size_id":1558,"color_id":null,"quantity":1}],"coupon":null},{"id":165,"user_id":null,"status":"On Way","notes":null,"full_name":"زهراء","governorate":"baghdad","city":"بغداد","address":"الزعفرانية","closest_point":"شارع منتدى","phone_number":"07770356038","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":431,"cart_id":165,"product_id":589,"size_id":1991,"color_id":null,"quantity":1},{"id":432,"cart_id":165,"product_id":24,"size_id":587,"color_id":null,"quantity":1},{"id":433,"cart_id":165,"product_id":940,"size_id":2106,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":166,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"078088877722","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":434,"cart_id":166,"product_id":408,"size_id":1691,"color_id":null,"quantity":1},{"id":435,"cart_id":166,"product_id":281,"size_id":1692,"color_id":null,"quantity":1},{"id":436,"cart_id":166,"product_id":532,"size_id":1921,"color_id":null,"quantity":1}],"coupon":null},{"id":168,"user_id":null,"status":"On Way","notes":null,"full_name":"لينا بديع","governorate":"baghdad","city":"الشعب","address":"الشعب مقابل إعداديه بلقيس","closest_point":null,"phone_number":"7725809698","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":445,"cart_id":168,"product_id":959,"size_id":2125,"color_id":null,"quantity":1}],"coupon":null},{"id":170,"user_id":null,"status":"On Way","notes":"رجاءً نبهوا المندوب يتصل عالواتس اب ما اكدر ارد عالرصيد","full_name":"جمانة حسين","governorate":"baghdad","city":"بغداد","address":"الصالحية كرادة مريم. خلف السفارة الايرانية","closest_point":"قرب عيادة دكتور منير خماس","phone_number":"07728504200","type":"home","created_at":"2024-09-19T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":448,"cart_id":170,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":449,"cart_id":170,"product_id":449,"size_id":1558,"color_id":null,"quantity":1},{"id":450,"cart_id":170,"product_id":326,"size_id":1612,"color_id":null,"quantity":1},{"id":451,"cart_id":170,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":452,"cart_id":170,"product_id":383,"size_id":1644,"color_id":null,"quantity":1},{"id":453,"cart_id":170,"product_id":195,"size_id":1412,"color_id":null,"quantity":1},{"id":454,"cart_id":170,"product_id":407,"size_id":1681,"color_id":null,"quantity":1},{"id":455,"cart_id":170,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":456,"cart_id":170,"product_id":340,"size_id":1614,"color_id":null,"quantity":1},{"id":457,"cart_id":170,"product_id":454,"size_id":1665,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":67,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":131,"cart_id":67,"product_id":457,"size_id":1585,"color_id":null,"quantity":1},{"id":132,"cart_id":67,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":133,"cart_id":67,"product_id":449,"size_id":1558,"color_id":null,"quantity":1}],"coupon":null},{"id":66,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":129,"cart_id":66,"product_id":885,"size_id":2046,"color_id":null,"quantity":1},{"id":130,"cart_id":66,"product_id":795,"size_id":1220,"color_id":null,"quantity":1}],"coupon":null},{"id":65,"user_id":null,"status":"On Way","notes":"بعد الرابعة عصراً","full_name":"ام امير","governorate":"karbala","city":"كربلاء","address":"الروضتين قبل السيطرة بفرع المنيوم المشرق","closest_point":null,"phone_number":"0782 827 5015","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":126,"cart_id":65,"product_id":905,"size_id":2069,"color_id":null,"quantity":1},{"id":127,"cart_id":65,"product_id":215,"size_id":1070,"color_id":null,"quantity":1},{"id":128,"cart_id":65,"product_id":673,"size_id":1005,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":64,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":124,"cart_id":64,"product_id":933,"size_id":2097,"color_id":null,"quantity":1},{"id":125,"cart_id":64,"product_id":647,"size_id":963,"color_id":null,"quantity":1}],"coupon":null},{"id":63,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":120,"cart_id":63,"product_id":536,"size_id":802,"color_id":null,"quantity":1},{"id":121,"cart_id":63,"product_id":350,"size_id":816,"color_id":null,"quantity":1},{"id":122,"cart_id":63,"product_id":173,"size_id":1832,"color_id":null,"quantity":1},{"id":123,"cart_id":63,"product_id":683,"size_id":1258,"color_id":null,"quantity":2}],"coupon":null},{"id":49,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"Karbala","address":"Karbala","closest_point":"Karbala","phone_number":"07732878729","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":85,"cart_id":49,"product_id":227,"size_id":1954,"color_id":null,"quantity":1}],"coupon":null},{"id":62,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":118,"cart_id":62,"product_id":329,"size_id":1839,"color_id":null,"quantity":1},{"id":119,"cart_id":62,"product_id":192,"size_id":1352,"color_id":null,"quantity":1}],"coupon":null},{"id":60,"user_id":70,"status":"On Way","notes":null,"full_name":"Reiam_moh","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"0780000066","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":112,"cart_id":60,"product_id":230,"size_id":302,"color_id":null,"quantity":1},{"id":113,"cart_id":60,"product_id":289,"size_id":1803,"color_id":null,"quantity":1},{"id":114,"cart_id":60,"product_id":955,"size_id":2121,"color_id":null,"quantity":1}],"coupon":null},{"id":59,"user_id":null,"status":"On Way","notes":null,"full_name":"رؤى رسول","governorate":"baghdad","city":"بغداد","address":"الاعظمية","closest_point":"شارع قاسم ابو الكص","phone_number":"07726050256","type":"other","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":109,"cart_id":59,"product_id":567,"size_id":1894,"color_id":null,"quantity":1},{"id":110,"cart_id":59,"product_id":326,"size_id":1612,"color_id":null,"quantity":1},{"id":111,"cart_id":59,"product_id":281,"size_id":1692,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":58,"user_id":70,"status":"On Way","notes":null,"full_name":"Reiam_moh","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"0780000066","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":107,"cart_id":58,"product_id":651,"size_id":1779,"color_id":null,"quantity":1},{"id":108,"cart_id":58,"product_id":206,"size_id":1055,"color_id":null,"quantity":1}],"coupon":null},{"id":57,"user_id":null,"status":"On Way","notes":null,"full_name":"rulahanii","governorate":"karbala","city":"Karbala","address":"K","closest_point":"K","phone_number":"K","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":102,"cart_id":57,"product_id":409,"size_id":1690,"color_id":null,"quantity":1},{"id":103,"cart_id":57,"product_id":47,"size_id":894,"color_id":null,"quantity":1},{"id":104,"cart_id":57,"product_id":969,"size_id":2139,"color_id":null,"quantity":1},{"id":105,"cart_id":57,"product_id":967,"size_id":2137,"color_id":null,"quantity":1},{"id":106,"cart_id":57,"product_id":449,"size_id":1558,"color_id":null,"quantity":1}],"coupon":null},{"id":55,"user_id":null,"status":"On Way","notes":null,"full_name":"Zainab4_18","governorate":"karbala","city":"Karbala","address":"Karbala","closest_point":"Karbala","phone_number":"07717055282","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":96,"cart_id":55,"product_id":809,"size_id":1487,"color_id":null,"quantity":1}],"coupon":null},{"id":50,"user_id":64,"status":"On Way","notes":"لا نستلم ليل","full_name":"محمد علي","governorate":"muthanna","city":"السماوة","address":"حي الحسين علي شارع مدرسة الكندي للبنات","closest_point":"مدرسة الكندي للبنات","phone_number":"07800827808","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":86,"cart_id":50,"product_id":446,"size_id":1599,"color_id":null,"quantity":1},{"id":87,"cart_id":50,"product_id":34,"size_id":790,"color_id":null,"quantity":1},{"id":88,"cart_id":50,"product_id":610,"size_id":856,"color_id":null,"quantity":1},{"id":89,"cart_id":50,"product_id":580,"size_id":1980,"color_id":null,"quantity":1},{"id":90,"cart_id":50,"product_id":851,"size_id":1718,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":107,"user_id":null,"status":"On Way","notes":null,"full_name":"Maral Yasir","governorate":"erbil","city":"كويسنجق","address":"معهد تكنيكي كوية الحكومي خلف الأقسام الداخلية للبنات قرب ماركت فور يو","closest_point":"معهد تكنيكي كوية الحكومي خلف الأقسام الداخلية للبنات قرب ماركت فور يو","phone_number":"07730863536","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":251,"cart_id":107,"product_id":934,"size_id":2098,"color_id":null,"quantity":1},{"id":252,"cart_id":107,"product_id":885,"size_id":2046,"color_id":null,"quantity":1},{"id":253,"cart_id":107,"product_id":851,"size_id":1718,"color_id":null,"quantity":1},{"id":254,"cart_id":107,"product_id":658,"size_id":1271,"color_id":null,"quantity":1},{"id":255,"cart_id":107,"product_id":449,"size_id":1558,"color_id":null,"quantity":1},{"id":256,"cart_id":107,"product_id":194,"size_id":1324,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":105,"user_id":null,"status":"On Way","notes":null,"full_name":"Mariam alasadi","governorate":"basra","city":"Basra","address":"Al amal city 1","closest_point":"زون 5/بلوك 1/دار 14","phone_number":"+964 771 245 1962","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":242,"cart_id":105,"product_id":424,"size_id":1078,"color_id":null,"quantity":5},{"id":243,"cart_id":105,"product_id":912,"size_id":2078,"color_id":null,"quantity":1},{"id":244,"cart_id":105,"product_id":904,"size_id":2068,"color_id":null,"quantity":2}],"coupon":null},{"id":104,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07712345678","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":235,"cart_id":104,"product_id":391,"size_id":1638,"color_id":null,"quantity":1},{"id":236,"cart_id":104,"product_id":568,"size_id":1893,"color_id":null,"quantity":1},{"id":237,"cart_id":104,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":238,"cart_id":104,"product_id":906,"size_id":2071,"color_id":null,"quantity":1},{"id":239,"cart_id":104,"product_id":798,"size_id":1264,"color_id":null,"quantity":1},{"id":240,"cart_id":104,"product_id":24,"size_id":587,"color_id":null,"quantity":1},{"id":241,"cart_id":104,"product_id":729,"size_id":1113,"color_id":null,"quantity":1}],"coupon":null},{"id":103,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":232,"cart_id":103,"product_id":184,"size_id":825,"color_id":null,"quantity":1},{"id":233,"cart_id":103,"product_id":121,"size_id":803,"color_id":null,"quantity":1},{"id":234,"cart_id":103,"product_id":534,"size_id":813,"color_id":null,"quantity":1}],"coupon":null},{"id":101,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07712345678","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":227,"cart_id":101,"product_id":959,"size_id":2125,"color_id":null,"quantity":1},{"id":228,"cart_id":101,"product_id":350,"size_id":816,"color_id":null,"quantity":1}],"coupon":null},{"id":98,"user_id":null,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07712345678","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":219,"cart_id":98,"product_id":454,"size_id":1665,"color_id":null,"quantity":1},{"id":220,"cart_id":98,"product_id":24,"size_id":587,"color_id":null,"quantity":1},{"id":221,"cart_id":98,"product_id":174,"size_id":1816,"color_id":null,"quantity":1},{"id":222,"cart_id":98,"product_id":311,"size_id":2033,"color_id":null,"quantity":1}],"coupon":null},{"id":94,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":200,"cart_id":94,"product_id":912,"size_id":2078,"color_id":null,"quantity":1},{"id":201,"cart_id":94,"product_id":190,"size_id":1762,"color_id":null,"quantity":1},{"id":202,"cart_id":94,"product_id":153,"size_id":1830,"color_id":null,"quantity":1},{"id":204,"cart_id":94,"product_id":24,"size_id":587,"color_id":null,"quantity":2},{"id":205,"cart_id":94,"product_id":301,"size_id":1738,"color_id":null,"quantity":2}],"coupon":null},{"id":93,"user_id":null,"status":"On Way","notes":"التوصيل الأحد","full_name":"بنت سلمان","governorate":"basra","city":"البهادرية","address":"البهادرية قرب مدرسة الوتين الاهلية","closest_point":"مدرسة الوتين","phone_number":"07767909646","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":195,"cart_id":93,"product_id":833,"size_id":1847,"color_id":null,"quantity":1},{"id":196,"cart_id":93,"product_id":223,"size_id":1794,"color_id":null,"quantity":1},{"id":197,"cart_id":93,"product_id":222,"size_id":1791,"color_id":null,"quantity":1},{"id":198,"cart_id":93,"product_id":7,"size_id":1428,"color_id":null,"quantity":1},{"id":199,"cart_id":93,"product_id":86,"size_id":973,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":92,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":194,"cart_id":92,"product_id":858,"size_id":1693,"color_id":null,"quantity":1}],"coupon":null},{"id":108,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":257,"cart_id":108,"product_id":463,"size_id":1685,"color_id":null,"quantity":1},{"id":258,"cart_id":108,"product_id":884,"size_id":2045,"color_id":null,"quantity":1},{"id":259,"cart_id":108,"product_id":288,"size_id":1027,"color_id":null,"quantity":1},{"id":260,"cart_id":108,"product_id":301,"size_id":1738,"color_id":null,"quantity":1},{"id":261,"cart_id":108,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":262,"cart_id":108,"product_id":178,"size_id":1796,"color_id":null,"quantity":1}],"coupon":null},{"id":109,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":263,"cart_id":109,"product_id":108,"size_id":809,"color_id":null,"quantity":1},{"id":264,"cart_id":109,"product_id":155,"size_id":1831,"color_id":null,"quantity":1}],"coupon":null},{"id":110,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":265,"cart_id":110,"product_id":758,"size_id":1250,"color_id":null,"quantity":3},{"id":266,"cart_id":110,"product_id":929,"size_id":2093,"color_id":null,"quantity":6}],"coupon":null},{"id":111,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":267,"cart_id":111,"product_id":956,"size_id":2122,"color_id":null,"quantity":3},{"id":268,"cart_id":111,"product_id":219,"size_id":1713,"color_id":null,"quantity":3},{"id":269,"cart_id":111,"product_id":906,"size_id":2071,"color_id":null,"quantity":2},{"id":270,"cart_id":111,"product_id":7,"size_id":1428,"color_id":null,"quantity":2},{"id":271,"cart_id":111,"product_id":929,"size_id":2093,"color_id":null,"quantity":2},{"id":272,"cart_id":111,"product_id":904,"size_id":2068,"color_id":null,"quantity":2},{"id":273,"cart_id":111,"product_id":367,"size_id":1702,"color_id":null,"quantity":1},{"id":274,"cart_id":111,"product_id":227,"size_id":1954,"color_id":null,"quantity":2}],"coupon":null},{"id":112,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":275,"cart_id":112,"product_id":230,"size_id":302,"color_id":null,"quantity":4},{"id":276,"cart_id":112,"product_id":174,"size_id":1816,"color_id":null,"quantity":4},{"id":277,"cart_id":112,"product_id":205,"size_id":1051,"color_id":null,"quantity":4},{"id":278,"cart_id":112,"product_id":929,"size_id":2093,"color_id":null,"quantity":4},{"id":279,"cart_id":112,"product_id":911,"size_id":2077,"color_id":null,"quantity":4},{"id":280,"cart_id":112,"product_id":215,"size_id":1070,"color_id":null,"quantity":4},{"id":281,"cart_id":112,"product_id":329,"size_id":1839,"color_id":null,"quantity":10}],"coupon":null},{"id":113,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":282,"cart_id":113,"product_id":904,"size_id":2068,"color_id":null,"quantity":1}],"coupon":null},{"id":114,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":283,"cart_id":114,"product_id":192,"size_id":1352,"color_id":null,"quantity":6},{"id":284,"cart_id":114,"product_id":443,"size_id":1594,"color_id":null,"quantity":3},{"id":285,"cart_id":114,"product_id":933,"size_id":2097,"color_id":null,"quantity":3},{"id":286,"cart_id":114,"product_id":8,"size_id":1429,"color_id":null,"quantity":6}],"coupon":null},{"id":115,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":287,"cart_id":115,"product_id":150,"size_id":1825,"color_id":null,"quantity":1},{"id":288,"cart_id":115,"product_id":904,"size_id":2068,"color_id":null,"quantity":1}],"coupon":null},{"id":116,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":289,"cart_id":116,"product_id":191,"size_id":1353,"color_id":null,"quantity":5},{"id":290,"cart_id":116,"product_id":8,"size_id":1429,"color_id":null,"quantity":5},{"id":291,"cart_id":116,"product_id":538,"size_id":1919,"color_id":null,"quantity":2},{"id":292,"cart_id":116,"product_id":904,"size_id":2068,"color_id":null,"quantity":5},{"id":293,"cart_id":116,"product_id":155,"size_id":1831,"color_id":null,"quantity":5},{"id":294,"cart_id":116,"product_id":330,"size_id":1153,"color_id":null,"quantity":10},{"id":295,"cart_id":116,"product_id":437,"size_id":1159,"color_id":null,"quantity":10},{"id":296,"cart_id":116,"product_id":28,"size_id":1652,"color_id":null,"quantity":2},{"id":297,"cart_id":116,"product_id":174,"size_id":1816,"color_id":null,"quantity":2},{"id":298,"cart_id":116,"product_id":851,"size_id":1718,"color_id":null,"quantity":2},{"id":299,"cart_id":116,"product_id":237,"size_id":1746,"color_id":null,"quantity":5}],"coupon":null},{"id":117,"user_id":null,"status":"On Way","notes":null,"full_name":"Alaa Mustafa","governorate":"karbala","city":"كربلاء","address":"حي الاطباء قرب مطعم الماعون","closest_point":"بداية الفرع عقارات البسملة","phone_number":"07722838490","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":300,"cart_id":117,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":301,"cart_id":117,"product_id":454,"size_id":1665,"color_id":null,"quantity":1},{"id":302,"cart_id":117,"product_id":449,"size_id":1558,"color_id":null,"quantity":1},{"id":303,"cart_id":117,"product_id":281,"size_id":1692,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":118,"user_id":null,"status":"On Way","notes":null,"full_name":"Athraa Naeem","governorate":"baghdad","city":"Baghdad","address":"حي الفرات الخدمي","closest_point":"قرب مجمع المصطفى السكني للطالبات","phone_number":"0782 984 2737","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":304,"cart_id":118,"product_id":336,"size_id":863,"color_id":null,"quantity":1},{"id":305,"cart_id":118,"product_id":373,"size_id":1293,"color_id":null,"quantity":1},{"id":306,"cart_id":118,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":307,"cart_id":118,"product_id":222,"size_id":1791,"color_id":null,"quantity":1},{"id":308,"cart_id":118,"product_id":494,"size_id":1942,"color_id":null,"quantity":1},{"id":309,"cart_id":118,"product_id":410,"size_id":1323,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":119,"user_id":null,"status":"On Way","notes":null,"full_name":"Ikram","governorate":"basra","city":"البصرة","address":"جامعة باب الزبير - قسم 10","closest_point":null,"phone_number":"07830131910","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":310,"cart_id":119,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":311,"cart_id":119,"product_id":797,"size_id":1265,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":91,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":193,"cart_id":91,"product_id":192,"size_id":1352,"color_id":null,"quantity":1}],"coupon":null},{"id":89,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":190,"cart_id":89,"product_id":442,"size_id":523,"color_id":null,"quantity":1},{"id":191,"cart_id":89,"product_id":330,"size_id":1153,"color_id":null,"quantity":1}],"coupon":null},{"id":88,"user_id":70,"status":"On Way","notes":null,"full_name":"Reiam_moh","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"0780000066","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":189,"cart_id":88,"product_id":906,"size_id":2071,"color_id":null,"quantity":1}],"coupon":null},{"id":87,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":187,"cart_id":87,"product_id":148,"size_id":1801,"color_id":null,"quantity":1},{"id":188,"cart_id":87,"product_id":883,"size_id":2044,"color_id":null,"quantity":1}],"coupon":null},{"id":86,"user_id":null,"status":"On Way","notes":"غير موجودة في يوم الخميس والجمعة","full_name":"ورد ابراهيم","governorate":"baghdad","city":"الدورة","address":"شارع ابو طيارة","closest_point":"فرع صيدلية سما المزد","phone_number":"+9647715723780","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":5,"updated_at":"2024-09-21T00:00:00.000Z","items":[{"id":185,"cart_id":86,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":186,"cart_id":86,"product_id":149,"size_id":1826,"color_id":null,"quantity":1}],"coupon":{"id":5,"code":"naayiraq","name":"naayiraq","description":"Thanks for using our platform, enjoy your 10% discount!","discount_amount":null,"discount_percentage":"10.00","start_date":"2024-09-17T00:00:00.000Z","end_date":"2024-09-25T00:00:00.000Z","usage_limit":0,"min_purchase_amount":"50000.00","max_discount_amount":"1000000.00","is_active":true}},{"id":85,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07707778882","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":180,"cart_id":85,"product_id":159,"size_id":702,"color_id":null,"quantity":1},{"id":181,"cart_id":85,"product_id":527,"size_id":1927,"color_id":null,"quantity":1},{"id":182,"cart_id":85,"product_id":525,"size_id":703,"color_id":null,"quantity":1},{"id":183,"cart_id":85,"product_id":158,"size_id":701,"color_id":null,"quantity":1},{"id":184,"cart_id":85,"product_id":978,"size_id":2149,"color_id":null,"quantity":1}],"coupon":null},{"id":84,"user_id":null,"status":"On Way","notes":"التوصيل قبل الساعة ٤ العصر لطفاً 😁","full_name":"Zahraa sattar","governorate":"karbala","city":"Karbala","address":"حي السلام","closest_point":"مدارس العتبة","phone_number":"07719577735","type":"work","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":177,"cart_id":84,"product_id":532,"size_id":1921,"color_id":null,"quantity":1},{"id":178,"cart_id":84,"product_id":454,"size_id":1665,"color_id":null,"quantity":1},{"id":179,"cart_id":84,"product_id":568,"size_id":1893,"color_id":null,"quantity":1}],"coupon":null},{"id":83,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":172,"cart_id":83,"product_id":857,"size_id":1676,"color_id":null,"quantity":1},{"id":173,"cart_id":83,"product_id":466,"size_id":2011,"color_id":null,"quantity":1},{"id":174,"cart_id":83,"product_id":415,"size_id":1609,"color_id":null,"quantity":1},{"id":175,"cart_id":83,"product_id":904,"size_id":2068,"color_id":null,"quantity":1},{"id":176,"cart_id":83,"product_id":631,"size_id":1808,"color_id":null,"quantity":1}],"coupon":null},{"id":82,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":168,"cart_id":82,"product_id":570,"size_id":1896,"color_id":null,"quantity":1},{"id":169,"cart_id":82,"product_id":480,"size_id":1973,"color_id":null,"quantity":1},{"id":170,"cart_id":82,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":171,"cart_id":82,"product_id":24,"size_id":587,"color_id":null,"quantity":1}],"coupon":null},{"id":80,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":157,"cart_id":80,"product_id":174,"size_id":1816,"color_id":null,"quantity":1},{"id":158,"cart_id":80,"product_id":321,"size_id":1849,"color_id":null,"quantity":1},{"id":159,"cart_id":80,"product_id":494,"size_id":1942,"color_id":null,"quantity":1},{"id":160,"cart_id":80,"product_id":150,"size_id":1825,"color_id":null,"quantity":1},{"id":161,"cart_id":80,"product_id":192,"size_id":1352,"color_id":null,"quantity":1},{"id":162,"cart_id":80,"product_id":327,"size_id":1712,"color_id":null,"quantity":1},{"id":163,"cart_id":80,"product_id":173,"size_id":1832,"color_id":null,"quantity":1}],"coupon":null},{"id":79,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":156,"cart_id":79,"product_id":876,"size_id":1977,"color_id":null,"quantity":1}],"coupon":null},{"id":78,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":154,"cart_id":78,"product_id":448,"size_id":1602,"color_id":null,"quantity":1},{"id":155,"cart_id":78,"product_id":415,"size_id":1609,"color_id":null,"quantity":1}],"coupon":null},{"id":77,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":153,"cart_id":77,"product_id":178,"size_id":1796,"color_id":null,"quantity":1}],"coupon":null},{"id":76,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":152,"cart_id":76,"product_id":862,"size_id":1707,"color_id":null,"quantity":1}],"coupon":null},{"id":75,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":151,"cart_id":75,"product_id":178,"size_id":1796,"color_id":null,"quantity":1}],"coupon":null},{"id":74,"user_id":null,"status":"On Way","notes":"الطلب اريده يوصل جمعه او سبت","full_name":"نور فلاح","governorate":"baghdad","city":"المنصور","address":"ابو جعفر المنصور","closest_point":"قرب سوبر ماركت امزون وقرب جوازات المنصور","phone_number":"07714662738","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":145,"cart_id":74,"product_id":788,"size_id":1236,"color_id":null,"quantity":1},{"id":146,"cart_id":74,"product_id":415,"size_id":1609,"color_id":null,"quantity":1},{"id":147,"cart_id":74,"product_id":305,"size_id":1303,"color_id":null,"quantity":1},{"id":148,"cart_id":74,"product_id":421,"size_id":1301,"color_id":null,"quantity":1},{"id":149,"cart_id":74,"product_id":778,"size_id":1528,"color_id":null,"quantity":1},{"id":150,"cart_id":74,"product_id":388,"size_id":1632,"color_id":null,"quantity":1}],"coupon":null},{"id":73,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":142,"cart_id":73,"product_id":230,"size_id":302,"color_id":null,"quantity":1},{"id":143,"cart_id":73,"product_id":798,"size_id":1264,"color_id":null,"quantity":1},{"id":144,"cart_id":73,"product_id":410,"size_id":1323,"color_id":null,"quantity":1}],"coupon":null},{"id":72,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":140,"cart_id":72,"product_id":913,"size_id":2079,"color_id":null,"quantity":1},{"id":141,"cart_id":72,"product_id":203,"size_id":275,"color_id":null,"quantity":1}],"coupon":null},{"id":71,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":139,"cart_id":71,"product_id":184,"size_id":825,"color_id":null,"quantity":1}],"coupon":null},{"id":70,"user_id":70,"status":"On Way","notes":null,"full_name":"Reiam_moh","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"0780000066","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":137,"cart_id":70,"product_id":192,"size_id":1352,"color_id":null,"quantity":2},{"id":138,"cart_id":70,"product_id":194,"size_id":1324,"color_id":null,"quantity":2}],"coupon":null},{"id":69,"user_id":null,"status":"On Way","notes":null,"full_name":"مثلى احمد","governorate":"baghdad","city":"الكرخ الثانية","address":"حي الرسالة الثانية شارع الضغط خلف حسينية انصار الزهراء","closest_point":"اسواق الامير او دلالية الرحمة","phone_number":"07800084537","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-19T00:00:00.000Z","items":[{"id":136,"cart_id":69,"product_id":913,"size_id":2079,"color_id":null,"quantity":1}],"coupon":null},{"id":68,"user_id":70,"status":"On Way","notes":null,"full_name":"Naay","governorate":"karbala","city":"K","address":"K","closest_point":"K","phone_number":"07708887772","type":"home","created_at":"2024-09-18T00:00:00.000Z","coupon_id":null,"updated_at":"2024-09-18T00:00:00.000Z","items":[{"id":134,"cart_id":68,"product_id":379,"size_id":1643,"color_id":null,"quantity":1},{"id":135,"cart_id":68,"product_id":885,"size_id":2046,"color_id":null,"quantity":1}],"coupon":null}]
improve the design and everything...
the orderspage (nextjs 14 app router) (keep the red bg-red and bg-danger instead of bg-red-600 and bg-red-700)
"use client";

import React, {
  useState,
  useEffect,
  useCallback,
  useMemo,
  useRef,
} from "react";
import DefaultLayout from "@/components/Layouts/DefaultLayout";
import {
  Trash2,
  Search,
  ChevronDown,
  ChevronUp,
  ChevronLeft,
  ChevronRight,
} from "lucide-react";
import { toast, ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import Image from "next/image";
import { getToken } from "@/app/auth";
import Link from "next/link";

const API_BASE_URL = "https://api2.naayiq.com";

// Interfaces

interface OrderItem {
  price: string;
  id: number;
  cart_id: number;
  product_id: number;
  size_id?: number | null;
  color_id?: number | null;
  quantity: number;
}

interface CartWithItems {
  id: number;
  user_id?: number | null;
  status: string;
  notes?: string;
  full_name?: string;
  governorate?: string;
  city?: string;
  address?: string;
  closest_point?: string;
  phone_number?: string;
  type?: string;
  created_at: string;
  coupon?: {
    id: number;
    code: string;
    name: string;
    description: string;
    discount_amount: number;
    discount_percentage: number;
    start_date: string;
    end_date: string;
    usage_limit: number;
    min_purchase_amount: number;
    max_discount_amount: number;
    is_active: boolean;
  } | null;
  updated_at: string;
  items: OrderItem[];
}

interface Product {
  id: number;
  name: string;
  description?: string;
  brand_id?: number;
  has_color: boolean;
  has_size: boolean;
  product_type: string;
  price: string;
  qty: number | null;
  created_at: string;
  updated_at: string;
  categories: Array<{ id: number; name: string }>;
  colors: Array<{ id: number; name: string }>;
  sizes: Array<{
    id: number;
    name: string;
    price: string;
    qty: number;
    color_id: number | null;
    images: string[];
  }>;
  images: Array<{
    id: number;
    url: string;
    color_id: number | null;
    size_id: number | null;
  }>;
}

interface Coupon {
  id: number;
  code: string;
  discount_type: string;
  discount_value: number;
}

interface OrderDetails {
  totalPrice: number;
  discountedPrice: number;
  deliveryCost: number;
}

interface OrderDetailsProps {
  order: CartWithItems;
  onUpdateStatus: (orderId: number, newStatus: string) => void;
  onDeleteOrder: (orderId: number) => void;
  fetchProduct: (productId: number) => Promise<{ product: Product } | null>;
  fetchCoupon?: (couponId: number) => Promise<Coupon | null>;
  products: { [key: number]: Product };
}

interface OrderItemProps {
  item: OrderItem;
  fetchProduct: (productId: number) => Promise<{ product: Product } | null>;
  product?: Product;
}

// Utility Functions

const formatPrice = (price: number) => {
  return `${price.toLocaleString()} IQD`;
};

const getStatusColor = (status: string) => {
  switch (status) {
    case "Pending":
      return "bg-orange-100 text-orange-800";
    case "On Way":
      return "bg-indigo-100 text-indigo-800";
    case "Ordered":
      return "bg-emerald-100 text-emerald-800";
    case "Rejected":
      return "bg-red-100 text-red-800";
    default:
      return "bg-gray-100 text-gray-800";
  }
};

// Main Component

const OrdersPage: React.FC = () => {
  // State Variables
  const [orders, setOrders] = useState<CartWithItems[]>([]);
  const [products, setProducts] = useState<{ [key: number]: Product }>({});
  const productsRef = useRef<{ [key: number]: Product }>({});
  const [coupons, setCoupons] = useState<{ [key: number]: Coupon }>({});
  const [error, setError] = useState<string | null>(null);
  const [searchTerm, setSearchTerm] = useState("");
  const [first, setFirst] = useState(true);
  const [currentPage, setCurrentPage] = useState(1);
  const ordersPerPage = 10;
  const [statusFilter, setStatusFilter] = useState<string>("all");
  const [sortOrder, setSortOrder] = useState<"asc" | "desc">("desc");

  // Ref to track ongoing fetches to prevent duplicate requests
  const ongoingFetches = useRef<{
    [key: number]: Promise<{ product: Product } | null>;
  }>({});

  // Sync productsRef with products state
  useEffect(() => {
    productsRef.current = products;
  }, [products]);

  // Fetch Orders

  const fetchOrders = useCallback(async () => {
    try {
      const token = getToken(); // Retrieve the token from localStorage

      if (!token) {
        toast.error("You must be logged in.");
        return;
      }
      const response = await fetch(`${API_BASE_URL}/cart`, {
        headers: {
          "Content-Type": "application/json",
          Authorization: `Bearer ${token}`, // Include the token here
        },
        cache: "no-cache",
      });
      if (!response.ok) throw new Error("Failed to fetch orders");
      const data = await response.json();
      setOrders((prevOrders) => {
        const newOrders = data.filter(
          (order: CartWithItems) =>
            !prevOrders.some((prevOrder) => prevOrder.id === order.id),
        );
        if (newOrders.length > 0 && !first) {
          toast.success(`Received ${newOrders.length} new order(s)!`);
        }
        setFirst(false);
        return data;
      });
    } catch (error) {
      console.error("Error fetching orders:", error);
      setError("Failed to fetch orders. Please try again.");
    }
  }, [first]);

  // Fetch Product

  const fetchProduct = useCallback(
    async (productId: number): Promise<{ product: Product } | null> => {
      // Check if product is already fetched
      if (productsRef.current[productId]) {
        return { product: productsRef.current[productId] };
      }

      // Check if there's an ongoing fetch for this product
      if (await ongoingFetches.current[productId]) {
        return await ongoingFetches.current[productId];
      }

      // Start fetching the product and store the promise
      const fetchPromise = (async () => {
        try {
          const token = getToken();
          if (!token) {
            toast.error("You must be logged in.");
            return null;
          }
          const response = await fetch(
            `${API_BASE_URL}/products/${productId}`,
            {
              headers: {
                "Content-Type": "application/json",
                Authorization: `Bearer ${token}`,
              },
            },
          );
          if (!response.ok) throw new Error("Failed to fetch product");
          const data = await response.json();
          setProducts((prev) => ({
            ...prev,
            [productId]: data.product,
          }));
          return data;
        } catch (error) {
          console.error(`Error fetching product ${productId}:`, error);
          return null;
        } finally {
          // Remove the promise from ongoing fetches
          delete ongoingFetches.current[productId];
        }
      })();

      ongoingFetches.current[productId] = fetchPromise;
      return fetchPromise;
    },
    [],
  );

  // Fetch Coupon

  const fetchCoupon = useCallback(
    async (couponId: number): Promise<Coupon | null> => {
      if (coupons[couponId]) {
        return coupons[couponId];
      }
      try {
        const token = getToken(); // Retrieve the token from localStorage

        if (!token) {
          toast.error("You must be logged in.");
          return null;
        }
        const response = await fetch(`${API_BASE_URL}/coupons/${couponId}`, {
          headers: {
            "Content-Type": "application/json",
            Authorization: `Bearer ${token}`, // Include the token here
          },
        });
        if (!response.ok) throw new Error("Failed to fetch coupon");
        const data = await response.json();
        setCoupons((prev) => ({ ...prev, [couponId]: data }));
        return data;
      } catch (error) {
        console.error(`Error fetching coupon ${couponId}:`, error);
        return null;
      }
    },
    [coupons],
  );

  // Initial Fetch and Polling

  useEffect(() => {
    fetchOrders();
    const intervalId = setInterval(fetchOrders, 10000); // Poll every 10 seconds
    return () => clearInterval(intervalId);
  }, [fetchOrders]);

  // Filtering, Sorting, and Pagination

  const filteredAndSortedOrders = useMemo(() => {
    return orders
      .filter((order) => {
        const matchesSearch =
          order.full_name?.toLowerCase().includes(searchTerm.toLowerCase()) ||
          order.id.toString().includes(searchTerm);
        const matchesStatus =
          statusFilter === "all" || order.status === statusFilter;
        return matchesSearch && matchesStatus;
      })
      .sort((a, b) => {
        const dateA = new Date(a.created_at).getTime();
        const dateB = new Date(b.created_at).getTime();
        return sortOrder === "asc" ? dateA - dateB : dateB - dateA;
      });
  }, [orders, searchTerm, statusFilter, sortOrder]);

  const totalPages = Math.ceil(filteredAndSortedOrders.length / ordersPerPage);

  const currentOrders = useMemo(() => {
    const indexOfLastOrder = currentPage * ordersPerPage;
    const indexOfFirstOrder = indexOfLastOrder - ordersPerPage;
    return filteredAndSortedOrders.slice(indexOfFirstOrder, indexOfLastOrder);
  }, [filteredAndSortedOrders, currentPage, ordersPerPage]);

  const paginate = (pageNumber: number) => {
    setCurrentPage(Math.max(1, Math.min(pageNumber, totalPages)));
  };

  // Scroll to Top on Page Change
  useEffect(() => {
    window.scrollTo(0, 0);
  }, [currentPage]);

  // Update Order Status

  const handleUpdateStatus = useCallback(
    async (orderId: number, newStatus: string) => {
      const oldStatus =
        orders.find((order) => order.id === orderId)?.status || "";

      // Optimistically update the UI
      setOrders((prevOrders) =>
        prevOrders.map((order) =>
          order.id === orderId ? { ...order, status: newStatus } : order,
        ),
      );

      try {
        const token = getToken();
        if (!token) {
          toast.error("You must be logged in.");
          throw new Error("Not logged in");
        }

        const response = await fetch(`${API_BASE_URL}/cart/carts/${orderId}`, {
          method: "PUT",
          headers: {
            "Content-Type": "application/json",
            Authorization: `Bearer ${token}`,
          },
          body: JSON.stringify({ status: newStatus }),
        });

        const result = await response.json();
        if (!response.ok) {
          throw new Error(result.message);
        }

        toast.success(result.message);
      } catch (error) {
        console.error("Error updating order status:", error);
        // Revert the status if the update failed
        setOrders((prevOrders) =>
          prevOrders.map((order) =>
            order.id === orderId ? { ...order, status: oldStatus } : order,
          ),
        );
        toast.error("Failed to update order status. Please try again.");
      }
    },
    [orders],
  );

  // Delete Order

  const handleDeleteOrder = useCallback(
    async (orderId: number) => {
      const isConfirmed = window.confirm(
        "Are you sure you want to delete this order?",
      );

      if (isConfirmed) {
        try {
          const token = getToken(); // Retrieve the token from localStorage
          if (!token) {
            toast.error("You must be logged in.");
            return;
          }
          const response = await fetch(
            `${API_BASE_URL}/cart/carts/${orderId}`,
            {
              method: "DELETE",
              headers: {
                "Content-Type": "application/json",
                Authorization: `Bearer ${token}`, // Include the token here
              },
            },
          );
          const result = await response.json();
          if (!response.ok) {
            toast.error(result.message);
            throw new Error(result.message);
          } else {
            toast.success(result.message);
          }
          await fetchOrders();
        } catch (error) {
          console.error("Error deleting order:", error);
          setError("Failed to delete order. Please try again.");
        }
      }
    },
    [fetchOrders],
  );

  // Fetch products for current orders (without duplications)

  useEffect(() => {
    const fetchProductsForCurrentOrders = async () => {
      const productIds = new Set(
        currentOrders.flatMap((order) =>
          order.items.map((item) => item.product_id),
        ),
      );
      const fetchPromises: Promise<void>[] = [];

      productIds.forEach((productId) => {
        if (
          !productsRef.current[productId] &&
          !ongoingFetches.current[productId]
        ) {
          const promise = fetchProduct(productId).then(() => {});
          fetchPromises.push(promise);
        }
      });

      await Promise.all(fetchPromises);
    };

    fetchProductsForCurrentOrders();
  }, [currentOrders, fetchProduct]);

  // Render

  return (
    <DefaultLayout>
      <div className="container mx-auto p-6">
        <h1 className="mb-6 text-3xl font-bold text-gray-800">Orders</h1>
        {/* Search and Filters */}
        <div className="mb-4 flex flex-col space-y-4 md:flex-row md:items-center md:justify-between md:space-y-0">
          <div className="flex items-center space-x-4">
            <div className="flex items-center">
              <Search size={20} className="mr-2 text-gray-400" />
              <input
                type="text"
                placeholder="Search orders..."
                value={searchTerm}
                onChange={(e) => setSearchTerm(e.target.value)}
                className="rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"
              />
            </div>
            <select
              value={statusFilter}
              onChange={(e) => setStatusFilter(e.target.value)}
              className="rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"
            >
              <option value="all">All Statuses</option>
              <option value="Pending">Pending</option>
              <option value="On Way">On Way</option>
              <option value="Ordered">Ordered</option>
              <option value="Rejected">Rejected</option>
            </select>
            <select
              value={sortOrder}
              onChange={(e) => setSortOrder(e.target.value as "asc" | "desc")}
              className="rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"
            >
              <option value="desc">Newest First</option>
              <option value="asc">Oldest First</option>
            </select>
          </div>
          {/* Add New Order Button (Optional) */}
          {/* <Link href="/orders/new">
            <button className="rounded bg-indigo-600 px-4 py-2 text-white hover:bg-indigo-700">
              Add New Order
            </button>
          </Link> */}
        </div>

        {/* Orders List */}
        <div className="space-y-6">
          {currentOrders.map((order) => (
            <OrderDetails
              key={order.id}
              order={order}
              onUpdateStatus={handleUpdateStatus}
              onDeleteOrder={handleDeleteOrder}
              fetchProduct={fetchProduct}
              fetchCoupon={fetchCoupon}
              products={products}
            />
          ))}
          {currentOrders.length === 0 && (
            <p className="text-center text-gray-500">No orders found.</p>
          )}
        </div>

        {/* Pagination Controls */}
        {totalPages > 1 && (
          <div className="mt-4 flex items-center justify-center space-x-2">
            <button
              onClick={() => paginate(currentPage - 1)}
              disabled={currentPage === 1}
              className={`rounded bg-gray-200 p-2 ${currentPage === 1 ? "cursor-not-allowed opacity-50" : ""}`}
            >
              <ChevronLeft size={20} />
            </button>
            <span>
              Page {currentPage} of {totalPages}
            </span>
            <button
              onClick={() => paginate(currentPage + 1)}
              disabled={currentPage === totalPages}
              className={`rounded bg-gray-200 p-2 ${currentPage === totalPages ? "cursor-not-allowed opacity-50" : ""}`}
            >
              <ChevronRight size={20} />
            </button>
          </div>
        )}
        <ToastContainer />
      </div>
    </DefaultLayout>
  );
};

// OrderDetails Component

const OrderDetails: React.FC<OrderDetailsProps> = React.memo(
  ({
    order,
    onUpdateStatus,
    onDeleteOrder,
    fetchProduct,
    fetchCoupon,
    products,
  }) => {
    const [isExpanded, setIsExpanded] = useState(false);
    const [orderDetails, setOrderDetails] = useState<OrderDetails>({
      totalPrice: 0,
      discountedPrice: 0,
      deliveryCost: 0,
    });

    useEffect(() => {
      const calculateOrderDetails = async () => {
        let total = 0;
        for (const item of order.items) {
          let product = products[item.product_id];
          if (!product) {
            const productData = await fetchProduct(item.product_id);
            if (productData && productData.product) {
              product = productData.product;
            }
          }
          if (product) {
            const size = product.sizes.find((s) => s.id === item.size_id);
            const itemPrice = size
              ? parseFloat(size.price)
              : parseFloat(product.price);
            total += itemPrice * item.quantity;
          }
        }

        let discountedPrice = total;
        if (order.coupon) {
          let discount = 0;
          if (order.coupon.discount_percentage) {
            discount = total * (order.coupon.discount_percentage / 100);
          } else if (order.coupon.discount_amount) {
            discount = order.coupon.discount_amount;
          }
          if (order.coupon.max_discount_amount) {
            discount = Math.min(discount, order.coupon.max_discount_amount);
          }
          discountedPrice = total - discount;
        }

        const deliveryCost =
          total >= 100000 || order.governorate?.toLowerCase() === "karbala"
            ? 0
            : 5000;

        setOrderDetails({ totalPrice: total, discountedPrice, deliveryCost });
      };

      calculateOrderDetails();
    }, [order, fetchProduct, products]);

    const finalTotal = orderDetails.discountedPrice + orderDetails.deliveryCost;

    const handleStatusChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
      const newStatus = e.target.value;
      onUpdateStatus(order.id, newStatus);
    };

    return (
      <div className="rounded-lg bg-white p-6 shadow-md">
        {/* Order Header */}
        <div className="mb-4 flex items-center justify-between">
          <h2 className="text-xl font-semibold">Order #{order.id}</h2>
          <div className="flex space-x-2">
            <select
              value={order.status}
              onChange={handleStatusChange}
              className={`rounded px-2 py-1 text-sm ${getStatusColor(order.status)}`}
            >
              <option value="Pending">Pending</option>
              <option value="On Way">On Way</option>
              <option value="Ordered">Ordered</option>
              <option value="Rejected">Rejected</option>
            </select>
            <button
              onClick={() => onDeleteOrder(order.id)}
              className="rounded bg-red p-1 text-white transition-colors hover:bg-danger"
            >
              <Trash2 size={16} />
            </button>
          </div>
        </div>

        {/* Order Information */}
        <div className="grid grid-cols-1 gap-4 md:grid-cols-2">
          <div>
            <p>
              <strong>Customer Name:</strong> {order.full_name || "N/A"}
            </p>
            <p>
              <strong>Status:</strong>{" "}
              <span
                className={`rounded px-2 py-1 text-sm ${getStatusColor(order.status)}`}
              >
                {order.status}
              </span>
            </p>
            <p>
              <strong>Created At:</strong>{" "}
              {new Date(order.created_at).toLocaleString()}
            </p>
          </div>
          <div>
            <p>
              <strong>Address:</strong> {order.address || "N/A"}
            </p>
            <p>
              <strong>Closest Point:</strong> {order?.closest_point || "N/A"}
            </p>
            <p>
              <strong>Phone Number:</strong> {order.phone_number || "N/A"}
            </p>
            <p>
              <strong>Governorate:</strong> {order.governorate || "N/A"}
            </p>
          </div>
        </div>

        {/* Notes Section */}
        <div className="mt-4">
          <h3 className="text-lg font-semibold">Notes:</h3>
          <p className="mt-2 text-gray-600">
            {order.notes || "No notes provided"}
          </p>
        </div>

        {/* Items Toggle */}
        <div className="mt-4">
          <button
            onClick={() => setIsExpanded(!isExpanded)}
            className="flex items-center text-blue-500 hover:text-blue-700 focus:outline-none"
          >
            <h3 className="mr-2 text-lg font-semibold">Items:</h3>
            {isExpanded ? <ChevronUp size={20} /> : <ChevronDown size={20} />}
          </button>
          {isExpanded && (
            <ul className="mt-2 space-y-4">
              {order.items.map((item) => (
                <OrderItem
                  key={item.id}
                  item={item}
                  fetchProduct={fetchProduct}
                  product={products[item.product_id]}
                />
              ))}
            </ul>
          )}
        </div>

        {/* Pricing Summary */}
        <div className="mt-4 text-right">
          <p className="text-lg font-semibold">
            Total Price: {formatPrice(orderDetails.totalPrice)}
          </p>
          {order.coupon && (
            <>
              <p className="text-sm text-gray-600">
                Coupon Applied: {order.coupon.code} ({order.coupon.name})
              </p>
              <p className="text-sm text-gray-600">
                Discount:{" "}
                {order.coupon.discount_percentage
                  ? `${order.coupon.discount_percentage}%`
                  : formatPrice(order.coupon.discount_amount)}
                {order.coupon.max_discount_amount &&
                  `Max: ${formatPrice(order.coupon.max_discount_amount)}`}
              </p>
              <p className="text-lg font-semibold text-green-600">
                Discounted Price: {formatPrice(orderDetails.discountedPrice)}
              </p>
            </>
          )}
          <p className="text-md mt-2 italic text-gray-600">
            Delivery Cost:{" "}
            {orderDetails.deliveryCost === 0
              ? "Free"
              : formatPrice(orderDetails.deliveryCost)}
          </p>
          <p className="mt-2 text-xl font-bold">
            Final Total: {formatPrice(finalTotal)}
          </p>
        </div>
      </div>
    );
  },
);

OrderDetails.displayName = "OrderDetails";

// OrderItem Component

const OrderItem: React.FC<OrderItemProps> = React.memo(
  ({ item, fetchProduct, product: initialProduct }) => {
    const product = initialProduct || null;
    const [isLoading, setIsLoading] = useState(!product);

    useEffect(() => {
      let isMounted = true;

      if (!product) {
        setIsLoading(true);
        fetchProduct(item.product_id).then((data) => {
          if (data && data.product && isMounted) {
            // Product is already added to the cache in fetchProduct
          }
          if (isMounted) setIsLoading(false);
        });
      }

      return () => {
        isMounted = false;
      };
    }, [item.product_id, fetchProduct, product]);

    if (isLoading) {
      return <li className="h-20 animate-pulse rounded bg-gray-200"></li>;
    }

    if (!product) {
      return <li className="text-red-500">Error loading product.</li>;
    }

    const size = product.sizes.find((s) => s.id === item.size_id);
    const color = product.colors.find((c) => c.id === item.color_id);
    const itemPrice = size ? parseFloat(size.price) : parseFloat(product.price);
    const totalItemPrice = itemPrice * item.quantity;

    const image =
      product.images.find(
        (img) =>
          (img.size_id === item.size_id || img.color_id === item.color_id) &&
          (img.size_id === null || img.color_id === null),
      ) || product.images[0];

    return (
      <li className="flex items-center space-x-4 rounded-md bg-gray-50 p-4">
        <div className="h-16 w-16 flex-shrink-0 overflow-hidden rounded-md border border-gray-200">
          {image ? (
            <Image
              src={`https://storage.naayiq.com/resources/${image.url}`}
              alt={product.name}
              width={64}
              height={64}
              className="h-full w-full object-cover object-center"
            />
          ) : (
            <div className="flex h-full w-full items-center justify-center bg-gray-100 text-gray-400">
              No image
            </div>
          )}
        </div>
        <div className="flex-grow">
          <h4 className="font-medium">{product.name}</h4>
          <p className="text-sm text-gray-500">
            {size && `Size: ${size.name}`} {color && `Color: ${color.name}`}
          </p>
          <p className="text-sm">
            {item.quantity} x {formatPrice(itemPrice)} ={" "}
            {formatPrice(totalItemPrice)}
          </p>
        </div>
      </li>
    );
  },
);

OrderItem.displayName = "OrderItem";

export default OrdersPage;