<div class="clear"></div>
    </div>
</div>

<div class="primary_container_test">
    <div class="container_test">
        <div class="primary_container" style="margin-top: 0;">
            <div class="primary_container_body">
                <div id="container_course" style="padding: 0;">
                <?php 
if (!empty($data)) {
    ?>
                    <?php 
    foreach ($data as $key => $item) {
        if (isset($item->test)) {
            $status_test = WUserTest::checkStatus($item['course_id'], $item->test->id);
            ?>
                        <div class="dataList_item_test">
                            <a href="<?php 
            if ($status_test['success'] == 0 || $status_test['success'] == 1) {
                echo Yii::app()->createUrl('wCourseLecture/Introduce', array('course_id' => $item['course_id'], 'lecture_id' => $item['lecture_id'], 'test_id' => $item->test->id));
            } else {
                echo '#';
            }
            ?>
" class="item_direct">
                                <?php 
            if (!empty($item->test->avatar)) {
                ?>
                                <img class="img-thumbnail" src="<?php 
                echo Yii::app()->params['url_base'] . '/uploads/avatars/test/' . $item->test->avatar;