@push('header') @endpush

Moon Traders
SKU & Rates Report
Total Records: {{ number_format($products->total()) }}
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@php $groupedProducts = $products->groupBy(fn($p) => $p->supplier_id ?? 0); @endphp @forelse ($groupedProducts as $supplierId => $supplierProducts) @foreach ($supplierProducts as $idx => $product) @if ($idx === 0) @endif @endforeach @empty @endforelse
Sr# Supplier Name Category SKU Units Invoice Price Retail Price Expiry Price
{{ $products->firstItem() + $products->search(fn($p) => $p->id === $product->id) }} {{ $product->supplier?->supplier_name ?? '-' }} {{ $product->category->name ?? '-' }} {{ $product->product_code }} {{ number_format($product->uom_conversion_factor, 3) }} {{ number_format($product->cost_price, 2) }} {{ number_format($product->unit_sell_price, 2) }} {{ number_format((float) $product->expiry_price, 2) }}
No records found.
@if ($products->hasPages())
{{ $products->links() }}
@endif