@extends('index') @section('title', Helper::getSiteTitle('Dashboard')) @section('content')

Dashboard

{{ Helper::displayStocks($total_orders) }}

{{ __('Orders Today') }}

{{ Helper::displayStocks($total_products) }}

{{ __('Total Products') }}

{{ Helper::displayStocks($total_customers) }}

{{ __('Total Customers') }}

{{ Helper::displayStocks($total_pending_enquiries) }}

{{ __('Pending Enquiries') }}

Sales

@php $difference = Helper::percentageDifference($total_revenue_this_month, $total_revenue_last_month); @endphp @if($total_revenue_this_month == 0 || $total_revenue_this_month < $total_revenue_last_month)
@else
@endif
Total Sale In {{ now()->year }}

{{ Helper::showCurrencyFormats($total_revenue) }}

{{ __('Last Month') }}

@if($total_revenue_last_month == 0 || $total_revenue_last_month < $total_revenue_this_month)

{{ Helper::showCurrencyFormats($total_revenue_last_month) }}

@else

{{ Helper::showCurrencyFormats($total_revenue_last_month) }}

@endif

{{ __('This Month') }}

@if($total_revenue_this_month == 0 || $total_revenue_this_month < $total_revenue_last_month)

{{ Helper::showCurrencyFormats($total_revenue_this_month) }}

@else

{{ Helper::showCurrencyFormats($total_revenue_this_month) }}

@endif

Sales Analytics

Top 10 Selling Products

@if(!$top_selling_products->isEmpty()) @foreach($top_selling_products as $product) @endforeach @else @endif
Image Title Price (Incl. VAT) Total In Stock
{{ $product->name }}
{{ $product->name }}

{{ $product->sku }}

{{ $product->total }} Times Sold

{{ Helper::showCurrencyFormats($product->selling_price) }} {{ Helper::displayStocks($product->instock) }}
No product found yet

Orders Today

@if(!$orders_today->isEmpty()) @foreach($orders_today as $row) @endforeach @else @endif
# Customer Details Grand Total Status
{{ $row->id }}
({{ with(new \Carbon\Carbon($row->created_at))->diffForHumans() }})
{{ $row->shipping_first_name }} {{ $row->shipping_last_name }}
{{ $row->shipping_email }}
{{ $row->shipping_phone }}
{{ Helper::showCurrencyFormats($row->grand_total) }}
@if ($row->paid == 0)
NOT PAID
@else
PAID
@endif
@if (empty($row->orders_status_name)) Pending @else {{ $row->orders_status_name }} @endif
No order today
@endsection @section('js-lib') @endsection @section('js') @endsection