@foreach($sales as $sale) @endforeach
Date Customer Stock Quantity Price/Unit Total Price Profit
{{ $sale->created_at->format('d/m/Y H:i') }} {{ $sale->customer->username }} {{ $sale->product->name }} {{ $sale->quantity }} {{ number_format($sale->selling_price_per_unit) }} {{ number_format($sale->total_price) }} {{ number_format(($sale->selling_price_per_unit - $sale->product->input_price_per_unit) * $sale->quantity) }}