@extends('frontend.layout.template') @section('content')
@if(!empty($cart))

SHOPPING CART

@php $discount=0; $tax=0; $subtotal=0; $total=0; @endphp @foreach($cart as $key=>$item) @php $discount=$discount+$item['discount']; $tax=$tax+$item['tax']; $subtotal=$subtotal+($item['price']*$item['quantity']); $total=$total+$item['total']; $product=App\Models\Product::where('id',$item['product_id'])->first(); @endphp @endforeach

{{$item['name']}}

@if(!empty($item['attribute'])) @endif
₹{{$item['price']}}

₹{{$item['price']*$item['quantity']}}

TAX {{$tax}}%
SUBTOTAL ₹{{$subtotal}}
GRAND TOTAL ₹{{$total}}
PROCEED TO CHECKOUT
@else

SHOPPING CART IS EMPTY

You have no items in your shopping cart.

CONTINUE SHOPPING
@endif
@endsection