@extends('backend.template.layouts.template-base') @section('title', 'Reports - Product Report') @php $tiles = [ ['label' => 'Sales Value', 'value' => '₹' . number_format($summary['revenue'], 2), 'sub' => number_format($summary['qty_sold']) . ' units sold in period', 'accent' => '#0aa437', 'icon' => 'bx-bar-chart-alt-2', 'highlight' => true], ['label' => 'Products', 'value' => number_format($summary['products']), 'sub' => number_format($summary['active']) . ' active', 'accent' => '#465fff', 'icon' => 'bx-package'], ['label' => 'Products Sold', 'value' => number_format($summary['sold_products']), 'sub' => 'had at least one sale', 'accent' => '#12b76a', 'icon' => 'bx-cart'], ['label' => 'Units Sold', 'value' => number_format($summary['qty_sold']), 'sub' => 'excl. cancelled orders', 'accent' => '#f79009', 'icon' => 'bx-layer'], ['label' => 'Stock on Hand', 'value' => number_format($summary['stock_units']), 'sub' => 'units across variants', 'accent' => '#0dcaf0', 'icon' => 'bx-cube'], ['label' => 'Out of Stock', 'value' => number_format($summary['out_of_stock']), 'sub' => 'products at zero stock', 'accent' => '#ef4444', 'icon' => 'bx-error-circle'], ]; @endphp @section('styles') @include('backend.template.reports.partials.styles') @endsection @section('content')
@include('backend.template.reports.partials.header', ['title' => 'Product Report', 'subtitle' => 'Catalogue and sales performance per product']) @include('backend.template.reports.partials.tiles', ['tiles' => $tiles])
@include('backend.template.reports.partials.filter-head')
@include('backend.template.reports.partials.daterange') @include('backend.template.reports.partials.filter-actions', ['resetRoute' => 'backend.template.reports.ProductReport', 'filterKeys' => ['search', 'date_from', 'date_to', 'group_id', 'status', 'stock', 'sold']])
@include('backend.template.reports.partials.table-head', ['paginator' => $products, 'title' => 'Products', 'noun' => 'products'])
@forelse($products as $product) @empty @endforelse
Product Group Default Variant MRP / Price Stock Status Orders Qty Sold Sales Value
{{ $product->name }}
{{ $product->product_code }}
{{ $product->group?->name ?? '—' }} {{ $product->pricing_label ?? '—' }} @if((int)$product->variants > 1)+{{ (int)$product->variants - 1 }} more@endif ₹{{ number_format((float)$product->mrp, 2) }} ₹{{ number_format((float)$product->selling_price, 2) }} {{ number_format((int)$product->stock_qty) }} {{ ucfirst($product->status) }} {{ number_format((int)$product->orders_count) }} {{ number_format((int)$product->qty_sold) }} ₹{{ number_format((float)$product->revenue, 2) }}
No products found for the selected filters.
@include('backend.template.reports.partials.table-foot', ['paginator' => $products])
@endsection @section('scripts') @include('backend.template.reports.partials.scripts') @endsection