/panel/clases) shows all classes on the platform, fetched from the classes_with_teacher view and sorted alphabetically by name. Administrators can filter classes and view detailed statistics for each one.
Classes table
Available columns
| Column | Description |
|---|---|
| Class | Class avatar, name, and description (truncated to 2 lines) |
| Min age | Minimum enrollment age (min_age) |
| Max age | Maximum enrollment age (max_age) |
| Teacher | Name and last name of the assigned teacher |
| Students | Total students enrolled in the class |
| Created | Class creation date |
| Action | Button to view detailed statistics |
Filters
Text search
Filters by class name, description, creation date, or teacher name. Search is case-insensitive and reactive.
Filter by teacher
Dropdown listing all teachers who have at least one class. Select
All to remove the filter.Age range
Dual-handle slider (min 8, max 40). Filters classes whose
min_age and max_age fall within the selected range.Class statistics
Clicking the chart icon on a class row callsPOST /api/admin/get-class-statistics and opens a modal with detailed metrics.
Endpoint
class_dashboard_metrics view filtered by class_id.
Modal metrics
Enrolled users (last 6 months)
Line chart showing monthly new enrollment counts over the last 6 months (
enrolled_last_6_months).Containment situations (last 6 months)
Bar chart showing monthly containment situation counts in the class (
situations_last_6_months).Class average
Average performance percentage for the class (
class_avg_pct), displayed prominently in the center.Students by age
Donut chart showing the age distribution of enrolled students (
ages).Students by sex
Donut chart showing the proportion of female (
sex_female) and male (sex_male) students.The modal shows a loading spinner while data is being fetched. If the request fails, the modal closes automatically.
Required permissions
To access the Classes section, the administrator must have theclasses area enabled in their role. This is configured at /panel/configuracion/roles.