@if(empty($topics) || count($topics) === 0)
@else @php // Color palette $topicColors = [ '#3b82f6', '#10b981', '#ef4444', '#f59e0b', '#8b5cf6', '#ec4899', '#14b8a6', '#f97316' ]; $staff = session('staff_data'); $batch = session('batch_id'); // Get previously covered topics for this module $previouslyCoveredTopics = []; foreach($topics as $topic) { if ($topic->previously_covered) { $previouslyCoveredTopics[] = $topic->id; } } @endphp @endif