course @if($course->status != STATUS_UPCOMING_APPROVED) @if (date('Y-m-d H:i:s', strtotime('-7 days')) >= $course->created_at) @if (in_array($course->id, $topCourse))

{{__('Best seller')}}

@endif @else {{ __('New course') }} @endif @if($special) {{ __(@$special) }} @endif @else {{ __('Upcoming') }} @endif

{{ Str::limit($course->title, 40)}}

{{ $course->$userRelation->name }}

{{ $course->average_rating }}

★★★★★
★★★★★

({{ @$course->reviews->count() }})

@if($course->learner_accessibility == 'paid') @if(now()->gt($startDate) && now()->lt($endDate))

{{ __('Price') }}: @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $discount_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $discount_price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif

@elseif ($course->price <= $course->old_price)

{{ __('Price') }}: @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->old_price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->old_price }} @endif

@else

{{ __('Price') }}: @if($currencyPlacement ?? get_currency_placement() == 'after') {{ $course->price }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{ $course->price }} @endif

@endif @elseif($course->learner_accessibility == 'free')

{{ __('Free') }}

@endif @if($course->learner_accessibility != 'free' && get_option('cashback_system_mode', 0))
{{__('Cashback')}} :
@if($currencyPlacement ?? get_currency_placement() == 'after') {{calculateCashback($course->price) }} {{ $currencySymbol ?? get_currency_symbol() }} @else {{ $currencySymbol ?? get_currency_symbol() }} {{calculateCashback($course->price) }} @endif
@endif