@extends('layouts.app') @section('title', 'Product Report') @section('page', 'reports') @section('content') @include('reports.partials.header', [ 'title' => 'Product Performance', 'subtitle' => 'Top selling items from '.$dateFrom.' to '.$dateTo.'.', ])

Items Sold

{{ number_format($totalQty) }}

Total quantity

Product Revenue

{{ money($totalRevenue) }}

Top {{ $topProducts->count() }} products

Top Products

@forelse ($topProducts as $index => $row) @empty @endforelse
# Code Product Qty Sold Revenue
{{ $index + 1 }} {{ $row->product_code ?: '—' }} {{ $row->product_name }} {{ $row->total_qty }} {{ money((float) $row->revenue) }}
No product sales in this period.
@endsection @push('styles') @endpush