IELTS Test {{ ++$key }}
@if(
in_array($test->listening_test_id, array_column($results, 'test_id')) &&
in_array($test->writing_test_id, array_column($results, 'test_id')) &&
// in_array($test->speaking_test_id, array_column($results, 'test_id')) &&
in_array($test->reading_test_id, array_column($results, 'test_id'))
)
@if(
in_array($test->speaking_test_id, array_column($results, 'test_id')) &&
checkResult($results, $test->listening_test_id) &&
checkResult($results, $test->writing_test_id) &&
checkResult($results, $test->reading_test_id) &&
checkResult($results, $test->speaking_test_id)
)
Submitted
View Result
@else
Submitted
Result Pending
@endif
@php
$firstTestStatus = 'submitted';
@endphp
@else
@if ($firstTestStatus === 'submitted')
Unlocked
Start Test
@php
$firstTestStatus = 'unlocked';
@endphp
@else
Locked
Unlock Test
@endif
@endif