/home/techb158/ileadtechnology.com/resources/views/front
Edit: /home/techb158/ileadtechnology.com/resources/views/front/cart.blade.php (16049B)
@extends('theme.master')
@section('title', 'Cart')
@section('content')
@include('admin.message')
{{ __('frontstaticword.ShoppingCart') }}
@php
$item = App\Cart::where('user_id', Auth::User()->id)->get();
if(count($item)>0){
echo count($item);
}
else{
echo "0";
}
@endphp
{{ __('frontstaticword.CoursesinCart') }}
@if(count($item)>0)
@foreach($carts as $cart)
@if($cart->course_id != NULL)
@if($cart->courses['preview_image'] !== NULL && $cart->courses['preview_image'] !== '')
 }})
@else
->toBase64() }})
@endif
@else
@if($cart->bundle['preview_image'] !== NULL && $cart->bundle['preview_image'] !== '')
 }})
@else
->toBase64() }})
@endif
@endif
@if($cart->course_id != NULL)
{{ $cart->courses->user->fname }}
@else
{{ $cart->bundle->user->fname }}
@endif
@php
$currency = App\Currency::first();
@endphp
@if($cart->offer_price == !NULL)
- {{ $cart->offer_price }}
{{ $cart->price }}
@else
- {{ $cart->price }}
@endif
@if($cart->disamount == !NULL)
@if(Session::has('coupanapplied'))
@endif
@endif
@endforeach
iscart==1 && $ad->status==1) {
$code = $ad->code;
echo html_entity_decode($code);
}
}
?>
@if(! $carts->isEmpty())
@php
$cartitems = App\Cart::where('user_id', Auth::User()->id)->first();
@endphp
@if ($cartitems == NULL)
{{ __('frontstaticword.empty') }}
@else
{{ __('frontstaticword.Total') }}:
- {{ __('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) }}% {{ __('frontstaticword.off') }}
- {{ __('frontstaticword.Total') }}:{{ $cart_total }}
@endif
@if(Session::has('fail'))
{{ Session::get('fail') }}
@endif
@if(Session::has('coupanapplied'))
{{Session::get('coupanapplied')['msg']}}
@endif
@endif
@else
{{ __('frontstaticword.cartempty') }}
@endif
@if(! $carts->isEmpty())
@php
$cpns = App\Coupon::get();
$mytime = Carbon\Carbon::now();
@endphp
@foreach($cpns as $cpn)
@if($cpn->expirydate >= $mytime && $cpn->show_to_users == 1)
@endif
@endforeach
@endif
@endsection