@extends('frontend.layouts.app') @section('content')

{{ translate('1. My Cart')}}

{{ translate('2. Shipping info')}}

{{ translate('5. Confirmation')}}

{{-- @if( Session::has('cart') && count(Session::get('cart')) > 0 ) --}} @if( $carts && count($carts) > 0 )
{{ translate('Product')}}
{{ translate('Price')}}
{{ translate('Tax')}}
{{ translate('Quantity')}}
{{ translate('Total')}}
    @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
  • {{  $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
@csrf @if(Auth::check())
@foreach (Auth::user()->addresses as $key => $address)
@endforeach
{{ translate('Add New Address') }}
@else
@if(Auth::Check())
@endif
{{translate('Subtotal')}} {{ single_price($total) }}
{{translate('Shipping Cost')}}
{{translate('Total')}}
@endif
@else

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

@endif
@endsection @section('modal') @endsection @section('script') @endsection