diff --git a/src/app/profile/orders/page.tsx b/src/app/profile/orders/page.tsx new file mode 100644 index 0000000..ff2b149 --- /dev/null +++ b/src/app/profile/orders/page.tsx @@ -0,0 +1,146 @@ +'use client' +import withLayout from '@/hoc/withLayout' +import { NextPage } from 'next' +import React, { useState } from 'react' +import Menu from '../components/Menu' +import { Button } from '@/components/ui/button' +import Image from 'next/image' +import { Swiper, SwiperSlide } from 'swiper/react'; +import 'swiper/css'; + + +const Orders: NextPage = () => { + const [activeTab, setActiveTab] = useState<'current' | 'delivered' | 'returned' | 'cancelled'>('current') + + const mockOrders = [ + { + id: '656151', + amount: '18,500,000', + status: 'در انتظار پرداخت', + date: '1401 / 10 / 12', + products: [ + { id: 1, image: 'https://picsum.photos/80/80?random=1', name: 'گوشی موبایل سامسونگ مدل Galaxy S24 Ultra' }, + { id: 2, image: 'https://picsum.photos/80/80?random=2', name: 'لحاف کرسی ستین مدل ساده' }, + { id: 3, image: 'https://picsum.photos/80/80?random=3', name: 'روغنی ستین کد T-2112 طرح گلریز' }, + { id: 4, image: 'https://picsum.photos/80/80?random=4', name: 'شارژر دیواری 65 وات ماگسیونگ' }, + { id: 5, image: 'https://picsum.photos/80/80?random=5', name: 'گوشی موبایل سامسونگ مدل Galaxy S24 Ultra' }, + { id: 6, image: 'https://picsum.photos/80/80?random=6', name: 'لحاف کرسی ستین مدل ساده' }, + { id: 7, image: 'https://picsum.photos/80/80?random=7', name: 'روغنی ستین کد T-2112 طرح گلریز' }, + { id: 8, image: 'https://picsum.photos/80/80?random=8', name: 'شارژر دیواری 65 وات ماگسیونگ' }, + ] + }, + { + id: '846511', + amount: '254,500,000', + status: 'وضعیت سفارش: در حال ارسال', + date: '1401 / 8 / 10', + products: [ + { id: 1, image: 'https://picsum.photos/80/80?random=5', name: 'گوشی موبایل سامسونگ مدل Galaxy S24 Ultra' }, + { id: 2, image: 'https://picsum.photos/80/80?random=6', name: 'لحاف کرسی ستین مدل ساده' }, + { id: 3, image: 'https://picsum.photos/80/80?random=7', name: 'روغنی ستین کد T-2112 طرح گلریز' }, + { id: 4, image: 'https://picsum.photos/80/80?random=8', name: 'شارژر دیواری 65 وات ماگسیونگ' } + ] + } + ] + + const tabs = [ + { key: 'current' as const, label: 'جاری', count: 10 }, + { key: 'delivered' as const, label: 'تحویل شده', count: 3 }, + { key: 'returned' as const, label: 'مرجوع شده', count: 3 }, + { key: 'cancelled' as const, label: 'لغو شده', count: 3 } + ] + + return ( +