@csrf @php $total=0; @endphp @foreach($cart as $p) @php $total+=$p->price*$p->quantity; @endphp @endforeach
Product Price Quantity Total Action
{{$p->productName}}
Rs {{ number_format($p->price,2)}}
- @if($p->stock>$p->quantity) + @endif
Rs {{ number_format($p->price*$p->quantity,2) }}
X
Total Rs {{number_format(round($total),2)}} ( Rs {{ number_format($total,2) }})
@if($total>0) @endif