@extends('pdf.layout') @section('title', 'Product Performance Report') @section('meta-info') @if (isset($start_date) && isset($end_date))

Period: {{ $start_date }} to {{ $end_date }}

@else

Period: All Time

@endif

Total Products: {{ count($products) }}

@endsection @section('content') @forelse($products as $index => $product) @empty @endforelse
# Product Code Product Name Collections Quantity Amount Suppliers Avg Rate
{{ $index + 1 }} {{ $product['product_code'] }} {{ $product['product_name'] }} {{ $product['collection_count'] }} {{ number_format($product['total_quantity'], 3) }} {{ number_format($product['total_amount'], 2) }} {{ $product['unique_suppliers'] }} {{ number_format($product['avg_rate'], 2) }}
No product data available
@endsection