]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6366 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 09:34:49 +0000 (11:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 09:34:55 +0000 (11:34 +0200)
views/index.blade.php

index baafcda4510bd7432ba24453210c8743acb17c79..cb5f5acbd091f4f7b7dc15d436318aabb2141739 100644 (file)
@@ -20,8 +20,8 @@
         @include('components.background',['data'=>$data,'name'=>'background','fit'=>'cover'])
         @include('screens.intro', ['data'=> $data])
         @foreach($data->questions as $key => $question)
-            @php($coundown_enabled = $question["countdown_enable"])
-            @include('screens.question_'.$question['type'], ['theme' => $data->theme,'data'=> $data, 'question' => $question, 'max' => $totalQuestion, 'position' => $key, 'alphabet' => $alphabet, 'countdown' => $coundown_enabled])
+
+            @include('screens.question_'.$question['type'], ['theme' => $data->theme,'data'=> $data, 'question' => $question, 'max' => $totalQuestion, 'position' => $key, 'alphabet' => $alphabet, 'countdown' => isset($question['countdown_enable']) && $question["countdown_enable"]])
         @endforeach
         @include('screens.outro', ['data'=> $data])
         <div id="instantReviewAnimation"></div>