@php
#Using Recursion (## Can Handel Very Deeply Nested Data)
#Example DataSet
// $DemoData = [
// "Section 1" => [
// "Link 1" => "https://example.com/link1",
// "Link 2" => [
// "url" => "https://example.com/link2",
// "nested" => [
// "Nested Link 1" => "https://example.com/nestedlink1",
// "Nested Link 2" => "https://example.com/nestedlink2",
// ],
// ],
// ],
// "Section 2" => [
// "Link 3" => "https://example.com/link3",
// "Link 4" => "https://example.com/link4",
// ],
// "Section 3" => [
// "Subsection 3.1" => [
// "Subsection Link 1" => "https://example.com/sublink1",
// ],
// "Subsection 3.2" => [
// "url" => "https://example.com/subsection-link",
// "nested" => [
// "Nested Link 1" => [
// "url" => "https://example.com/nested-link-1",
// "nested" => [
// "Deeply Nested Link" => "https://example.com/deeply-nested",
// ],
// ],
// "Nested Link 2" => "https://example.com/nested-link-2",
// ],
// ],
// ],
// ];
$data = [
'1.2.1: Institutional Certificates and Value added Program' => [
'1.2.1.1_2022-23' => [
'nested' => [
'1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development/1.2.1.1.1_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development/1.2.1.1.1_certificate.pdf.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development/1.2.1.1.1_Course Curriculam.pdf',
'Enrolment' => "/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development/1.2.1.1.1_Enrolment.pdf'",
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.1_Basic Knowledge about ASP.NET Empowering Students in Web Development/1.2.1.1.1_Report.pdf',
],
],
'1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.1.2_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.1.2_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.1.2_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.1.2_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.2_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.1.2_Report.pdf',
],
],
'1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering/A_ATTE_1.PDF',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering/B_CERT_1.PDF',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering/C_CURR_1.PDF',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering/D_ENRO_1.PDF',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.3_Different layered Concrete structure work on environmental aspects in structural Engineering/e_Report.pdf',
],
],
'1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.1.4_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.1.4_CERTIFICATE.pd',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.1.4_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.1.4_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.1.4_Report.pdf',
],
],
'1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.1.5_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.1.5_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.1.5_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.1.5_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.1.5_Report.pdf',
],
],
'1.2.1.1.6_Web development fundamentals workshop' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.6_Web development fundamentals workshop/1.2.1.1.6_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.6_Web development fundamentals workshop/1.2.1.1.6_Certificate.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.6_Web development fundamentals workshop/1.2.1.1.6_Course brochure and outcome.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.6_Web development fundamentals workshop/1.2.1.1.6_Curriculum.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.1_2022-23/1.2.1.1.6_Web development fundamentals workshop/1.2.1.1.6_Enrolment.pdf',
],
],
],
],
'1.2.1.2_2021-22' => [
'nested' => [
'1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.2.1_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.2.1_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.2.1_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.2.1_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.1_Basic Knowledge about MATLAB Unlocking the Power of Computational/1.2.1.2.1_Report.pdf',
],
],
'1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development/1.2.1.2.2_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development/1.2.1.2.2_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development/1.2.1.2.2_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development/1.2.1.2.2_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.2_Basic Knowledge about_ASP.NET- Empowering Students in Web Development/1.2.1.2.2_Report.pdf',
],
],
'1.2.1.2.3_Fundamentals of Python technology' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.3_Fundamentals of Python technology/1.2.1.2.3_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.3_Fundamentals of Python technology/1.2.1.2.3_Certificate.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.3_Fundamentals of Python technology/1.2.1.2.3_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.3_Fundamentals of Python technology/1.2.1.2.3_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.3_Fundamentals of Python technology/1.2.1.2.3_Report.pdf',
],
],
'1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.2.4_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.2.4_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.2.4_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.2.4_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.4_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.2.4_Report.pdf',
],
],
'1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.2.5_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.2.5_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.2.5_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.2.5_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.2_2021-22/1.2.1.2.5_Knowledge about Web Technology - Navigating the Digital Frontier/1.2.1.2.5_Report.pdf',
],
],
],
],
'1.2.1.3_2020-21' => [
'nested' => [
'1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development/1.2.1.3.1_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development/1.2.1.3.1_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development/1.2.1.3.1_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development/1.2.1.3.1_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.1_Basic Knowledge about ASP.NET- Empowering Students in Web Development/1.2.1.3.1_Report.pdf',
],
],
'1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.3.2_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.3.2_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.3.2_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.3.2_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.3_2020-21/1.2.1.3.2_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.3.2_Report.pdf',
],
],
],
],
'1.2.1.4_2018-19' => [
'nested' => [
'1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students' => [
'nested' => [
'Attendance sheet' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.4_2018-19/1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.4.1_Attendance sheet.pdf',
'certificate' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.4_2018-19/1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.4.1_CERTIFICATE.pdf',
'Course Curriculam' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.4_2018-19/1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.4.1_Curriculum.pdf',
'Enrolment' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.4_2018-19/1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.4.1_Enrolment.pdf',
'Report' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.4_2018-19/1.2.1.4.1_Introduction to AutoCAD - Unlocking Design Excellence for Students/1.2.1.4.1_Report.pdf',
],
],
],
],
'1.2.1.5_ASSESSMENT PROCEDURES' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.1_Institutional Certificates and Value added Program/1.2.1.5_ASSESSMENT PROCEDURES.pdf',
],
'1.2.2_MOOCS Certificate' => [
'' => [
'nested' => [
'1.2.2_MOOCS Certificate_2022-23' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.2_MOOCS Certificate/1.2.2_MOOCS Certificate_2022-23.pdf',
'1.2.2_MOOCS Certificate_2021-22' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.2_MOOCS Certificate/1.2.2_MOOCS Certificate_2021-22.pdf',
'1.2.2_MOOCS Certificate_2020-21' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.2_MOOCS Certificate/1.2.2_MOOCS Certificate_2020-21.pdf',
'1.2.2_MOOCS Certificate_2019-20' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.2_MOOCS Certificate/1.2.2_MOOCS Certificate_2019-20.pdf',
'1.2.2_MOOCS Certificate_2018-19' => '/QualityIndicatorFrameworks/QIF1/1.2/1.2.2_MOOCS Certificate/1.2.2_MOOCS Certificate_2018-19.pdf',
],
],
],
];
function displayLinks(array $links)
{
echo '';
foreach ($links as $linkText => $linkData) {
echo '- ';
if (is_array($linkData)) {
renderLink($linkText, $linkData);
displayLinks($linkData['nested']);
} else {
renderLinkWithFile($linkText, $linkData);
}
echo '
';
}
echo '
';
}
function renderLink($linkText, $linkData)
{
if (isset($linkData['url'])) {
echo "$linkText";
} else {
echo "$linkText";
}
}
function renderLinkWithFile($linkText, $linkData)
{
echo "$linkText
View File
";
}
@endphp
@php
foreach ($data as $subSectionTitle => $links) {
echo "
- ";
renderLink($subSectionTitle, []);
displayLinks($links);
echo '
';
}
@endphp