@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 Courses in Cart

@if(count($item)>0)
@foreach($carts as $cart)
@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
@if($cart->course_id != NULL)
{{ $cart->courses->user->fname }}
@else
{{ $cart->bundle->user->fname }}
@endif
{{ csrf_field() }}
{{ csrf_field() }}
    @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
@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) }}% Off

  • {{ __('frontstaticword.Total') }}:{{ $cart_total }}
{{ csrf_field() }}
@endif

{{ csrf_field() }}
@if(Session::has('fail'))
{{ Session::get('fail') }}
@endif @if(Session::has('coupanapplied'))
{{ csrf_field() }}
{{Session::get('coupanapplied')['msg']}}
@endif @endif
@else
{{ __('frontstaticword.cartempty') }}
@endif
@endsection