@php use App\Helpers\StudentHelper; $logoPath = StudentHelper::collegeLogo(); $ctitle = StudentHelper::collegeCtitle(); $ptitle = StudentHelper::collegePtitle(); $logoExists = $logoPath && file_exists(storage_path('app/public/' . $logoPath)); // ✅ completed flag (based on existing $previousAnswer behavior) $isCompleted = $is_submitted ?? false; $IS_COMPLETED = $isCompleted; $rawAnswer = $previousAnswer ?? ''; // if stored as
...
, extract code only $rawAnswer = preg_replace('#^
|
$#i', '', trim($rawAnswer)); // decode entities: < -> < etc $rawAnswer = html_entity_decode($rawAnswer, ENT_QUOTES | ENT_HTML5, 'UTF-8'); // normalize line endings $rawAnswer = str_replace(["\r\n", "\r"], "\n", $rawAnswer); @endphp @yield('ctitle', $ptitle)
Please Rotate Your Device
This exam requires landscape mode for the best coding experience and to ensure exam integrity.
@if($fullscreen) @endif
Launching Little Buds Coding Studio!
3
Get ready to solve puzzles & earn stars...
LITTLE BUDS CODING STUDIO Solve the puzzle & pass all tests!
@if(!empty($solution)) @endif
{!! $question !!}
{{ $assessment->assname ?? 'Assessment' }} - {{ strtoupper($language) }} Editor
00:00 Copied! @include('student.course.compiler.components.ping-tester')
Run & Output
@if(isset($i1) && $i1 !== null && trim($i1) !== '') @endif @if(isset($i2) && $i2 !== null && trim($i2) !== '') @endif @if(isset($i3) && $i3 !== null && trim($i3) !== '') @endif @if(isset($i4) && $i4 !== null && trim($i4) !== '') @endif
Output
Output here...
@include('student.course.compiler.components.calculator')
@include('student.course.compiler.components.notes-popup')