@foreach($sales as $sale) @endforeach
SALES ANALYSIS REPORT
CUSTOMER PRODUCT CATEGORY QUANTITY UNIT PRICE TOTAL PRICE DATE RECEIPT NO. SOLD BY.
{{ $sale->sale->customer?$sale->sale->customer->name:'Customer not given' }} {{ $sale->product->product_name }} {{ $sale->product->businessproduct->category->name??'' }} {{ $sale->quantity ?? 0 }} {{ number_format($sale->selling_price ?? 0) }} {{ number_format($sale->selling_price*$sale->quantity ?? 0) }} {{ $sale->sale->sale_date ?? '----' }} {{ $sale->sale->receipt ?? '----' }} {{ $sale->user->name ?? '----' }}
Total Amount {{number_format($total)}}