@extends('layouts.app') @section('content')
@if(count($carts) > 0)
@php $total = 0 @endphp @foreach($carts as $cart) @if(!empty($cart->product) > 0) @php $total = $total + checkDiscountedPrice($cart->product) * $cart->quantity; @endphp @endif @endforeach {{-- --}}
    Product Price Quantity Total
× {{$cart->product->name}} {{--
Vendor:

Marketo

--}}
@if(checkDiscountedPrice($cart->product, true)) {!! getPriceColumn($cart->product) !!} {!! getPriceColumn($cart->product,'discount_price') !!} @else {!! getPriceColumn($cart->product) !!} @endif {{$cart->quantity}} {{--
--}}
{!! getPrice($cart->quantity * (checkDiscountedPrice($cart->product))) !!}

Cart totals

Subtotal {!! getPrice($total) !!}
Shipping Free shipping
Total {!! getPrice($total) !!}
@else

No products in the cart.

Return To Shop

@endif
@endsection