diff --git a/resources/views/frontend/searchCourse.blade.php b/resources/views/frontend/searchCourse.blade.php index b4e4b33..ebc113c 100644 --- a/resources/views/frontend/searchCourse.blade.php +++ b/resources/views/frontend/searchCourse.blade.php @@ -70,19 +70,23 @@ !$selectedCategoryId ? 'checked' : '' }}>
- 1,54,750 + {{ $course->count() }}
@forelse($category as $cat) + @php + // Fetch the count of courses for each category + $courseCount = $cat->course()->count(); + @endphp- 45,770 + {{$courseCount}}