income box

This commit is contained in:
hamid zarghami
2026-02-07 12:16:02 +03:30
parent e4e54d6203
commit 1552830e76
+10 -8
View File
@@ -24,7 +24,7 @@ const Statistics: FC = () => {
return ( return (
<div className='p-6 max-w-[1600px] mx-auto'> <div className='p-6 max-w-[1600px] mx-auto'>
{/* Stats Cards */} {/* Stats Cards */}
<div className='grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6'> <div className='grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-6'>
<StatCard <StatCard
icon={<Category size={24} color='#6B7FED' />} icon={<Category size={24} color='#6B7FED' />}
title='غذاها' title='غذاها'
@@ -43,12 +43,6 @@ const Statistics: FC = () => {
value={`${formatFaNumber(stats?.totalOrders)} سفارش`} value={`${formatFaNumber(stats?.totalOrders)} سفارش`}
color='#FF9A62' color='#FF9A62'
/> />
<StatCard
icon={<DollarCircle size={24} color='#10B981' />}
title='درآمد'
value={stats?.totalRevenue ? formatPrice(stats.totalRevenue) : '۰ تومان'}
color='#10B981'
/>
</div> </div>
{/* Charts Section */} {/* Charts Section */}
@@ -57,7 +51,15 @@ const Statistics: FC = () => {
<RevenueChart /> <RevenueChart />
</div> </div>
<div className='lg:col-span-4'> <div className='lg:col-span-4'>
<FoodSalesChart /> <StatCard
icon={<DollarCircle size={24} color='#10B981' />}
title='درآمد'
value={stats?.totalRevenue ? formatPrice(stats.totalRevenue) : '۰ تومان'}
color='#10B981'
/>
<div className='mt-5'>
<FoodSalesChart />
</div>
</div> </div>
</div> </div>
</div> </div>