@extends('layouts.staff_dashboard') @section('title', 'Topic Coverage') @section('content')

{{ $course->coursename ?? 'Course Modules' }}

Modules

@php // Color palette matching course page $moduleColors = [ '#3b82f6', // Blue '#10b981', // Green '#ef4444', // Red '#f59e0b', // Yellow '#8b5cf6', // Purple '#ec4899', // Pink '#14b8a6', // Teal '#f97316' // Orange ]; @endphp @if($modules->isEmpty())

No modules available for this course.

@else @foreach($modules as $index => $module) @php $color = $moduleColors[$index % count($moduleColors)]; $topicsCount = $module->topics_count ?? 0; @endphp

{{ $module->module ?? 'Unnamed Module' }}

{{ $topicsCount }} Topic{{ $topicsCount !== 1 ? 's' : '' }}
@endforeach @endif

Topics

Select a Module

Click on any module from the left panel to load its topics here.

@endsection