@extends('businessintelligence::layouts.app') @section('page_title', __('businessintelligence::lang.sales_analytics')) @section('page_subtitle', 'Visual Sales Performance Dashboard') @section('bi_content')

Sales Analytics Dashboard

Comprehensive visual analysis of your sales performance

@php $formatted_sales = number_format($totalSales, session('business.currency_precision', 2), session('currency.decimal_separator', '.'), session('currency.thousand_separator', ',')); $currency_symbol = session('currency.symbol', '৳'); $symbol_placement = session('business.currency_symbol_placement', 'before'); @endphp @if($symbol_placement == 'before') {{ $currency_symbol }}{{ $formatted_sales }} @else {{ $formatted_sales }} {{ $currency_symbol }} @endif
Total Revenue
12.5% vs last period
{{ number_format($totalTransactions) }}
Total Transactions
8.3% vs last period
@php $formatted_avg = number_format($averageSale, session('business.currency_precision', 2), session('currency.decimal_separator', '.'), session('currency.thousand_separator', ',')); $currency_symbol = session('currency.symbol', '৳'); $symbol_placement = session('business.currency_symbol_placement', 'before'); @endphp @if($symbol_placement == 'before') {{ $currency_symbol }}{{ $formatted_avg }} @else {{ $formatted_avg }} {{ $currency_symbol }} @endif
Average Sale
4.2% vs last period
16.4%
Growth Rate
Trending Up
AI Sales Insights

Best Day

Loading...

Trend

Loading...

Avg Customers/Day

Loading...

Best Seller

Loading...

Sales Trend Over Time

Loading sales data...

Sales by Category

Loading categories...

Top Selling Products
{{ count($topProducts) }} Products
@if(count($topProducts) > 0)
@foreach($topProducts as $index => $product)
{{ $index + 1 }}
{{ $product->product_name ?? $product->name ?? 'Unknown Product' }}
{{ number_format($product->total_quantity ?? $product->total_sold ?? $product->qty_sold ?? 0) }} Units Sold {{ number_format((($product->total_revenue ?? 0) / max($totalSales, 1)) * 100, 1) }}% of Total
@php $product_revenue = $product->total_revenue ?? 0; $formatted_revenue = number_format($product_revenue, session('business.currency_precision', 2), session('currency.decimal_separator', '.'), session('currency.thousand_separator', ',')); $currency_symbol = session('currency.symbol', '৳'); $symbol_placement = session('business.currency_symbol_placement', 'before'); @endphp @if($symbol_placement == 'before') {{ $currency_symbol }}{{ $formatted_revenue }} @else {{ $formatted_revenue }} {{ $currency_symbol }} @endif
@endforeach
@else

No Product Data Available

Start making sales to see your top products here!

@endif
Daily Performance (Last 7 Days)

Loading daily data...

Peak Sales Hours

Analyzing hours...

Conversion Rate
Payment Methods
Customer Types
@endsection @section('javascript') @endsection