@extends('theme.master') @section('title', 'Cart') @section('content') @include('admin.message') @php $gets = App\Breadcum::first(); @endphp @if(isset($gets))
@if($gets['img'] !== NULL && $gets['img'] !== '') {{$gets->text}} @else course @endif

{{ __('Shopping Cart') }}

@endif

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

@if($carts != NULL)
@auth @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
  • @php $data = App\CourseClass::where('course_id', $cart->id)->count(); if($data>0){ echo $data; } else{ echo "0"; } @endphp {{ __('Classes') }}
  • @php $classtwo = App\CourseClass::where('course_id', $cart->id)->sum("duration"); @endphp {{ $classtwo }} {{ __('Minutes')}}
  • @php $enroll = App\Order::where('course_id', $cart->id)->count(); if($enroll>0){ echo $enroll; } else{ echo "0"; } @endphp {{ __('Students') }}
  • @if(isset($cart->level_tags))
    {{ optional($cart)->level_tags }}
    @endif
{{ csrf_field() }}
{{ csrf_field() }}
    @if($cart->offer_price == !NULL)
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($cart->offer_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false) )}}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($cart->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}
  • @else
  • {{ activeCurrency()->getData()->position == 'l' ? activeCurrency()->getData()->symbol :'' }}{{ price_format( currency($cart->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = false)) }}{{ activeCurrency()->getData()->position == 'r' ? activeCurrency()->getData()->symbol :'' }}
  • @endif