Skip to main content
The Classes section (/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

ColumnDescription
ClassClass avatar, name, and description (truncated to 2 lines)
Min ageMinimum enrollment age (min_age)
Max ageMaximum enrollment age (max_age)
TeacherName and last name of the assigned teacher
StudentsTotal students enrolled in the class
CreatedClass creation date
ActionButton 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 calls POST /api/admin/get-class-statistics and opens a modal with detailed metrics.

Endpoint

POST /api/admin/get-class-statistics
Content-Type: multipart/form-data

class_id=<class_uuid>
Response:
{
  "success": true,
  "data": { ... }
}
Data comes from the class_dashboard_metrics view filtered by class_id.

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 the classes area enabled in their role. This is configured at /panel/configuracion/roles.