<Card title="Training Analytics" subtitle="Overview for all cohorts · Last updated 2 minutes ago">
<Columns>
<Stat label="Active learners this week" value="1,284" change="+8.2% vs last week" icon="users" tone="success" />
<Stat label="Course completion rate" value="74%" change="+3.1 pts" icon="chart-line" tone="info" />
<Stat label="Average quiz score" value="82.5%" change="+1.4 pts" icon="check-circle" tone="success" />
</Columns>
</Card>

<Card title="Cohort filter and messaging" subtitle="Narrow the dashboard or reach out to a group">
<Form name="cohort">
<Select label="Cohort" name="cohort" placeholder="All cohorts" options="All cohorts | Marketing Q1 | Sales Onboarding | Engineering Interns | Customer Success" />
<Button variant="primary" label="Apply filter">Apply filter</Button>
</Form>
<Callout tone="info" title="Message cohort">
<Form name="message">
<TextArea label="Message" name="message" rows="3" placeholder="e.g., Reminder: Quiz 3 closes Friday. Great progress so far!" />
<Button label="Send to cohort">Send to cohort</Button>
</Form>
</Callout>
</Card>

<Card title="Engagement over the past eight weeks" subtitle="Active learners per week">
<Chart type="line" x="Week" y="Active learners">
| Week | Active |
|---|---|
| W1 | 940 |
| W2 | 1012 |
| W3 | 1105 |
| W4 | 1198 |
| W5 | 1240 |
| W6 | 1185 |
| W7 | 1302 |
| W8 | 1284 |
</Chart>
</Card>

<Card title="Courses ranked by enrollment" subtitle="Top 5 by current enrollment">
<Chart type="horizontal" x="Course" y="Enrolled">
| Course | Enrolled |
|---|---|
| Data Fundamentals | 412 |
| Leadership Essentials | 356 |
| Python for Beginners | 298 |
| Project Management 101 | 241 |
| Customer Support Skills | 187 |
</Chart>
</Card>

<Card title="Learners at risk of dropping out" subtitle="Based on low activity, incomplete quizzes, or declining scores">
<Columns>
<Stat label="At risk" value="37" change="+5 vs last week" icon="warning" tone="warning" />
</Columns>
<Table>
| Learner | Cohort | Last active | Quiz trend | Risk |
|---|---|---|---|---|
| Maya Chen | Marketing Q1 | 12 days ago | Down 18% | <Badge tone="danger">High</Badge> |
| Liam Patel | Sales Onboarding | 8 days ago | Down 9% | <Badge tone="warning">Medium</Badge> |
| Sofia Reyes | Engineering Interns | 15 days ago | Down 22% | <Badge tone="danger">High</Badge> |
| Noah Kim | Customer Success | 6 days ago | Down 5% | <Badge tone="warning">Medium</Badge> |
| Ava Novak | Marketing Q1 | 3 days ago | Down 3% | <Badge tone="neutral">Low</Badge> |
</Table>
</Card>

<Card title="Cohort comparison" subtitle="Completion rate and quiz score by cohort">
<Chart type="bar" x="Cohort" y="Percentage">
| Cohort | Completion | Avg quiz |
|---|---|---|
| Marketing Q1 | 68 | 79 |
| Sales Onboarding | 81 | 86 |
| Engineering Interns | 72 | 88 |
| Customer Success | 76 | 84 |
</Chart>
</Card>

<FollowUps>
- Which cohort has the highest dropout risk right now?
- Show the week-by-week quiz scores for Engineering Interns.
- Draft a message to the 37 at-risk learners.
</FollowUps>