From: Vincent Vanwaelscappel Date: Thu, 3 Jul 2025 14:53:54 +0000 (+0200) Subject: #7600 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=603ae2d922bbd1dd5193d90720daa66380513100;p=fluidbook-toolbox.git #7600 @0.25 --- 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')