<link rel="stylesheet" href="<?=base_url();?>assets/css/jadval.css" media="all" type="text/css">
<div class="container">

<h3 style="text-align:center;">Mandat natijalari</h3>

        <div style="margin-top: 20px;" class="usercontent ui-corner-all sticky-wrap">
        <table cellpadding="0" cellspacing="30">
        <tbody><tr><th>T/R</th><th>Test nomi</th><th>Sizning ball</th><th>O'tish ball'i</th><th>Holati</th><th>Remarks</th><th>Ma'lumotlarni ko'rish</th></tr>
        <?php
        $count = 1;
        foreach ($exams_attempted as $exam) 
        {?>
          <tr>
                <td><?=$count;?>.</td>
                <td><?=$exam['examname'];?></td>
                <td style="text-align:center"><?=$exam['percentage'];?>%</td>
                <td style="text-align:center"><?=$exam['exampassmark'];?>%</td>
                <td style="text-align:center"><?=$exam['status'];?></td>
                <td>
                <?php
                if($exam['passed'])
                {
                        echo '<span class="passed">Yakunlangan</span>';
                }
                else
                {
                        echo '<span class="failed">Qayta topshirish</span>';
                }
                ?>
                </td>
                <td style="text-align:center"><a href="<?=base_url();?>users/results_summary/<?=$exam['examid'];?>"><img src="<?=base_url();?>assets/images/view-icon.png"></a></td>
          </tr>
        <?php
        $count ++;
        }
        ?>

        </tbody></table>

        </div>
</div>
<style type="text/css">
.datatable {
border: 1px solid #D6DDE6;
border-collapse: collapse;
text-align: center;
width: 100%;
font-size: 1em;
}
table {
border: 0;
background: #F5F9F4;
font-family: verdana,sans-serif;
font-size: 1.2em;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.datatable th {
border: 1px solid #828282;
background-color: #FCC;
font-weight: 100;
text-align: left;
padding: 1em;
}
.datatable td {
border: 1px solid #D6DDE6;
padding: 1em;
}
</style>

