<div class="reprot">
  <div class="container">
      <div class="containerContent-w">
          <div class="row">
              <button class="btn btn-success" style="float:right;margin:10px 0;" (click)="onPrint()">طباعه</button>
              <div class="col-12">
                <table class="table table-bordered text-center">
                  <thead>
                    <tr>
                      <th>إسم المجموعه</th>
                      <th>اسم الموظف</th>
                      <th>اسم الاداره</th>
                      <th>أسم الموظف مانح الصلاحيه</th>
                      <th>تاريخ المنح</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr *ngFor="let data of reportData; let i = index">
                      <td>{{data.role_name}}</td>
                      <td>
                        <p *ngFor="let user of data.users">
                          {{user.name}}
                        </p>
                      </td>
                      <td>
                        <p *ngFor="let user of data.users">
                          {{user.adminstration_name}}
                        </p>
                      </td>
                      <td>
                        <p *ngFor="let user of data.users">
                          {{user.asigned_by}}
                        </p>
                      </td>
                      <td>
                        <p *ngFor="let user of data.users">
                          {{user.asigned_at}}
                        </p>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
      </div>
  </div>
</div> 