@extends('layouts.front.app') @section('content')
@if(!$cartItems->isEmpty())
@include('layouts.errors-and-messages')

Shopping Cart

@foreach($cartItems as $cartItem)

{{ $cartItem->name }}

@if($cartItem->options->has('combination'))
@foreach($cartItem->options->combination as $option) {{$option['value']}} @endforeach
@endif {!! $cartItem->product->description !!}
{{ csrf_field() }}
{{ csrf_field() }}
{{config('cart.currency')}} {{ number_format($cartItem->price, 2) }}
{{config('cart.currency')}} {{ number_format(($cartItem->qty*$cartItem->price), 2) }}

@endforeach
@if(isset($shippingFee) && $shippingFee != 0) @endif
Subtotal {{config('cart.currency')}} {{ number_format($subtotal, 2, '.', ',') }}
Shipping {{config('cart.currency')}} {{ $shippingFee }}
Tax {{config('cart.currency')}} {{ number_format($tax, 2) }}
Total {{config('cart.currency')}} {{ number_format($total, 2, '.', ',') }}

@else

No products in cart yet. Shop now!

@endif
@endsection @section('css') @endsection