Graphs & Analytics Report

Account: {{ $userName }}

{{ $storeName }}

{{ $dateRange['label'] }}: {{ $dateRange['start'] }} to {{ $dateRange['end'] }}
Generated on {{ now()->format('F d, Y \a\t h:i A') }}

Key Performance Indicators

Total After Tax K{{ number_format($kpis['total_after_tax'], 2) }} Total Before Tax K{{ number_format($kpis['total_before_tax'], 2) }} Total Tax K{{ number_format($kpis['total_tax'], 2) }} Total Transactions {{ number_format($kpis['total_transactions'], 0) }}
@if(count($categorySalesData) > 0)

Sales by Category ({{ count($categorySalesData) }} Categories)

@php $totalSales = array_sum(array_column($categorySalesData, 'total_sales')); @endphp @foreach($categorySalesData as $index => $category) @endforeach
# Category Name Total Sales (K) % of Total
{{ $index + 1 }} {{ $category['category_name'] }} {{ number_format($category['total_sales'], 2) }} {{ number_format(($category['total_sales'] / $totalSales) * 100, 1) }}%
TOTAL {{ number_format($totalSales, 2) }} 100%
@endif @if(count($productSalesData) > 0)

Top 10 Products by Sales

@foreach($productSalesData as $index => $product) @endforeach
# Product Name Total Sales (K)
{{ $index + 1 }} {{ $product['product_name'] }} {{ number_format($product['total_sales'], 2) }}
TOP 10 TOTAL {{ number_format(array_sum(array_column($productSalesData, 'total_sales')), 2) }}
@endif @if(count($storePerformanceData) > 0)

Store Performance Comparison

@php $totalStoreSales = array_sum(array_column($storePerformanceData, 'total_sales')); @endphp @foreach($storePerformanceData as $index => $store) @endforeach
# Store Name Total Sales (K) % of Total
{{ $index + 1 }} {{ $store['store_name'] }} {{ number_format($store['total_sales'], 2) }} {{ number_format(($store['total_sales'] / $totalStoreSales) * 100, 1) }}%
TOTAL {{ number_format($totalStoreSales, 2) }} 100%
@endif @if(count($categorySalesData) === 0 && count($productSalesData) === 0 && count($storePerformanceData) === 0)

No data available for the selected period

Try adjusting your filters

@endif