- Implemented ClassEnrollmentIndex component for managing class enrollments, including adding and removing students. - Created CourseClassIndex component for managing course classes with CRUD functionality. - Developed columns for course management in createCourseColumns function. - Added CourseIndex component for managing courses with CRUD operations. - Introduced types for class enrollment and course class to enhance type safety. - Updated routes to include endpoints for managing courses, course classes, and enrollments.
20 lines
350 B
PHP
20 lines
350 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum ClassMethod: string
|
|
{
|
|
case Online = 'online';
|
|
case Offline = 'offline';
|
|
case Hybrid = 'hybrid';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Online => 'Daring',
|
|
self::Offline => 'Luring',
|
|
self::Hybrid => 'Hybrid',
|
|
};
|
|
}
|
|
}
|