@extends('frontend.layouts.app')
@section('content')
{{ translate('1. My Cart')}}
{{ translate('2. Shipping info')}}
{{ translate('5. Confirmation')}}
@php
$total = 0;
@endphp
@foreach ($carts as $key => $cartItem)
@php
$product = \App\Product::find($cartItem['product_id']);
$total = $total + ($cartItem['price'] * $cartItem['quantity']) + $cartItem['tax'];
$product_name_with_choice = $product->getTranslation('name');
if ($cartItem['variation'] != null) {
$product_name_with_choice = $product->getTranslation('name').' - '.$cartItem['variation'];
}
@endphp
{{translate('Your Cart is empty')}}