@extends('admin.layouts.master') @section('content')
Sales

Daily (Previous Day)


Total Orders: {{ $sales['today']['total_sales'] }} ({{ $sales['yesterday']['total_sales'] }})

Net Sales: £{{ number_format($sales['today']['total_revenue'], 2) }} (£{{ number_format($sales['yesterday']['total_revenue'], 2) }})

Month to Date


Total Orders: {{ $sales['month']['total_sales'] }}

Net Sales: £{{ number_format($sales['month']['total_revenue'], 2) }}

Year to Date


Total Orders: {{ $sales['year']['total_sales'] }}

Net Sales: £{{ number_format($sales['year']['total_revenue'], 2) }}

An overview of of sales from the last day, month and year.

New/Returning Customers

Last 30 Days


Total Orders: {{ $retCust['last30']['totalOrders'] }}

Total Customers: {{ $retCust['last30']['totalCustomers'] }}

New Customers: {{ $retCust['last30']['newCustomers'] }} - {{ number_format((100 / $retCust['last30']['totalCustomers']) * $retCust['last30']['newCustomers']) }}%

Returning Customers: {{ $retCust['last30']['totalCustomers'] - $retCust['last30']['newCustomers'] }} - {{ number_format((100 / $retCust['last30']['totalCustomers']) * ($retCust['last30']['totalCustomers'] - $retCust['last30']['newCustomers'])) }}%

Prev 30 Days


Total Orders: {{ $retCust['prev30']['totalOrders'] }}

Total Customers: {{ $retCust['prev30']['totalCustomers'] }}

New Customers: {{ $retCust['prev30']['newCustomers'] }} - {{ number_format((100 / $retCust['prev30']['totalCustomers']) * $retCust['prev30']['newCustomers']) }}%

Returning Customers: {{ $retCust['prev30']['totalCustomers'] - $retCust['prev30']['newCustomers'] }} - {{ number_format((100 / $retCust['prev30']['totalCustomers']) * ($retCust['prev30']['totalCustomers'] - $retCust['prev30']['newCustomers'])) }}%

Same Period Last Year


Total Orders: {{ $retCust['lastYear']['totalOrders'] }}

Total Customers: {{ $retCust['lastYear']['totalCustomers'] }}

New Customers: {{ $retCust['lastYear']['newCustomers'] }} - {{ number_format((100 / $retCust['lastYear']['totalCustomers']) * $retCust['lastYear']['newCustomers']) }}%

Returning Customers: {{ $retCust['lastYear']['totalCustomers'] - $retCust['lastYear']['newCustomers'] }} - {{ number_format((100 / $retCust['lastYear']['totalCustomers']) * ($retCust['lastYear']['totalCustomers'] - $retCust['lastYear']['newCustomers'])) }}%

A Breakdown of orders over in a 30 day period, split by new and returning customers.

Supplier Splits

Last 30 Days


Eco: £{{ number_format($suppliers['last30']['eco']['revenue'],2) }} - {{ $suppliers['last30']['eco']['count'] }}

Labo: £{{ number_format($suppliers['last30']['labo']['revenue'],2) }} - {{ $suppliers['last30']['labo']['count'] }}

BW: £{{ number_format($suppliers['last30']['bw']['revenue'],2) }} - {{ $suppliers['last30']['bw']['count'] }}

DecTec: £{{ number_format($suppliers['last30']['dec']['revenue'],2) }} - {{ $suppliers['last30']['dec']['count'] }}

Prev 30 Days


Eco: £{{ number_format($suppliers['prev30']['eco']['revenue'],2) }} - {{ $suppliers['prev30']['eco']['count'] }}

Labo: £{{ number_format($suppliers['prev30']['labo']['revenue'],2) }} - {{ $suppliers['prev30']['labo']['count'] }}

BW: £{{ number_format($suppliers['prev30']['bw']['revenue'],2) }} - {{ $suppliers['prev30']['bw']['count'] }}

DecTec: £{{ number_format($suppliers['prev30']['dec']['revenue'],2) }} - {{ $suppliers['prev30']['dec']['count'] }}

Same Period Last Year


Eco: £{{ number_format($suppliers['lastYear']['eco']['revenue'],2) }} - {{ $suppliers['lastYear']['eco']['count'] }}

Labo: £{{ number_format($suppliers['lastYear']['labo']['revenue'],2) }} - {{ $suppliers['lastYear']['labo']['count'] }}

BW: £{{ number_format($suppliers['lastYear']['bw']['revenue'],2) }} - {{ $suppliers['lastYear']['bw']['count'] }}

DecTec: £{{ number_format($suppliers['lastYear']['dec']['revenue'],2) }} - {{ $suppliers['lastYear']['dec']['count'] }}

A Breakdown of orders over in a 30 day period, split by Supplier.

Assigned Order Splits

Last 30 Days


@php $total = 0 @endphp @foreach($staff['last30'] as $key => $value) @if($key != '') @php $total += $value @endphp @endif @endforeach @foreach($staff['last30'] as $key => $value) @if($key != '')

{{ $key }} - {{ $value }} ({{ number_format((100/$total)*$value)}}%)

@endif @endforeach

Total - {{ $total }}

Prev 30 Days


@php $total = 0 @endphp @foreach($staff['prev30'] as $key => $value) @if($key != '') @php $total += $value @endphp @endif @endforeach @foreach($staff['prev30'] as $key => $value) @if($key != '')

{{ $key }} - {{ $value }} ({{ number_format((100/$total)*$value)}}%)

@endif @endforeach

Total - {{ $total }}

A Breakdown of orders over in a 30 day period, split by User.

@endsection