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

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

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

{{ translate('3. Delivery info') }}

{{ translate('4. Payment') }}

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

@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']; $total = $total + cart_product_price($cartItem, $product, false) * $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') }} {{ cart_product_price($cartItem, $product, true, false) }}
    {{ translate('Tax') }} {{ cart_product_tax($cartItem, $product) }}
    @if ($cartItem['digital'] != 1 && $product->auction_product == 0)
    @elseif($product->auction_product == 1) 1 @endif
    {{ translate('Total') }} {{ single_price(cart_product_price($cartItem, $product, false) * $cartItem['quantity']) }}
  • @endforeach
{{ translate('Subtotal') }} {{ single_price($total) }}
@if (Auth::check()) {{ translate('Continue to Shipping') }} @else @endif
@else

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

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