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

Upskill at just ₹199

Still thinking of where to Start?

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

Best Courses

Working together, a professor two students

@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