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