
<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="#students" data-toggle="tab">المتدرب</a></li>
                {if $studentaddsubjectdetails}
                <li><a href="#studentaddsubjectdetails" data-toggle="tab">مواد المتدرب</a></li>
                {/if}
                {if $studentsexamsvals}
                <li><a href="#studentsexamsvals" data-toggle="tab"> الاختبارات </a></li>
                {/if}
                {if $studentspays}
                <li><a href="#studentspays" data-toggle="tab"> الدفع</a></li>
                {/if}
                 {if $studentabsences}
                <li><a href="#studentabsences" data-toggle="tab">الغياب  </a></li>
                {/if}
             </ul>               
            <div class="tab-content">
                <hr/>
                 <div class="tab-pane active" id="students">
                    <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 $students->del gt 1} style="background:#fb7777" {/if}>
                                <td>{$students->studentname}</td>
                                <td>{$students->studentnumber}</td>
                                <td>{$students->idnumber}</td>
                                <td>{$students->studentphone}</td>
                                <td>{$students->parentsphone}</td>
                                <td>{$students->studentaddress}</td>
                                <td>{$students->branch}</td>
                                <td>{$payprice}</td>
                                <td>{$students->employeename}</td>
                                <td>{$students->addtoday}</td>
                            </tr>
                            
                        </tbody>
                    </table>
                    <br>
                    <div class="clearfix"></div>
                </div>
                <div class="tab-pane " id="studentaddsubjectdetails">
                <table class="table table-black reportstable">
                    <thead>
                        <tr>
                            <th>تخصصات المتدربين</th>
                            <th>المجموعه</th>
                            <th>السعر</th>
                            <th>المستخدم</th>
                            <th>التاريخ</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $studentaddsubjectdetails as $data}
                        <tr  {if $data->del gt 1} style="background:#fb7777" {/if}>
                            <td>{$data->subjectname}</td>
                            <td>{$data->subjectgroupname}</td>
                            <td>{$data->subjectgroupprice}</td>
                            <td>{$data->employeename}</td>
                            <td>{$data->addtoday}</td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
                <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>
                            <th>المستخدم</th>
                            <th>التاريخ</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $studentsexamsvals as $data}
                       
                        <tr  {if $data->del gt 1} style="background:#fb7777" {/if}>
                            <td>{$data->examname}</td>
                            <td>{$data->greatdegree}</td>
                            <td>{$data->subjectname}</td>
                            <td>{$data->examsvalue}</td>
                            {if $data->examspresence eq 1} <td>حضور</td> {else}<td>غياب</td> {/if}
                            <td>{$data->employeename}</td>
                            <td>{$data->addtoday}</td>
                        </tr>
                        
                        {/foreach}
                    </tbody>
                </table>
                <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}
                        <tr  {if $data->del gt 1} style="background:#fb7777" {/if}>
                            <td>{$data->paytype}</td>
                            <td>{$data->paymonths}</td>
                            <td>{$data->subjectname}</td>
                            <td>{$data->payprice}</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 class="tab-pane " id="studentabsences">
                <table class="table table-black reportstable">
                    <thead>
                        <tr>
                            <th>تخصصات المتدربين</th>
                            <th>المستخدم</th>
                            <th>التاريخ</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $studentabsences as $data}
                        <tr  {if $data->del gt 1} style="background:#fb7777" {/if}>

                            <td>{$data->subjectname}</td>
                            <td>{$data->employeename}</td>
                            <td>{$data->addtoday}</td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
                <div class="clearfix"></div>
                </div>              
            </div>
        </div>
    </div>
</div>


