@php
$test = count($courses);
@endphp
@if($test != 0)
@foreach($courses as $course)
@if($course->country != '')
@if( !in_array($usercountry, $course->country) )
@if($course['preview_image'] !== NULL && $course['preview_image'] !== '')
@else
@endif
@if($course['level_tags'] == !NULL)
{{ $course['level_tags'] }}
@endif
@if(Auth::check())
@php
$wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $course->id)->first();
@endphp
@if ($wish == NULL)
-
@else
-
@endif
@else
@endif
-
@php
$data = App\CourseClass::where('course_id', $course->id)->count();
if($data>0){
echo $data;
}
else{
echo "0";
}
@endphp {{ __('Classes') }}
-
@php
$classtwo = App\CourseClass::where('course_id', $course->id)->sum("duration");
@endphp
{{ $classtwo }} {{ __('Minutes')}}
-
@php
$enroll = App\Order::where('course_id', $course->id)->count();
if($enroll>0){
echo $enroll;
}
else{
echo "0";
}
@endphp {{ __('Students') }}
-
@if(isset($course->level_tags))
{{ optional($course)->level_tags }}
@endif
{{ str_limit($course->short_detail, $limit = 125, $end = '..') }}
@if($course->type == 1)
@if($course->discount_price == !NULL)
- {{ currency($course->discount_price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
{{ currency($course->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@else
@if($course->price == !NULL)
- {{ currency($course->price, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@endif
@endif
@else
- {{ __('Free') }}
@endif