Feat: Enhance Organising Institute selection with Select2 in forms and edit views
This commit is contained in:
@@ -24,8 +24,13 @@ class FacultyController extends Controller
|
||||
// Faculty response form
|
||||
public function ActivitiesAttendedForm()
|
||||
{
|
||||
// Logic to show the response form
|
||||
return view('faculty.activities-attended-form');
|
||||
// Fetch unique organising institutes
|
||||
$organisingInstitutes = ActivitiesAttended::select('organising_institute')
|
||||
->distinct()
|
||||
->pluck('organising_institute');
|
||||
|
||||
// Pass the data to the view
|
||||
return view('faculty.activities-attended-form', compact('organisingInstitutes'));
|
||||
}
|
||||
|
||||
public function viewActivitiesAttendedResponses()
|
||||
|
||||
Reference in New Issue
Block a user