@if( $carts && count($carts) > 0 )
{{ translate('Product')}}
{{ translate('Price')}}
{{ translate('Tax')}}
{{ translate('Quantity')}}
{{ translate('Total')}}
{{ translate('Remove')}}
    @php $total = 0; @endphp @foreach ($carts as $key => $cartItem) @php $product = \App\Models\Product::find($cartItem['product_id']); $product_stock = $product->stocks->where('variant', $cartItem['variation'])->first(); $total = $total + ($cartItem['price'] + $cartItem['tax']) * $cartItem['quantity']; $product_name_with_choice = $product->getTranslation('name'); if ($cartItem['variation'] != null) { $product_name_with_choice = $product->getTranslation('name').' - '.$cartItem['variation']; } @endphp
  • {{ $product->getTranslation('name')  }} {{ $product_name_with_choice }}
    {{ translate('Price')}} {{ single_price($cartItem['price']) }}
    {{ translate('Tax')}} {{ single_price($cartItem['tax']) }}
    @if($cartItem['digital'] != 1)
    @endif
    {{ translate('Total')}} {{ single_price(($cartItem['price'] + $cartItem['tax']) * $cartItem['quantity']) }}
  • @endforeach
{{translate('Subtotal')}} {{ single_price($total) }}
@if(Auth::check()) {{ translate('Continue to Shipping')}} @else @endif
@else

{{translate('Your Cart is empty')}}

@endif