{{-- new --}}
@foreach ($topSellingProducts as $product)
@endforeach
@foreach (array_slice($locationData, 0, 14) as $index => $location)
{{-- {{ route('admin.orders.index') }} --}}
View All
Orders
@foreach ($orders as $order)
@endforeach
Dashboard Overview
Revenue
{{ $all_orders }}
Orders
${{ number_format(array_sum($chartData['orderSales']) + array_sum($chartData['posSales']), 0, '.', ',') }}
Earnings
{{ $refundOrder }}
Refunds
{{ number_format(($comp_orders / ($all_orders > 0 ? $all_orders : 1)) * 100, 2) }}%
Conversion Ratio
Reached {{ $total_users }} Customers
Want to see your top selling products? Check out the detailed statistics!
Manage your {{ $total_products }} Products
Create new products or update existing ones in your online store.
Top Selling Products
View AllProduct | Orders | Quantity Sold | Actions |
---|---|---|---|
@php
$imagePath = $product->featured_image;
$imageExists =
$imagePath &&
file_exists(
public_path(
parse_url(asset($imagePath), PHP_URL_PATH),
),
);
$firstLetter = strtoupper(
Str::substr($product->title ?? 'P', 0, 1),
);
@endphp
@if ($imageExists)
{{ $firstLetter }}
@endif
{{ $product->title }} |
{{ $product->order_count }} | {{ $product->total_quantity }} | View |
Top Sales Locations
${{ number_format($totalLocationSales) }} Total Sales
{{ $currentYear }}Sales by Location - {{ $currentYear }}
{{ $location['city'] }}{{ $location['state'] }} |
${{ number_format($location['sales']) }}
{{ $location['orders'] }}
orders
|
@php $percentColors = [ 'success', 'info', 'primary', 'warning', 'danger', 'secondary', ]; $percent = round( ($location['sales'] / $totalLocationSales) * 100, ); @endphp {{ $percent }}% |
Order Statistics
Total Orders | {{ $all_orders }} |
Completed Orders | {{ $comp_orders }} |
Pending Orders | {{ $pend_orders }} |
In-Process Orders | {{ $inpro_orders }} |
Cancelled Orders | {{ $canc_orders }} |
Online Orders | {{ $online_orders }} |
Invoice Orders | {{ $invoice_orders }} |
Sales Analytics
Recent Orders
Order ID | Customer Name | Amount | Order Date | Status | Action |
---|---|---|---|---|---|
{{ $order->id }} |
{{ strtoupper(substr($order->f_name, 0, 1)) }}
{{ trim($order->f_name . ' ' . $order->l_name) ?: '' }}
|
${{ $order->total_amount }} | {{ $order->created_at->format('d M, Y') }} | @if ($order->status == 'completed') Completed @elseif($order->status == 'pending') Pending @elseif($order->status == 'inProcess') In Process @elseif($order->status == 'cancelled') Cancelled @else {{ $order->status }} @endif | View |
Least Selling Products
Product | Orders | Quantity | Action |
---|---|---|---|
@if ($imageExists)
{{ $firstLetter }}
@endif
{{ Str::limit($product->title, 30) }}
|
{{ $product->order_count }} | {{ $product->total_quantity ?? 0 }} | View |
Recent Customers
Customer | Created At | Action | |
---|---|---|---|
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }}
|
{{ $customer->email }} | {{ $customer->created_at->format('d M, Y') }} |