@extends('backend.layouts.app') @section('content') @if(auth()->user()->can('smtp_settings') && env('MAIL_USERNAME') == null && env('MAIL_PASSWORD') == null)
{{translate('Please Configure SMTP Setting to work all email sending functionality')}}
{{ translate('Configure Now') }}
@endif @can('admin_dashboard')
{{ \App\Models\User::where('user_type', 'customer')->where('email_verified_at', '!=', null)->count() }} {{ translate('Customer') }}
{{ \App\Models\Category::count() }} {{ translate('Total') }} {{ translate('Product category') }}
{{ \App\Models\Order::count() }}
{{ translate('Total') }} {{ translate('Order') }}
Pending Orders
${{ \App\Models\Order::where('delivery_status','pending')->count() }}
Completed Orders
${{ \App\Models\Order::where('delivery_status','delievered')->where('payment_status', 'paid')->count() }}
Average Order
%{{ round($getAverageOrder / 100, 2) }}
{{ \App\Models\Order::count() }}
{{ translate('Total') }} {{ translate('Product brand') }}
{{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
Top Brand
--}} {{-- --}} {{-- --}} {{--
{{ $Brands[0] }}
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
Newly Brand
--}} {{-- --}} {{-- --}} {{--
{{ $Brands[1] }}
--}} {{-- --}} {{--
--}}

Recent Products @foreach(\App\Models\Product::orderBy('created_at', 'desc')->take(1)->get() as $rencetDate) {{$rencetDate->created_at->diffForHumans()}} @endforeach

@foreach($getLastSIxProductIds as $sixProducts)
{{$sixProducts->name}} by:{{$sixProducts->user->name}}
@endforeach
@foreach($getLastSIxProductIds->skip(3) as $sixProducts)
{{$sixProducts->name}} by:{{ $sixProducts->user->name }}
@endforeach
{{--
{{ translate('Products') }}
{{ translate('Sellers') }}
--}}
{{--
{{ \App\Models\User::where('user_type', 'customer')->where('email_verified_at', '!=', null)->count() }}
{{ translate('Total') }} {{ translate('Customer') }}
{{ \App\Models\Order::count() }}
{{ translate('Total') }} {{ translate('Order') }}
{{ translate('Total') }} {{ translate('Product category') }}
{{ \App\Models\Category::count() }}
{{ translate('Total') }} {{ translate('Product brand') }}
{{ \App\Models\Brand::count() }}
--}} {{--
{{ translate('Category wise product sale') }}
{{ translate('Category wise product stock') }}
--}} {{--
{{ translate('Top 12 Products') }}
--}} @endcan
$ {{ \App\Models\Order::where('delivery_status', 'delivered')->where('payment_status', 'paid')->sum('grand_total') }} {{ $getPercentageChangeInSales }}%
Expected Earnings
Shoes
$7,660
Gaming
$2,820
Others
$45,257
{{ $newOrdersCount }} {{ $precentageChangeOfDailyOrders }}%
Orders This Month
1,048 to Goal 62%
$ {{ round($averageDailySales,1) }} {{ $salesComparisonPercentage }}
Average Daily Sales
{{ $neCustomerCount }} {{translate('New Customers This Month')}}
Today’s Heroes
@foreach ($topSellers as $key => $seller)
@if(isset($seller->user) && $seller->user->avatar ) Pic @else Pic @endif
@endforeach {{ $remainingSellersCount }}

Sales This Months Products from all categories

$ {{ \App\Models\Order::where('payment_status', 'paid')->sum('grand_total') }}
Another $48,346 to Goal

{{translate('Top Sales')}}

@foreach(\App\Models\Category::where('top', '1')->get() as $category)
@foreach($products_sales->where('category_id',$category->id)->take(6) as $product) @endforeach
ITEM PRICE Num Sale
{{ home_discounted_base_price($product) }} @if(home_base_price($product) != home_discounted_base_price($product)) {{ home_base_price($product) }} @endif {{$product->num_of_sale }}
@endforeach

Discounted Product Sales Users from all channels

$ {{ App\Models\Order::where('coupon_discount','>','0.00')->where('delivery_status', 'delievered')->where('payment_status', 'paid')->sum('grand_total')}} {{ $getDiscountedOrdersChange }}%
Total Discounted Sales This Month

Have you tried
new eCommerce App ?

{{translate('Last Orders')}}

@foreach($lastOrders as $order) @endforeach

Product Delivery {{ \App\Models\Order::orderBy('created_at')->where('delivery_status','delivered')->count() }} Products Shipped so far

Stock Report Total 2,356 Items in the Stock

Cateogry
Status
View Stock
@foreach($products_sales->take(10) as $stock) @endforeach
Item Product ID Date Added Price Qty
{{ $stock->name }} {{ $stock->id }} {{ $stock->created_at->format('Y-m-d') }} ${{ $stock->unit_price }} {{ $stock->current_stock }} PCS
@endsection @section('script') @endsection