2020-11-25 08:57:17 +01:00
|
|
|
<!-- Begin page -->
|
|
|
|
<div class="wrapper">
|
|
|
|
<app-sidebar></app-sidebar>
|
|
|
|
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
<!-- Start Page Content here -->
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<app-topbar></app-topbar>
|
|
|
|
<!-- Start Content-->
|
|
|
|
<div class="container-fluid" appMenuSelection>
|
2020-12-05 07:30:30 +01:00
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a routerLink="/home">Home</a></li>
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">Accounts</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2020-11-25 08:57:17 +01:00
|
|
|
<div class="card">
|
|
|
|
<mat-card-title class="card-header">
|
|
|
|
Accounts
|
|
|
|
</mat-card-title>
|
|
|
|
<div class="card-body">
|
2021-03-15 12:58:18 +01:00
|
|
|
<div class="row card-header">
|
2020-11-25 08:57:17 +01:00
|
|
|
<mat-form-field appearance="outline">
|
|
|
|
<mat-label> ACCOUNT TYPE </mat-label>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-select id="typeSelect" [(value)]="accountsType" (selectionChange)="filterAccounts()">
|
|
|
|
<mat-option value="all">ALL</mat-option>
|
2020-11-25 08:57:17 +01:00
|
|
|
<mat-option value="user">USER</mat-option>
|
|
|
|
<mat-option value="cashier">CASHIER</mat-option>
|
|
|
|
<mat-option value="vendor">VENDOR</mat-option>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-option value="tokenAgent">TOKENAGENT</mat-option>
|
|
|
|
<mat-option value="group">GROUPACCOUNT</mat-option>
|
2020-11-25 08:57:17 +01:00
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
2021-03-24 14:26:51 +01:00
|
|
|
<button mat-raised-button color="primary" type="button" class="btn btn-outline-primary ml-auto mr-2" (click)="downloadCsv()"> EXPORT </button>
|
2020-11-25 08:57:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<mat-form-field appearance="outline">
|
|
|
|
<mat-label> Filter </mat-label>
|
|
|
|
<input matInput type="text" (keyup)="doFilter($event.target.value)" placeholder="Filter">
|
|
|
|
<mat-icon matSuffix>search</mat-icon>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<mat-table class="mat-elevation-z10" [dataSource]="dataSource" matSort matSortActive="created"
|
|
|
|
matSortDirection="desc" matSortDisableClear>
|
2021-03-15 12:58:18 +01:00
|
|
|
|
2020-11-25 08:57:17 +01:00
|
|
|
<ng-container matColumnDef="name">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> NAME </mat-header-cell>
|
2021-03-02 08:29:14 +01:00
|
|
|
<mat-cell *matCellDef="let user"> {{user?.vcard.fn[0].value}} </mat-cell>
|
2020-11-25 08:57:17 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="phone">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> PHONE NUMBER </mat-header-cell>
|
2021-03-02 08:29:14 +01:00
|
|
|
<mat-cell *matCellDef="let user"> {{user?.vcard.tel[0].value}} </mat-cell>
|
2020-11-25 08:57:17 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="created">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> CREATED </mat-header-cell>
|
2021-03-01 09:12:49 +01:00
|
|
|
<mat-cell *matCellDef="let user"> {{user?.date_registered | date}} </mat-cell>
|
2020-11-25 08:57:17 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="balance">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> BALANCE </mat-header-cell>
|
2021-03-15 12:58:18 +01:00
|
|
|
<mat-cell *matCellDef="let user"> {{user?.balance | tokenRatio}} </mat-cell>
|
2020-12-05 07:30:30 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="location">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> LOCATION </mat-header-cell>
|
2021-03-01 09:12:49 +01:00
|
|
|
<mat-cell *matCellDef="let user"> {{user?.location.area_name}} </mat-cell>
|
2020-11-25 08:57:17 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-row *matRowDef="let account; columns: displayedColumns" (click)="viewAccount(account)" matRipple></mat-row>
|
2020-11-25 08:57:17 +01:00
|
|
|
</mat-table>
|
|
|
|
|
2021-03-15 12:58:18 +01:00
|
|
|
<mat-paginator [pageSize]="defaultPageSize" [pageSizeOptions]="pageSizeOptions" showFirstLastButtons></mat-paginator>
|
2020-11-25 08:57:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<app-footer appMenuSelection></app-footer>
|
|
|
|
</div>
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
<!-- End Page content -->
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
</div>
|