{{-- --}} {{-- --}} @php $total_quantity=0; $total_amount=0; @endphp @foreach($customer_sales as $customer_sale) {{-- --}} {{-- --}} @endforeach {{-- --}}
Invoice No. Date Customer Name Employee NameSaved ByProducts Action
{{$customer_sale->invoice_no}} {{$customer_sale->sale_date}} {{$customer_sale->customer->customer_name}} {{$customer_sale->employee->name}}Admin @foreach($customer_sale->salesProduct as $product) @endforeach
Name Price Quantity Total
{{$product->product_name}} {{$product->sale_price}} {{$product->quantity}} @php $total_quantity= $total_quantity + $product->quantity; $total_amount= $total_amount + ($product->quantity * $product->sale_price); @endphp {{$product->quantity * $product->sale_price}}
Total5Total Amount :{{$total_amount}}
Total Quantity : {{$total_quantity}}