@php $classes = \App\Models\SchoolClass::query()->with('sections')->orderBy('name')->limit(12)->get(); @endphp
@if(!empty($data['heading']))

{{ $data['heading'] }}

@endif
@forelse($classes as $class)

{{ $class->name }}

{{ $class->sections->count() }} section(s)

@empty

Course catalog coming soon.

@endforelse