aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/members/_studycourse.php
blob: ac1d380aace271a3ff0f8a8c3bbb599ebfc1b215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
if ($count = count($studycourses)) {
    $studycourse = $studycourses->first();
    echo sprintf(
        '%s (%s)',
        htmlReady(trim($studycourse->studycourse_name . ' ' . $studycourse->degree_name)),
        htmlReady($studycourse->semester)
    );;
    if ($count > 1) {
        echo '[...]';
        $course_res = implode("\n", $studycourses->limit(1, PHP_INT_MAX)->map(function ($item) {
            return sprintf(
                '- %s (%s)<br>',
                htmlReady(trim($item->studycourse_name . ' ' . $item->degree_name)),
                htmlReady($item->semester)
            );
        }));
        echo tooltipHtmlIcon('<strong>' . _('Weitere Studiengänge') . '</strong><br>' . $course_res);
    }
}
?>