@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
| Photo | Course Name | Price | |
|---|---|---|---|
|
@if($cart->course_id != NULL)
@if($cart->courses['preview_image'] !== NULL && $cart->courses['preview_image'] !== '')
|
{{$cart->courses['title']}} |
@php
$currency = App\Currency::first();
@endphp
@if($cart->offer_price == !NULL)
{{ $cart->offer_price }}
|
|
| @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) }} |