<div class="reprot">
  <div class="container">
      <div class="containerContent-w">
          <div class="row">
              <div class="col-12">
                <button class="btn btn-success" style="float:right; margin: 10px 0;" (click)="onPrint()" *ngIf="authSer.showPrintBtn">طباعه</button>
                 <table class="table table-bordered text-center">
                  <thead>
                    <tr>
                      <th>إسم الموظف</th>
                      <th>إسم المجموعه</th>
                      <th>إسم الصفحه</th>
                      <th>نوع الصلاحيه</th>
                      <th>إسم الموظف مانح الصلاحيه</th>
                      <th>تاريخ المنح</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr *ngFor="let data of reportData; let i = index">
                      <td><p>{{data['user'].name}}</p></td>
                      <td><p *ngFor="let role of data['roles']">{{role.role_name}}</p></td>
                      <td><p *ngFor="let role of data['roles']">
                        <span style="display:block; margin: 10px 0;" *ngFor="let page of role['pages']">
                          {{page.name}}
                          <span style="display:block" *ngFor="let p of page.permissions"><br></span>
                        </span>
                      </p></td>
                      <td><p *ngFor="let role of data['roles'][i].pages"><span style="display: block; margin-bottom: 6px;" *ngFor="let page of role['permissions']">{{page.permission_name}}</span></p></td>
                      <td><p *ngFor="let role of data['roles'][i].pages"><span style="display: block; margin-bottom: 6px;" *ngFor="let page of role['permissions']">{{page.asigned_by}}</span></p></td>
                      <td><p *ngFor="let role of data['roles'][i].pages"><span style="display: block; margin-bottom: 6px; font-size:14px" *ngFor="let page of role['permissions']">{{page.created_at}}</span></p></td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
      </div>
  </div>
</div>