@foreach($search_data as $course)
@if($course->status == 1)
@if($course['preview_image'] !== NULL && $course['preview_image'] !== '')
@else
@endif
@if($course['level_tags'] == 'trending')
{{__('Trending')}}
@endif
@if($course['level_tags'] == 'featured')
{{__('Featured')}}
@endif
@if($course['level_tags'] == 'new')
{{__('New')}}
@endif
@if($course['level_tags'] == 'onsale')
{{__('Onsale')}}
@endif
@if($course['level_tags'] == 'bestseller')
{{__('Bestseller')}}
@endif
@if($course['level_tags'] == 'beginner')
{{__('Beginner')}}
@endif
@if($course['level_tags'] == 'intermediate')
{{__('Intermediate')}}
@endif
@if(optional($course->user)['user_img'] !== NULL && optional($course->user)['user_img'] !== '')
@else
@endif
-
@php
$data = App\CourseClass::where('course_id', $course->id)->get();
if(count($data)>0){
echo count($data);
}
else{
echo "0";
}
@endphp {{ __('Classes') }}
{{ str_limit($course->short_detail, $limit = 60, $end = '..') }}