@if($course->intro_video_check == 1 && getVideoFile($course->video))
@endif
@if($course->intro_video_check == 2 && $course->youtube_video_id)
@endif
@if($course->learner_accessibility == 'paid')
@if(now()->gt($startDate) && now()->lt($endDate))
@if(get_currency_placement() == 'after')
{{ $discount_price }} {{ get_currency_symbol() }}
@else
{{ get_currency_symbol() }} {{ $discount_price }}
@endif
@if(get_currency_placement() == 'after')
{{ $course->price }} {{ get_currency_symbol() }}
@else
{{ get_currency_symbol() }} {{ $course->price }}
@endif
{{ getLeftDuration($startDate, $endDate) }} {{ __('Left at this Price') }}!
{{ @$percentage }} % {{ __("off") }}
@elseif($course->price <= $course->old_price)
@if(get_currency_placement() == 'after')
{{ $course->price }} {{ get_currency_symbol() }}
@else
{{ get_currency_symbol() }} {{ $course->price }}
@endif
@if(get_currency_placement() == 'after')
{{ $course->old_price }} {{ get_currency_symbol() }}
@else
{{ get_currency_symbol() }} {{ $course->old_price }}
@endif
@php
$percentage = number_format(((($course->old_price - $course->price) / $course->old_price) * 100), 2);
@endphp
{{ $percentage }} % {{ __("off") }}
@else
@if(get_currency_placement() == 'after')
{{ $course->price }} {{ get_currency_symbol() }}
@else
{{ get_currency_symbol() }} {{ $course->price }}
@endif
@endif
@elseif($course->learner_accessibility == 'free')
@if($course_exits == 'enrolled')
@elseif($course_exits == 'cartList')
@else
@if($course->status == STATUS_APPROVED)
@if($course->learner_accessibility != 'free' && get_option('cashback_system_mode', 0))
@endif
@else
@endif
@endif
@if(get_option('course_gift_mode', 0))
@if(@Auth::user() && Auth::user()->is_affiliator == AFFILIATOR && get_option('referral_status'))