
<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="#studentspaymentsystems" data-toggle="tab">النظام</a></li>
                {if $studentspays}
                <li><a href="#studentspays" data-toggle="tab"> الدفع    ({count($studentspays)}) / 
                ({count($studentspays) - $studentspaydel}) / ({$studentspaydel})</a></li>
                {/if}
             </ul>               
            <div class="tab-content">
                <hr/>
                 <div class="tab-pane active" id="studentspaymentsystems">
                    <table class="table table-black border">
                <thead>
                    <tr>
                        <th>اسم </th>
                        <th>السعر</th>
                        <th>عدد الشهور</th>
                        <th>تخصصات المتدربين</th>
                        <th>الدفع</th>
                        <th>المستخدم</th>
                        <th>التاريخ</th>
                    </tr>
                </thead>
                <tbody>
                    {if $studentspaymentsystems->del lt 2}
                    <tr >
                        <td><a href="studentsPaymentSystems.php?do=edit&id={$studentspaymentsystems->id}" class="btn btn-default btn-lm" target="_blank">{$studentspaymentsystems->paymentname}</a></td>
                        <td>{$studentspaymentsystems->paymentprice}</td>
                        <td>{$studentspaymentsystems->paymentmonth}</td>
                        <td>{$studentspaymentsystems->subjectname}</td>
                        <td>{$payprice}</td>
                        <td>{$studentspaymentsystems->employeename}</td>
                        <td>{$studentspaymentsystems->addtoday}</td>
                    </tr>
                    {else}
                    <tr style="background:#fb7777">
                        <td>{$studentspaymentsystems->paymentname}</td>
                        <td>{$studentspaymentsystems->paymentprice}</td>
                        <td>{$studentspaymentsystems->paymentmonth}</td>
                        <td>{$studentspaymentsystems->subjectname}</td>
                        <td>{$payprice}</td>
                        <td>{$studentspaymentsystems->employeename}</td>
                        <td>{$studentspaymentsystems->deltoday}</td>
                    </tr>
                    {/if}
                </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>
                    </tr>
                </thead>
                <tbody>
                    {foreach $studentspays as $data}
                    {if $data->del lt 2}
                    <tr >
                        <td><a href="studentsPay.php?do=edit&id={$data->id}" class="btn btn-default btn-lm" target="_blank">{$data->studentname}</a></td>
                        <td>{$data->subjectname}</td>
                        <td>{$data->subjectgroupname}</td>
                        <td>{$data->payprice}</td>
                        <td>{$data->paystartdate}</td>
                        <td>{$data->payenddate}</td>
                        <td>{$data->employeename}</td>
                        <td>{$data->addtoday}</td>
                    </tr>
                    {else}
                    <tr style="background:#fb7777">
                        <td>{$data->studentname}</td>
                        <td>{$data->subjectname}</td>
                        <td>{$data->subjectgroupname}</td>
                        <td>{$data->payprice}</td>
                        <td>{$data->paystartdate}</td>
                        <td>{$data->payenddate}</td>
                        <td>{$data->employeename}</td>
                        <td>{$data->deltoday}</td>
                    </tr>
                    {/if}
                    {/foreach}
                </tbody>
            </table>
                <div class="clearfix"></div>
                </div>
                             
            </div>
        </div>
    </div>
</div>
