
<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="#studentspay" data-toggle="tab">الدفع</a></li>
                {if $studentspays}
                <li><a href="#studentspays" data-toggle="tab"> الدفع  </a></li>
                {/if}
             </ul>               
            <div class="tab-content">
                <hr/>
                 <div class="tab-pane active" id="studentspay">
                   <table class="table table-black border">
                <thead>
                    <tr>
                        <th>المتدرب </th>
                        <th>تخصصات المتدربين</th>
                        <th>المجموعه</th>
                        <th>النظام</th>
                        <th>عددالشهور</th>
                        <th>السعر</th>
                        <th>تاريخ البدايه</th>
                        <th>تاريخ النهايه</th>
                        <th>المستخدم</th>
                        <th>التاريخ</th>
                    </tr>
                </thead>
                <tbody>
                    <tr {if $studentspay->del gt 1} style="background:#fb7777" {/if}>
                        <td>{$studentspay->studentname}</td>
                        <td>{$studentspay->subjectname}</td>
                        <td>{$studentspay->subjectgroupname}</td>
                        <td>{$studentspay->paytype}</td>
                        <td>{$studentspay->paymonths}</td>
                        <td>{$studentspay->payprice}</td>
                        <td>{$studentspay->paystartdate}</td>
                        <td>{$studentspay->payenddate}</td>
                        <td>{$studentspay->employeename}</td>
                        <td>{$studentspay->addtoday}</td>
                    </tr>
                   
                </tbody>
            </table>
                    <br>
                    <div class="clearfix"></div>
                </div>
                
                <div class="tab-pane " id="studentspays">
                <table class="table table-black reportstable">
                <thead>
                    <tr>
                        <th>النظام</th>
                        <th>عددالشهور</th>
                        <th>السعر</th>
                        <th>المتدرب</th>
                        <th>تخصصات المتدربين</th>
                        <th>المجموعه</th>
                        <th>تاريخ البدايه</th>
                        <th>تاريخ  الانتهاء</th>
                        <th>المستخدم</th>
                        <th>التاريخ</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $studentspays as $data}
                    <tr {if $data->del gt 1} style="background:#fb7777" {/if}>
                        <td>{$data->paytype}</td>
                        <td>{$data->paymonths}</td>
                        <td>{$data->payprice}</td>
                        <td>{$data->studentname}</td>
                        <td>{$data->subjectname}</td>
                        <td>{$data->subjectgroupname}</td>
                        <td>{$data->paystartdate}</td>
                        <td>{$data->payenddate}</td>
                        <td>{$data->employeename}</td>
                        <td>{$data->addtoday}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
                <div class="clearfix"></div>
                </div>
                             
            </div>
        </div>
    </div>
</div>


