@php $cookievalue = json_decode(Cookie::get('carterror'),true)??[]; @endphp
@csrf @php $total=0; @endphp @foreach($cart as $p) @php $total+=$p->price*$p->quantity; $style = (in_array($p->id,$cookievalue)) ? 'style="background-color: coral;"' : ""; @endphp @endforeach
Product Price Quantity Total Action
{{$p->productName}}
₹ {{ number_format($p->price,2)}}
- @if($p->stock>$p->quantity) + @endif
₹ {{ number_format($p->price*$p->quantity,2) }}
X
Total ₹ {{number_format(round($total),2)}}
( ₹ {{ number_format($total,2) }})
@if($total>0) @endif