@extends('front.layouts.app') @push('title', __('Shopping Cart')) @section('content')

{{ __('Shopping Cart') }}

@if(count($cart['items']) > 0)
@foreach($cart['items'] as $item) @endforeach
{{ __('Product') }} {{ __('Price') }} {{ __('Quantity') }} {{ __('Discount') }} {{ __('Total') }} {{ __('Actions') }}
{{ $item['name'] }}
{{ $item['name'] }} @if($item['customer_answers'])
@foreach($item['customer_answers'] as $answer)
{{ $answer }}
@endforeach
@endif
{{ config('app.currency_symbol') }}{{ money($item['price']) }}
@if($item['discount'] > 0) -{{ config('app.currency_symbol') }}{{ money($item['discount']) }} @else - @endif {{ config('app.currency_symbol') }}{{ money($item['price'] * $item['qty'] - ($item['discount'] ?? 0)) }}
{{ __('Continue Shopping') }}
{{ __('Cart Summary') }}

{{ __('Subtotal') }}: {{ config('app.currency_symbol') }}{{ money($cart['totals']['subtotal']) }}
@if($cart['totals']['discount'] > 0)
{{ __('Discount') }}: -{{ config('app.currency_symbol') }}{{ money($cart['totals']['discount']) }}
@endif
{{ __('Total') }}: {{ config('app.currency_symbol') }}{{ money($cart['totals']['total']) }}
{{ __('Proceed to Checkout') }}
@else
{{ __('Your cart is empty') }}

{{ __('Add products to your cart to get started') }}

{{ __('Start Shopping') }}
@endif
@endsection @push('js') @endpush