- Implemented LecturerEdit and LecturerIndex components for managing lecturers. - Created StudentCreate and StudentEdit components for adding and editing students. - Developed StudentIndex component for listing students with search and pagination. - Added department and user types for better type safety. - Updated routes for lecturers and students, including reset password functionality. - Removed AppSidebar from dashboard for a cleaner layout.
22 lines
439 B
PHP
22 lines
439 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum StudentStatus: string
|
|
{
|
|
case Active = 'active';
|
|
case OnLeave = 'on_leave';
|
|
case Graduated = 'graduated';
|
|
case DroppedOut = 'dropped_out';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Active => 'Aktif',
|
|
self::OnLeave => 'Cuti',
|
|
self::Graduated => 'Lulus',
|
|
self::DroppedOut => 'Drop Out',
|
|
};
|
|
}
|
|
}
|