@php $pathwayItems = collect($levels ?? []) ->map(fn (array $level) => [ 'label' => $level['label'].' programs', 'hint' => $level['count'].' '.Str::plural('course', $level['count']), 'href' => route('public.courses.index', ['level' => $level['value']]), 'icon' => match ($level['value']) { 'beginner' => 'courses', 'advanced' => 'spark', default => 'target', }, ]) ->values(); $pathwayItems = $pathwayItems ->push([ 'label' => 'Free courses', 'hint' => 'Try before you enrol', 'href' => route('public.courses.index', ['price' => 'free']), 'icon' => 'payments', ]) ->push([ 'label' => 'All certifications', 'hint' => 'Browse full catalog', 'href' => route('public.courses.index'), 'icon' => 'certificates', ]) ->push([ 'label' => 'Talk to an advisor', 'hint' => 'Get a callback', 'href' => route('home').'#enquiry', 'icon' => 'phone', ]) ->take(8); @endphp

Your success, redefined

Jump into real program pathways based on what’s published on UTAA right now.

Explore catalog
@foreach ($pathwayItems as $index => $pathway) {{ $pathway['label'] }} {{ $pathway['hint'] }} @endforeach