@foreach($courses as $c) @if($c->status == 1)
@if($c['preview_image'] !== NULL && $c['preview_image'] !== '') course @else course @endif
  • @if(Auth::check())
  • @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $c->id)->first(); @endphp @if ($wish == NULL)
  • {{ csrf_field() }}
  • @else
  • {{ csrf_field() }}
  • @endif @else
  • @endif
@if($c['level_tags'] == 'trending')
{{__('Trending')}}
@endif @if($c['level_tags'] == 'featured')
{{__('Featured')}}
@endif @if($c['level_tags'] == 'new')
{{__('New')}}
@endif @if($c['level_tags'] == 'onsale')
{{__('On-sale')}}
@endif @if($c['level_tags'] == 'bestseller')
{{__('Bestseller')}}
@endif @if($c['level_tags'] == 'beginner')
{{__('Beginner')}}
@endif @if($c['level_tags'] == 'intermediate')
{{__('Intermediate')}}
@endif
@endif @endforeach