diff --git a/app/Filament/Pages/Information/CourseSchedule/Index.php b/app/Filament/Pages/Information/CourseSchedule/Index.php index 2922ee0..53d7dc5 100644 --- a/app/Filament/Pages/Information/CourseSchedule/Index.php +++ b/app/Filament/Pages/Information/CourseSchedule/Index.php @@ -156,16 +156,7 @@ public function scheduleFormSchema(): array Select::make('course_id') ->label('Mata Kuliah') ->options(function () { - $user = auth()->user(); - $lecturer = $user->lecturer; - - if ($lecturer) { - $courses = Course::getOptionsForLecturer($lecturer); - } else { - $courses = Course::all(); - } - - return $courses + return Course::all() ->groupBy('semester') ->mapWithKeys(function ($courses, $semester) { return [ @@ -177,7 +168,8 @@ public function scheduleFormSchema(): array ->searchable() ->live() ->required() - ->columnSpanFull(), + ->columnSpanFull() + ->optionsLimit(100), Grid::make(3) ->schema([