Chore: small fixes for the presentation
This commit is contained in:
@@ -57,12 +57,13 @@ class ActivitiesAttendedController extends Controller
|
||||
// Extract year from start_date
|
||||
$year = date('Y', strtotime($validated['start_date']));
|
||||
$username = $response->user->name;
|
||||
$userId = $response->user->id;
|
||||
|
||||
$originalName = $request->file('proof')->getClientOriginalName();
|
||||
$fileName = $username . '_' . $originalName;
|
||||
|
||||
// Create path structure: year/faculty_name
|
||||
$folderPath = 'proofs/' . $year . '/' . $username;
|
||||
$folderPath = 'proofs/' . $year . '/' . $userId . '_' . $username . '/Activities-Attended';
|
||||
|
||||
// Store file in the specified path
|
||||
$proofPath = $request->file('proof')->storeAs($folderPath, $fileName, 'public');
|
||||
|
||||
@@ -55,12 +55,13 @@ class ActivitiesOrganisedController extends Controller
|
||||
// Extract year from start_date
|
||||
$year = date('Y', strtotime($validated['start_date']));
|
||||
$username = $response->user->name;
|
||||
$userId = $response->user->id;
|
||||
|
||||
$originalName = $request->file('proof')->getClientOriginalName();
|
||||
$fileName = $username . '_' . $originalName;
|
||||
|
||||
// Create path structure: year/faculty_name
|
||||
$folderPath = 'proofs/' . $year . '/' . $username;
|
||||
$folderPath = 'proofs/' . $year . '/' . $userId . '_' . $username . '/Activities-Organised';
|
||||
|
||||
// Store file in the specified path
|
||||
$proofPath = $request->file('proof')->storeAs($folderPath, $fileName, 'public');
|
||||
|
||||
@@ -46,7 +46,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewActivitiesOrganisedResponses()
|
||||
{
|
||||
return view('pages.activities-organised.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.activities-organised.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function IvOrganisedForm()
|
||||
@@ -57,7 +58,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewIvOrganisedResponses()
|
||||
{
|
||||
return view('pages.iv-organised.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.iv-organised.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function PublicationsForm()
|
||||
@@ -71,7 +73,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewPublicationsResponses()
|
||||
{
|
||||
return view('pages.publications.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.publications.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function BooksPublishedForm()
|
||||
@@ -82,7 +85,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewBooksPublishedResponses()
|
||||
{
|
||||
return view('pages.booksPublished.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.booksPublished.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function ExternalEngagementForm()
|
||||
@@ -93,7 +97,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewExternalEngagementResponses()
|
||||
{
|
||||
return view('pages.externalEngagement.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.externalEngagement.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function OnlineCoursesForm()
|
||||
@@ -104,7 +109,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewOnlineCoursesResponses()
|
||||
{
|
||||
return view('pages.onlineCourses.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.onlineCourses.index', compact('departments'));
|
||||
}
|
||||
|
||||
public function PatentsForm()
|
||||
@@ -115,7 +121,8 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewPatentsResponses()
|
||||
{
|
||||
return view('pages.patents.index');
|
||||
$departments = Department::all();
|
||||
return view('pages.patents.index', compact('departments'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user