<div class="container">
    <div class="row">
      <div class="col-12">
          <ul class="list-unstyled titileLi-w">
            <li class="headingText-w">خدمه التدريب</li>
            <li class="headingText-w activeLi-w" style="margin-right:5px">تسجيل حركه المتدرب</li>
          </ul>
      </div>
    </div>
  
    <div class="containerContent-w">

      <div class="row">
        <div class="col-12 col-sm-12 col-md-6 col-lg-6">
            <!-- <button type="button" class="btn btn-outline-success butttonCreate dashButton-w" (click)="onAdd()" *ngIf="authSer.showAddBtn"><i class="fas fa-plus marginFontAowsome-w"></i>إنشاء جديد</button> -->
            <!-- <button type="button" class="btn btn-outline-danger butttonDelete dashButton-w" (click)="onDelete()" *ngIf="authSer.showDeleteBtn"><i class="fas fa-times marginFontAowsome-w"></i>حذف</button> -->
        </div>
        <div class="col-12 col-sm-12 col-md-6 col-lg-6">
          <div class="form-group">
            <input type="text" placeholder="البحث" class="form-control inputSearchTable-w" style="margin-top:13px;" (input)="filtterFunc($event)"/>
            <hr>
          </div>
        </div>
      </div>


      <div class="row">
          <div class="col-12 col-sm-12 col-md-12 col-lg-6">
            <div class="form-group">
              <span class="spanSelect-w">
                <select [ngModel]="dataTableNumber" class="form-control selectButton-w" (input)="onGetValue($event)">
                  <option value="5">5</option>
                  <option value="10">10</option>
                  <option value="15">15</option>
                  <option value="20">20</option>
                </select>
                من العناصر يتم عرضها
              </span>
            </div>
          </div>
   
      </div>
  
      <table class="table table-bordered">
        <thead class="headBackground-w">
          <tr>
            <th> إسم المتدرب</th>
            <th>إسم التخصص</th>
            <th>إسم التخصص الدقيق</th>
            <th> الجامعه</th>
            <th *ngIf="authSer.showEditBtn">تفاصيل المتدرب</th>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let data of dataList | paginate: { itemsPerPage: perPagePagenation, currentPage: currentPage, totalItems: count }; let i = index ">
            <td>{{data.trainee_name}}</td>
            <td> {{data.specialization_name}}</td>
            <td>{{data.specific_specialization}}</td>
            <td>{{data.university}}</td>
            <td *ngIf="authSer.showEditBtn"><button type="button" class="btn btn-outline-secondary" (click)="onEdit(data.id)"><i class="fas fa-edit"></i></button></td>
          </tr>
        </tbody>
      </table>
      <pagination-controls nextLabel="التالي" previousLabel="السابق" (pageChange)="onPageChange($event)"></pagination-controls>
    </div>
  
  
  </div>
  
