ok
Direktori : /home2/selectio/www/3-idiots/resources/views/layouts/front-end/partials/ |
Current File : //home2/selectio/www/3-idiots/resources/views/layouts/front-end/partials/_toolbar.blade.php |
<div class="d-table table-fixed w-100"> <a class="d-table-cell cz-handheld-toolbar-item" href="#navbarCollapse" data-toggle="collapse" onclick="window.scrollTo(0, 0)"> <span class="cz-handheld-toolbar-icon"><i class="czi-menu"></i></span> <span class="cz-handheld-toolbar-label">{{\App\CPU\translate('Menu')}}</span></a> <a class="d-table-cell cz-handheld-toolbar-item" href="{{route('wishlists')}}"> <span class="cz-handheld-toolbar-icon"><i class="czi-heart"></i></span> <span class="cz-handheld-toolbar-label">{{\App\CPU\translate('Wishlist')}} (<span class="countWishlist">{{session()->has('wish_list')?count(session('wish_list')):0}}</span>)</span></a> <a class="d-table-cell cz-handheld-toolbar-item" href="{{route('shop-cart')}}"> <span class="cz-handheld-toolbar-icon"><i class="czi-cart"></i> <span class="badge badge-primary badge-pill ml-1" id="cart_count">{{session()->has('cart') && count( session()->get('cart')) > 0 ? count( session()->get('cart')):0}}</span> </span> <span class="cz-handheld-toolbar-label" id="cart_total_price"> @if(session()->has('cart')) @if(count( session()->get('cart')) > 0) <?php $total1 = 0; ?> @foreach(session()->get('cart') as $key => $cartItem1) <?php $product_subtotal1 = \App\CPU\convert_price($cartItem1['price'] * $cartItem1['quantity']); $total1 += $product_subtotal1; ?> @endforeach {{number_format($total1,2).\App\CPU\currency_symbol()}} @else 0{{\App\CPU\currency_symbol()}} @endif @else 0{{\App\CPU\currency_symbol()}} @endif </span> </a> </div>