{{__('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 }}

{{__('admin.Today New Order')}}

@foreach ($todayOrders->where('order_status',0) as $index => $order) @endforeach
{{__('admin.SN')}} {{__('admin.Customer')}} {{__('admin.Order Id')}} {{__('admin.Date')}} {{__('admin.Quantity')}} {{__('admin.Amount')}} {{__('admin.Order Status')}} {{__('admin.Payment')}} {{__('admin.Action')}}
{{ ++$index }} {{ $order->user->name }} {{ $order->order_id }} {{ $order->created_at->format('d F, Y') }} {{ $order->product_qty }} {{ $setting->currency_icon }}{{ $order->amount_real_currency }} @if ($order->order_status == 1) {{__('admin.Pregress')}} @elseif ($order->order_status == 2) {{__('admin.Delivered')}} @elseif ($order->order_status == 3) {{__('admin.Completed')}} @elseif ($order->order_status == 4) {{__('admin.Declined')}} @else {{__('admin.Pending')}} @endif @if($order->payment_status == 1) {{__('admin.success')}} @else {{__('admin.Pending')}} @endif