<div class="card pt-6 pl-6 pr-6">
  <p class="text-3xl" i18n> Approve resources</p>
  <p-table [value]="resources" [paginator]="true" [rows]="10" >
    <ng-template pTemplate="header">
      <tr>
        <th i18n>Resource name</th>
        <th i18n>Resource type</th>
        <th i18n>Creation date</th>
        <th i18n>How resource added</th>
        <th></th>
      </tr>
    </ng-template>
    <ng-template pTemplate="body" let-resource>
      <tr>
        <td>{{resource.resourceName}}</td>
        <td>{{resource.resourceType?.name}}</td>
        <td>{{resource.creationDate| date:"d.M.yyyy, h:mm a"}}</td>
        <td i18n>Manually</td>
        <td>
          <button pButton type="button" routerLink="/resource/{{resource.idResource}}" icon="pi pi-pencil"></button>
        </td>
      </tr>
    </ng-template>
  </p-table>
</div>
