@extends('template.layouts.template-base') @section('title', 'Report & Analytics') @section('styles') @endsection @section('content')
{{-- Product Sales Report --}}
Product Sales Report
{{-- Loader --}} {{-- No data --}} {{-- Chart --}}
{{-- Top 3 Categories --}}
Top 3 Categories
{{-- Loader --}}
{{-- Legend — dynamically rendered --}}
{{-- No data --}}
Top Selling Products
@forelse($topSellingProducts as $product) @php $firstPack = $product->productPackPrice->first(); $firstImage = $firstPack?->ProductPackImages->first(); @endphp @empty @endforelse
Products Price Category Stock Total Revenue Status Action
{{ $product->product_name_en }} {{ $product->product_name_en }} {{ $firstPack ? '₹'.number_format($firstPack->selling_price, 2) : 'N/A' }} {{ $product->categories->pluck('category_name_en')->implode(', ') ?: 'N/A' }} {{ $product->productPackPrice->first()?->productPackInventory?->stock_level ?? '' }} ₹{{ number_format($product->order_items_sum_total_price ?? 0, 2) }} @if($product->status == 1) Active @else Inactive @endif
No sales data yet.
@endsection @section('scripts') @endsection