{{__('admin.Dashbaord')}}
{{__('admin.Orders')}}
{{__('admin.Today Order')}}
{{ $todayOrders->count() }}
{{__('admin.Today Pending Order')}}
{{ $todayOrders->where('order_status',0)->count() }}
{{__('admin.Total Order')}}
{{ $totalOrders->count() }}
{{__('admin.Total Pending Order')}}
{{ $totalOrders->where('order_status',0)->count() }}
{{__('admin.Total Declined Order')}}
{{ $totalOrders->where('order_status',4)->count() }}
{{__('admin.Total Complete Order')}}
{{ $totalOrders->where('order_status',3)->count() }}
{{__('admin.Earning')}}
{{__('admin.Today Earning')}}
@php
$todayEarning = 0;
$todayProductSale = 0;
foreach ($todayOrders as $key => $todayOrder) {
$orderProducts = $todayOrder->orderProducts->where('seller_id',$seller->id);
foreach ($orderProducts as $key => $orderProduct) {
$price = ($orderProduct->unit_price * $orderProduct->qty) + $orderProduct->vat;
$todayEarning = $todayEarning + $price;
$todayProductSale = $todayProductSale + $orderProduct->qty;
}
}
@endphp
{{ $setting->currency_icon }}{{ $todayEarning }}
{{__('admin.Today Pending Earning')}}
@php
$todayPendingEarning = 0;
foreach ($todayOrders->where('order_status',0) as $key => $todayOrder) {
$orderProducts = $todayOrder->orderProducts->where('seller_id',$seller->id);
foreach ($orderProducts as $key => $orderProduct) {
$price = ($orderProduct->unit_price * $orderProduct->qty) + $orderProduct->vat;
$todayPendingEarning = $todayPendingEarning + $price;
}
}
@endphp
{{ $setting->currency_icon }}{{ $todayPendingEarning }}
{{__('admin.This month Earning')}}
@php
$thisMonthEarning = 0;
$thisMonthProductSale = 0;
foreach ($monthlyOrders as $key => $monthlyOrder) {
$orderProducts = $monthlyOrder->orderProducts->where('seller_id',$seller->id);
foreach ($orderProducts as $key => $orderProduct) {
$price = ($orderProduct->unit_price * $orderProduct->qty) + $orderProduct->vat;
$thisMonthEarning = $thisMonthEarning + $price;
$thisMonthProductSale = $thisMonthProductSale + $orderProduct->qty;
}
}
@endphp
{{ $setting->currency_icon }}{{ $thisMonthEarning }}
{{__('admin.This Year Earning')}}
@php
$thisYearEarning = 0;
$thisYearProductSale = 0;
foreach ($yearlyOrders as $key => $yearlyOrder) {
$orderProducts = $yearlyOrder->orderProducts->where('seller_id',$seller->id);
foreach ($orderProducts as $key => $orderProduct) {
$price = ($orderProduct->unit_price * $orderProduct->qty) + $orderProduct->vat;
$thisYearEarning = $thisYearEarning + $price;
$thisYearProductSale = $thisYearProductSale + $orderProduct->qty;
}
}
@endphp
{{ $setting->currency_icon }}{{ $thisYearEarning }}
{{__('admin.Total Earning')}}
@php
$totalEarning = 0;
$totalProductSale = 0;
foreach ($totalOrders as $key => $totalOrder) {
$orderProducts = $totalOrder->orderProducts->where('seller_id',$seller->id);
foreach ($orderProducts as $key => $orderProduct) {
$price = ($orderProduct->unit_price * $orderProduct->qty) + $orderProduct->vat;
$totalEarning = $totalEarning + $price;
$totalProductSale = $totalProductSale + $orderProduct->qty;
}
}
@endphp
{{ $setting->currency_icon }}{{ $totalEarning }}
{{__('admin.Sale')}}
{{__('admin.Today Product Sale')}}
{{ $todayProductSale }}
{{__('admin.This Month Product Sale')}}
{{ $thisMonthProductSale }}
{{__('admin.This Year Product Sale')}}
{{ $thisYearProductSale }}
{{__('admin.Total Product Sale')}}
{{ $totalProductSale }}
{{__('admin.Product')}}
{{__('admin.Total Product')}}
{{ $products->count() }}
{{__('admin.Total Product Report')}}
{{ $reports->count() }}
{{__('admin.Total Product Review')}}
{{ $reviews->count() }}
{{__('admin.Withdraw')}}
{{__('admin.Total Withdraw')}}
{{ $setting->currency_icon }}{{ $totalWithdraw }}
{{__('admin.Pending Withraw')}}
{{ $setting->currency_icon }}{{ $totalPendingWithdraw }}