@php
$courseData = [
[
'year' => '2022-23',
'courses' => [
[
'name' => 'Basic Knowledge about ASP.NET Empowering Students in Web Development',
'reportLink' => '/uploads/moocs/2022-23/Basic_Knowledge_about_ASP_NET_Empowering_Students_in_Web_Development/Report.pdf',
'attendanceLink' => '/uploads/moocs/2022-23/Basic_Knowledge_about_ASP_NET_Empowering_Students_in_Web_Development/Attendance.pdf',
],
[
'name' => 'Basic Knowledge about MATLAB Unlocking the Power of Computational',
'reportLink' => '/uploads/moocs/2022-23/Basic_Knowledge_about_MATLAB_Unlocking_the_Power_of_Computational/Report.pdf',
'attendanceLink' => '/uploads/moocs/2022-23/Basic_Knowledge_about_MATLAB_Unlocking_the_Power_of_Computational/Attendance.pdf',
],
[
'name' => 'Different layered Concrete structure work on environmental aspects in structural Engineering',
'reportLink' => '/uploads/moocs/2022-23/Different_layered_Concrete_structure_work_on_environmental_aspects_in_structural_Engineering/Report.pdf',
'attendanceLink' => '/uploads/moocs/2022-23/Different_layered_Concrete_structure_work_on_environmental_aspects_in_structural_Engineering/Attendance.pdf',
],
[
'name' => 'Introduction to AutoCAD - Unlocking Design Excellence for Students',
'attendanceLink' => '/uploads/moocs/2022-23/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Attendance.pdf',
'reportLink' => '/uploads/moocs/2022-23/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Report.pdf',
],
[
'name' => 'Knowledge about Web Technology - Navigating the Digital Frontier',
'attendanceLink' => '/uploads/moocs/2022-23/Knowledge_about_Web_Technology_-_Navigating_the_Digital_Frontier/Attendance.pdf',
'reportLink' => '/uploads/moocs/2022-23/Knowledge_about_Web_Technology_-_Navigating_the_Digital_Frontier/Report.pdf',
],
[
'name' => 'Web development fundamentals workshop',
'attendanceLink' => '/uploads/moocs/2022-23/Web_development_fundamentals_workshop/Attendance.pdf',
'brochureLink' => '/uploads/moocs/2022-23/Web_development_fundamentals_workshop/Brochure.pdf',
'sampleCertificateLink' => '/uploads/moocs/2022-23/Web_development_fundamentals_workshop/Certificate.pdf',
],
],
],
[
'year' => '2021-22',
'courses' => [
[
'name' => 'Basic Knowledge about_ASP.NET- Empowering Students in Web Development',
'attendanceLink' => '/uploads/moocs/2021-22/Basic_Knowledge_about_ASP.NET-_Empowering_Students_in_Web_Development/Attendance.pdf',
'reportLink' => '/uploads/moocs/2021-22/Basic_Knowledge_about_ASP.NET-_Empowering_Students_in_Web_Development/Report.pdf',
],
[
'name' => 'Basic Knowledge about MATLAB Unlocking the Power of Computational',
'attendanceLink' => '/uploads/moocs/2021-22/Basic_Knowledge_about_MATLAB_Unlocking_the_Power_of_Computational/Attendance.pdf',
'reportLink' => '/uploads/moocs/2021-22/Basic_Knowledge_about_MATLAB_Unlocking_the_Power_of_Computational/Report.pdf',
],
[
'name' => 'Fundamentals of Python technology',
'attendanceLink' => '/uploads/moocs/2021-22/Fundamentals_of_Python_technology/Attendance.pdf',
'reportLink' => '/uploads/moocs/2021-22/Fundamentals_of_Python_technology/Report.pdf',
'sampleCertificateLink' => '/uploads/moocs/2021-22/Fundamentals_of_Python_technology/Certificate.pdf',
],
[
'name' => 'Introduction to AutoCAD - Unlocking',
'attendanceLink' => '/uploads/moocs/2021-22/Introduction_to_AutoCAD_-_Unlocking/Attendance.pdf',
'reportLink' => '/uploads/moocs/2021-22/Introduction_to_AutoCAD_-_Unlocking/Report.pdf',
],
[
'name' => 'Knowledge about Web Technology - Navigating the Digital Frontier',
'attendanceLink' => '/uploads/moocs/2021-22/Knowledge_about_Web_Technology_-_Navigating_the_Digital_Frontier/Attendance.pdf',
'reportLink' => '/uploads/moocs/2021-22/Knowledge_about_Web_Technology_-_Navigating_the_Digital_Frontier/Report.pdf',
],
],
],
[
'year' => '2020-21',
'courses' => [
[
'name' => 'Basic Knowledge about ASP.NET- Empowering Students in Web Development',
'attendanceLink' => '/uploads/moocs/2020-21/Basic_Knowledge_about_ASP.NET-_Empowering_Students_in_Web_Development/Attendance.pdf',
'reportLink' => '/uploads/moocs/2020-21/Basic_Knowledge_about_ASP.NET-_Empowering_Students_in_Web_Development/Report.pdf',
],
[
'name' => 'Introduction to AutoCAD - Unlocking Design Excellence for Students',
'attendanceLink' => '/uploads/moocs/2020-21/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Attendance.pdf',
'reportLink' => '/uploads/moocs/2020-21/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Report.pdf',
],
],
],
[
'year' => '2018-19',
'courses' => [
[
'name' => 'Introduction to AutoCAD - Unlocking Design Excellence for Students',
'attendanceLink' => '/uploads/moocs/2018-19/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Attendance.pdf',
'reportLink' => '/uploads/moocs/2018-19/Introduction_to_AutoCAD_-_Unlocking_Design_Excellence_for_Students/Report.pdf',
],
],
],
];
@endphp
@foreach ($courseData as $yearData)
-
—{{ $yearData['year'] }}
@foreach ($yearData['courses'] as $course)
@php
$links = [
'reportLink' => isset($course['reportLink']) ? rawurlencode($course['reportLink']) : '',
'brochureLink' => isset($course['brochureLink']) ? rawurlencode($course['brochureLink']) : '',
'attendanceLink' => isset($course['attendanceLink']) ? rawurlencode($course['attendanceLink']) : '',
'sampleCertificateLink' => isset($course['sampleCertificateLink']) ? rawurlencode($course['sampleCertificateLink']) : '',
];
@endphp
-
Course Name: {{ $course['name'] }}
@endforeach
@endforeach