@auth

@php $item = App\Cart::where('user_id', Auth::User()->id)->get(); if(count($item)>0){ echo count($item); } else{ echo "0"; } @endphp Course in List

@foreach($carts as $cart) @endforeach
Photo Course Name Price
@if($cart->course_id != NULL) @if($cart->courses['preview_image'] !== NULL && $cart->courses['preview_image'] !== '') blog @else blog @endif @else @if($cart->bundle['preview_image'] !== NULL && $cart->bundle['preview_image'] !== '') blog @else blog @endif @endif {{$cart->courses['title']}} @php $currency = App\Currency::first(); @endphp @if($cart->offer_price == !NULL) {{ $cart->offer_price }} {{ $cart->price }} @else {{ $cart->price }} @endif
{{ csrf_field() }}
@if($cart->disamount == !NULL) @if(Session::has('coupanapplied'))
@endif @else
@endif

Totals

{{ __('frontstaticword.TotalPrice') }} {{ $price_total }}
{{ __('frontstaticword.OfferDiscount') }} {{ $price_total - $offer_total }}
{{ __('frontstaticword.CouponDiscount') }} @if( $cpn_discount == !NULL) {{ $cpn_discount }} @else {{ __('frontstaticword.ApplyCoupon') }} @endif
{{ __('frontstaticword.DiscountPercent') }}{{ round($offer_percent, 0) }}% Off
Order Total {{ floor($totalpay) }}
{{ csrf_field() }}
@endauth