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

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

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

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

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

@if(Session::has('cart'))
@php $total = 0; @endphp @foreach (Session::get('cart') as $key => $cartItem) @php $product = \App\Product::find($cartItem['id']); $total = $total + $cartItem['price']*$cartItem['quantity']; $product_name_with_choice = $product->name; if ($cartItem['variant'] != null) { $product_name_with_choice = $product->name.' - '.$cartItem['variant']; } // if(isset($cartItem['color'])){ // $product_name_with_choice .= ' - '.\App\Color::where('code', $cartItem['color'])->first()->name; // } // foreach (json_decode($product->choice_options) as $choice){ // $str = $choice->name; // example $str = choice_0 // $product_name_with_choice .= ' - '.$cartItem[$str]; // } @endphp @endforeach
{{ translate('Product')}} {{ translate('Price')}} {{ translate('Quantity')}} {{ translate('Total')}}
{{ $product_name_with_choice }} {{ single_price($cartItem['price']) }} @if($cartItem['digital'] != 1)
@endif
{{ single_price($cartItem['price']*$cartItem['quantity']) }}
@if(Auth::check()) {{ translate('Continue to shipping info')}} @else @endif
@include('frontend.partials.cart_summary')
@else

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

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