@extends("front.$version.layout") @section('pagename') - {{__('Cart')}} @endsection @section('meta-keywords', "$be->cart_meta_keywords") @section('meta-description', "$be->cart_meta_description") @section('styles') @endsection @section('breadcrumb-title', convertUtf8($be->cart_title)) @section('breadcrumb-subtitle', convertUtf8($be->cart_subtitle)) @section('breadcrumb-link', __('Cart')) @section('content')
@if($cart != null)
    @php $cartTotal = 0; $countitem = 0; if($cart){ foreach($cart as $p){ $cartTotal += $p['price'] * $p['qty']; $countitem += $p['qty']; } } @endphp
  • {{__('Total Items')}}: {{$cart ? $countitem : 0}}
  • {{__('Cart Total')}} : {{$bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : ''}} {{$cartTotal}} {{$bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : ''}}
@endif
@if($cart != null) @foreach ($cart as $id => $item) @php $product = App\Product::findOrFail($id); @endphp @endforeach
{{__('Products')}} {{__('Quantity')}} {{__('Availability')}} {{__('Price')}} {{__('Total')}} {{__('Remove')}}
@if ($product->type == 'digital') {{__('Item(s)')}}
{{__('Avilable Now')}} @else @if($product->stock >= $item['qty']) {{__('Item(s)')}}
{{__('Avilable Now')}} @else {{__('Item(s)')}}
{{__('Out Of Stock')}} @endif @endif
{{$bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : ''}} {{$item['price']}} {{$bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : ''}} {{$bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : ''}} {{$item['qty'] * $item['price']}} {{$bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : ''}}
@else

{{__('Cart is empty!')}}

@endif
@if ($cart != null)
@endif
@endsection @section('scripts') @endsection