@php $gradients = [ 'from-fuchsia-400 to-purple-600', 'from-rose-400 to-pink-600', 'from-lime-400 to-green-600', 'from-amber-400 to-orange-500', 'from-sky-400 to-blue-600', 'from-emerald-400 to-teal-600', ]; @endphp
{{ __('Back to :name', ['name' => $this->class->name]) }}
@forelse ($this->chapters() as $index => $chapter) @php $gradient = $gradients[$index % count($gradients)]; @endphp

{{ $chapter->name }}

{{ trans_choice(':count Question|:count Questions', $chapter->questions_count) }}

@if ($this->canManageContent())
{{ __('Topics') }} {{ __('Edit') }} {{ __('Delete') }}
@endif
@empty

@if ($this->canManageContent()) {{ __('No chapters yet. Add one to get started.') }} @else {{ __('No chapters yet.') }} @endif

@endforelse