- Updated the PermissionCatalog to remove unnecessary permissions for assignment submissions. - Modified RolePermissionSeeder to align with the updated permissions. - Enhanced useServerTable hook to support resetKeys for Inertia's reset visit option. - Removed obsolete columns.tsx file related to assignment columns. - Revamped assignment index page to utilize InfiniteScroll and improved UI components. - Introduced new assignment status management with enums and updated database schema. - Created GradeSubmissionRequest for validation of submission grading. - Implemented score editing functionality in submission index with real-time updates. - Added accordion component for better UI organization in assignment descriptions.
22 lines
336 B
PHP
22 lines
336 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use App\Enums\Concerns\HasValues;
|
|
|
|
enum AssignmentStatus: string
|
|
{
|
|
use HasValues;
|
|
|
|
case Open = 'open';
|
|
case Closed = 'closed';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Open => 'Dibuka',
|
|
self::Closed => 'Ditutup',
|
|
};
|
|
}
|
|
}
|