@if (!$flutterTestResults)
@else
Detail Hasil Praktikum :
Score: {{ $flutterTestResults->score }}
@php
$successTestsArray = json_decode($flutterTestResults->success_tests, true);
$failedTestsArray = json_decode($flutterTestResults->failed_tests, true);
@endphp
Success Tests:
@if(json_last_error() === JSON_ERROR_NONE && is_array($successTestsArray))
@foreach ($successTestsArray as $test)
- {{ htmlspecialchars($test, ENT_QUOTES, 'UTF-8') }}
@endforeach
@else
Error decoding JSON for success tests
@endif
Failed Tests:
@if(json_last_error() === JSON_ERROR_NONE && is_array($failedTestsArray))
@foreach ($failedTestsArray as $test)
- {{ htmlspecialchars($test, ENT_QUOTES, 'UTF-8') }}
@endforeach
@else
Error decoding JSON for failed tests
@endif
@endif