<vdr-action-bar><vdr-ab-right></vdr-ab-right></vdr-action-bar>

<vdr-data-table
    [items]="items$ | async"
    [itemsPerPage]="itemsPerPage$ | async"
    [totalItems]="totalItems$ | async"
    [currentPage]="currentPage$ | async"
    (pageChange)="setPageNumber($event)"
    (itemsPerPageChange)="setItemsPerPage($event)"
>
    <vdr-dt-column>{{ 'common.code' | translate }}</vdr-dt-column>
    <vdr-dt-column>{{ 'common.enabled' | translate }}</vdr-dt-column>
    <vdr-dt-column></vdr-dt-column>
    <ng-template let-paymentMethod="item">
        <td class="left align-middle">{{ paymentMethod.code }}</td>
        <td class="left align-middle">{{ paymentMethod.enabled }}</td>
        <td class="right align-middle">
            <vdr-table-row-action
                iconShape="edit"
                [label]="'common.edit' | translate"
                [linkTo]="['./', paymentMethod.id]"
            ></vdr-table-row-action>
        </td>
    </ng-template>
</vdr-data-table>
