
<style type="text/css">
    .dataTables_length,.dataTables_info  {
    width: 0px !important;
    }
   table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
  text-align: center;
}

</style>
<div class="row">
    <div class="container">
        <div class="panel-body">     
            <ul class="nav nav-tabs">
                <li class="active"><a href="#studentsexams" data-toggle="tab">الاختبار</a></li>
                {if $studentsexamsvals}
                <li><a href="#studentsexamsvals" data-toggle="tab"> الاختبارات  </a></li>
                {/if}
             </ul>               
            <div class="tab-content">
                <hr/>
                 <div class="tab-pane active" id="studentsexams">
                    <table class="table table-black border">
                <thead>
                    <tr>
                        <th>اسم </th>
                        <th>الدرجه</th>
                        <th>تخصصات المتدربين</th>
                        <th>المجموعه</th>
                        <th>المستخدم</th>
                        <th>التاريخ</th>
                    </tr>
                </thead>
                <tbody>
                    <tr  {if $studentsexams->del gt 1} style="background:#fb7777" {/if}>
                        <td>{$studentsexams->examname}</td>
                        <td>{$studentsexams->greatdegree}</td>
                        <td>{$studentsexams->subjectname}</td>
                        <td>{$studentsexams->subjectgroupname}</td>
                        <td>{$studentsexams->employeename}</td>
                        <td>{$studentsexams->addtoday}</td>
                    </tr>
                </tbody>
            </table>
                    <br>
                    <div class="clearfix"></div>
                </div>
                
                <div class="tab-pane " id="studentsexamsvals">
                <table class="table table-black reportstable">
                <thead>
                    <tr>
                        <th>الاسم</th>
                        <th>الدرجه</th>
                        <th>حضور</th>
                        <th>المستخدم</th>
                        <th>التاريخ</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $studentsexamsvals as $data}
                    <tr  {if $data->del gt 1} style="background:#fb7777" {/if}>
                        <td>{$data->studentname}</td>
                        <td>{$data->examsvalue}</td>
                        <td>{if $data->examspresence == 1} حضور {else} غياب{/if}</td>
                        <td>{$data->employeename}</td>
                        <td>{$data->addtoday}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
                <div class="clearfix"></div>
                </div>
                             
            </div>
        </div>
    </div>
</div>
