@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)
@lang('Shopping Cart')
@foreach($cartItems as $cartItem) @endforeach @if(config('settings.shipping_cost_valid_below') > Cart::total()) @if(config('settings.shipping_cost_valid_below') > Cart::total()) @else @endif
@lang('Product') @lang('Unit Price') @lang('Quantity') @lang('Unit Tax (%)') @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() !!}
{{$cartItem->options->unit_tax}} {{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() !!}
@lang('Products') {{Cart::count()}}
@lang('Sub Total') {{currency_format(Cart::total())}}
Tax + {{config('settings.tax_rate')}} %
@lang('Shipping Cost') {{currency_format(config('settings.shipping_cost'))}} @else {{currency_format(0)}} @endif
@lang('Total') {{currency_format(config('settings.shipping_cost') + Cart::total() + (Cart::total() * config('settings.tax_rate')) / 100)}}{{currency_format(Cart::total() + (Cart::total() * config('settings.tax_rate')) / 100)}}
@else

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

@endif
@endsection