@extends('layouts.front') @section('title')@lang('Shopping Cart') - {{config('app.name')}}@endsection @section('meta-tags') @endsection @section('meta-tags-og') @endsection @section('styles') @endsection @section('scripts') @endsection @section('content')
@if(session()->has('payment_fail')) @endif @if(session()->has('product_not_added')) @endif
@if(Cart::count() > 0)
@foreach($cartItems as $cartItem) @endforeach
@lang('Product') @lang('Description') @lang('Price') @lang('Quantity') @lang('Total')
@if($cartItem->options->has('photo')) @if($cartItem->options->photo)
{{$cartItem->name}}
@endif @endif
{{$cartItem->name}}
{{currency_format($cartItem->options->unit_price)}} {!! Form::open(['method'=>'patch', 'route'=>['front.cart.update', $cartItem->rowId, $cartItem->qty], 'onsubmit'=>'this.disabled = true; return true;']) !!}
{!! Form::close() !!}
{{currency_format($cartItem->total)}} {!! Form::open(['method'=>'delete', 'route'=>['front.cart.destroy', $cartItem->rowId], 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "X"; return true;']) !!}
{!! Form::submit('X', ['class'=>'btn btn-square btn-xs btn-danger', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
PAYMENT SUMMARY

@lang('Price') ({{ Cart::count() }} items)

@lang('Shipping Cost')

@lang('Total Amount')

{{currency_format(Cart::total())}}

@if(config('settings.shipping_cost_valid_below') > Cart::total())

{{currency_format(config('settings.shipping_cost'))}}

@else

Free

@endif @if(config('settings.shipping_cost_valid_below') > Cart::total())

{{currency_format(config('settings.shipping_cost') + Cart::total())}}

@else

{{currency_format(Cart::total())}}

@endif
@else

@lang('The cart is empty.') @lang('Go to Shop')

@endif
@endsection