From 603ae2d922bbd1dd5193d90720daa66380513100 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 3 Jul 2025 16:53:54 +0200 Subject: [PATCH] #7600 @0.25 --- resources/views/elearningmedia/index.blade.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/views/elearningmedia/index.blade.php b/resources/views/elearningmedia/index.blade.php index 815cd78cd..f603b0fcd 100644 --- a/resources/views/elearningmedia/index.blade.php +++ b/resources/views/elearningmedia/index.blade.php @@ -1,4 +1,13 @@ - +@php + function elearningTranslate($translations,$str){ + if(!is_array($translations) || !isset($translations[$str]) || !$translations[$str]){ + return $str; + } + return $translations[$str]; + } +@endphp + + @@ -13,7 +22,7 @@ @if($type==='pdf') {{ $translations['Click here once you have completed your learning session']?:'Click here once you have completed your learning session' }} + id="completeButton">{{ elearningTranslate($translations,'Click here once you have completed your learning session') }} @elseif($type==='audio')