@if(DB::table('courses')->where('type', 5)->where('active', 1)->count() > 0)

Upskill at just @if($cuinfo->countryCode == "IN") ₹199 @else $ 5 @endif

Still thinking of where to Start?

Come and Explore our free courses in the domains of your choice

Become Expert
Data Scientist

Upskill with India's best Data Science course and get Average package of 7.2 LPA.

@php $count2 = 1; @endphp @foreach($course_categories as $r) @if(DB::table('courses')->where('category', $r->id)->where('type', 5)->where('active', 1)->count() > 0)
@php $courses = DB::table('courses')->where('category', $r->id)->where('type', 5)->where('active', 1)->get(); $count3 = 1; @endphp @foreach($courses as $r2) @endforeach
@endif @endforeach
@endif