@php($cart=\App\CPU\CartManager::get_cart()) {{$cart->count()}}
    @if($cart->count() > 0) @php($sub_total=0) @php($total_tax=0) @foreach($cart as $cartItem) @php($product=\App\Model\Product::active()->find($cartItem['product_id']))
  • Product
    {{Str::limit($cartItem['name'],30)}}
    {{$cartItem['quantity']}} × {{\App\CPU\Helpers::currency_converter(($cartItem['price']-$cartItem['discount']))}}
    {{\App\CPU\Helpers::currency_converter($cartItem['price']*$cartItem['quantity'])}} {{\App\CPU\Helpers::currency_converter(($cartItem['price']-$cartItem['discount'])*(int)$cartItem['quantity'])}}
  • @php($sub_total+=($cartItem['price']-$cartItem['discount'])*(int)$cartItem['quantity']) @php($total_tax+=$cartItem['tax']*(int)$cartItem['quantity']) @endforeach
  • {{translate('total')}}

    {{\App\CPU\Helpers::currency_converter($sub_total)}}

    @if(auth('customer')->check()) {{translate('view_cart')}} {{translate('go_to_checkout')}} @else @endif
  • @else
    {{translate('empty_Cart')}}
    @endif