Shopping Cart

@csrf
@forelse($carts as $cart) @php $pro_price = intval(0); $pro_price = (intval($cart->productdata->price)*intval($cart->quantity)); $total_cart_price = intval($total_cart_price) + intval($pro_price) @endphp @empty @endforelse
img {{ $cart->productdata->name }}
- +
$ {{ number_format((intval($cart->quantity)*intval($cart->productdata->price)),2) }}
Total Price: ${{ number_format($total_cart_price,2) }}
@if(sizeof($carts)>0) @endif