Results
{if $item->result}
{if $item->trainingMode === 'admin'} {if $item->result.success}

Congratulations!

{if $item->result.message}{$item->result.message|htmlspecialchars}{else}You have successfully completed "{$item->test.title|htmlspecialchars}" training!{/if}

Your score is {$item->result.score|htmlspecialchars} of {$item->result.maxPoints|htmlspecialchars}

{else}

Ooops!

{if $item->result.message}{$item->result.message|htmlspecialchars}{else}Sorry, you haven't completed "{$item->test.title|htmlspecialchars}" training!{/if}

Your score is {$item->result.score|htmlspecialchars} of {$item->result.maxPoints|htmlspecialchars}

{/if}

Back to All Tests

{else}
{if $item->result.success}

Congratulations!

{if $item->result.message}{$item->result.message|htmlspecialchars}{else}You have successfully completed "{$item->test.title|htmlspecialchars}" training!{/if}

Your score is {$item->result.score|htmlspecialchars} of {$item->result.maxPoints|htmlspecialchars} {if $item->test.certificateId}
and certificate of tobacco compliance
has been sent to indicated email
{$item->user->email|htmlspecialchars} {/if}

{else}

Ooops!

{if $item->result.message}{$item->result.message|htmlspecialchars}{else}Sorry, you haven't completed "{$item->test.title|htmlspecialchars}" training!{/if}

Your score is {$item->result.score|htmlspecialchars} of {$item->result.maxPoints|htmlspecialchars}

{/if} {if $item->continueInfo} {if is_numeric($item->continueInfo.target)}

and you have one more attempt left to take it one more time
within this session or you can come back any time later

{/if}

{if is_numeric($item->continueInfo.showTest)} Try again {/if} {if $item->continueInfo.showList} Back to Trainings List {/if} Close

{/if}

{/if}
{if $item->result.slideResultList && ($item->result.success || !$item->continueInfo.showTest)}

 

Please see the right answers presented below:

{foreach from=$item->result.slideResultList item='slide' name='slides'}
{$slide.slideTitle|htmlspecialchars}
{foreach from=$slide.questions item='row' name='answers'}
{$row.questionText|htmlspecialchars}
{$row.correctAnswerText|default:'-'|htmlspecialchars} {$row.questionScore|money:2:true} points
{/foreach} {/foreach}
{/if} {/if}