@if(empty($topics) || count($topics) === 0)

No Topics Found

There are no topics available for this module yet.

@else
@php $topicColors = ['#14b8a6', '#38bdf8', '#818cf8', '#f59e0b', '#10b981', '#ec4899', '#f97316']; $staff = session('staff_data'); $batch = session('batch_id'); @endphp @foreach($topics as $index => $topic) @php $color = $topicColors[$index % count($topicColors)]; $isCovered = !empty($topic->is_covered); @endphp
@csrf

{{ $topic->topic }}

Coding: {{ $topic->coding_count ?? 0 }} MCQ: {{ $topic->mcq_count ?? 0 }}
Open Practice Questions
@endforeach
@endif