@php $categories = $categories ?? collect(); $courses = $courses ?? collect(); $activeCategory = $activeCategory ?? 'all'; $activeLevel = $activeLevel ?? null; $studyLevels = $studyLevels ?? collect(); $activeLocation = $activeLocation ?? null; $activeUniversity = $activeUniversity ?? null; $activeIntake = $activeIntake ?? null; $activeLevelModel = $activeLevel ? $studyLevels->firstWhere('slug', $activeLevel) : null; $activeLabel = $activeLevelModel ? $activeLevelModel->name : ($activeCategory === 'all' ? 'All Courses' : ($categories->firstWhere('slug', $activeCategory)?->name ?? 'All Courses')); $activeCount = $courses->count(); $availableLocations = $availableLocations ?? collect(); $availableUniversities = $availableUniversities ?? collect(); $intakeOptions = $intakeOptions ?? collect(); @endphp

{{ $activeLabel }}

{{ $activeCount }} programme{{ $activeCount === 1 ? '' : 's' }} available

Get Advice
@forelse($courses as $course)
@empty @endforelse

No courses found in this category.