@extends('pdf.layout') @section('title', 'Product Performance Report') @section('meta-info') @if (isset($start_date) && isset($end_date))
Period: {{ $start_date }} to {{ $end_date }}
@elsePeriod: All Time
@endifTotal Products: {{ count($products) }}
@endsection @section('content')| # | 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 | |||||||