@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('Image') @lang('Product Name') @lang('Quantity') @lang('Unit Price') @lang('Total')
@if($cartItem->options->has('photo')) @if($cartItem->options->photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($cartItem->options->photo, 75); @endphp
{{$cartItem->name}}
@else
{{$cartItem->name}}
@endif @endif

{{$cartItem->name}}

@if(is_array($cartItem->options->spec) && count($cartItem->options->spec))
@foreach($cartItem->options->spec as $key => $spec) {{$spec['name']}} : {{$spec['value']}} @if(!$loop->last) @endif @endforeach
@endif
{!! Form::open(['method'=>'patch', 'route'=>['front.cart.update', $cartItem->rowId, $cartItem->qty], 'onsubmit'=>'this.disabled = true; return true;']) !!}
{!! Form::close() !!}
{{currency_format($cartItem->options->unit_price)}} {{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('Products')

@lang('Sub Total')

@lang('Tax')

@lang('Shipping Cost')

@lang('Grand Total')

{{ Cart::count() }} items

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

+ {{ currency_format(Cart::totalFloat() * config('settings.tax_rate')/100)}}

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

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

@else

Free

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

{{currency_format(config('settings.shipping_cost') + Cart::totalFloat() + (Cart::totalFloat() * config('settings.tax_rate')) / 100)}}

@else

{{currency_format(Cart::totalFloat() + (Cart::totalFloat() * config('settings.tax_rate')) / 100)}}

@endif
@else @endif
@endsection