@foreach($storepurchases as $storepurchase) @endforeach
STORE PURCHASES REPORT
PRODUCT QUANTITY UNIT PRICE TOTAL Date
{{ $storepurchase->product->product_name }} {{ $storepurchase->quantity ?? 0 }} {{ number_format($storepurchase->buying_price ?? 0) }} {{ number_format($storepurchase->buying_price*$storepurchase->quantity ?? 0) }} {{ $storepurchase->purchase->date ?? '----' }}
Total {{ number_format($total) }}