{{-- Every chapter, in order. Shared by the web page and the PDF. --}} @foreach ($chapters as $index => $chapter) @php $audienceClass = match ($chapter['audience']) { 'Administrator' => 'is-admin', 'Principal' => 'is-principal', 'Teacher' => 'is-teacher', default => '', }; @endphp
Chapter {{ $index + 1 }}

@gi($chapter['icon'], '#2563eb'){{ $chapter['title'] }}

@gi('people', '#475569') For: {{ $chapter['audience'] }}
@include('user-guide.chapters.' . $chapter['id'])
@endforeach