<div [@routerTransition]>
 
         
        <div class="m-subheader">
            <div class="row align-items-center">
                <div class="mr-auto col-auto">
                    <h3 class="m-subheader__title m-subheader__title--separator">
                        <span>{{"Emails" | localize}}</span>
                    </h3>
                    <span class="m-section__sub">
                        {{"EmailsHeader" | localize}}
                    </span>
                </div>
                <div class="col text-right mt-3 mt-md-0">
                    <!-- <button *ngIf="'Pages.Shipping.Contacts.Emails.Create' | permission" class="btn btn-primary btn-brand btn-pill" (click)="createEmail()"><i class="fa fa-plus"></i>{{"CreateNewEmail" | localize}}</button> -->
                </div>
            </div>
        </div>
        <div class="m-content">
            <div class="m-portlet m-portlet--mobile">
                <div class="m-portlet__body">
                    <div class="m-form m-form--label-align-right">
                        <form (submit)="getEmails()" autocomplete="off">
                            <div class="form-body">
    
                                <div class="row m--margin-bottom-10">
                                    <div class="col-xl-12">
                                        <label for="Email">{{'Email' | localize}}</label>
                                        <div class="input-group">
                                            <input id="Email" [(ngModel)]="filters.value" name="value" class="form-control" placeholder="{{'SearchWithThreeDot' | localize}}" type="text">
                                            <span class="input-group-btn">
                                                <button class="btn btn-primary btn-brand btn-pill" type="submit"><i class="flaticon-search-1" [attr.aria-label]="l('Search')"></i></button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="row align-items-center">
                        <!--<Primeng-TurboTable-Start>-->
                        <div class="primeng-datatable-container">
                            <p-table #dataTable
                                     (onLazyLoad)="getEmails($event)"
                                     [value]="primengTableHelper.records"
                                     rows="{{primengTableHelper.defaultRecordsCountPerPage}}"
                                     [paginator]="false"
                                     [lazy]="true"
                                     [responsive]="primengTableHelper.isResponsive">
                                <ng-template pTemplate="header">
                                    <tr>
                                        <th style="width:130px">{{'Actions' | localize}}</th>
                                        <!-- <th pSortableColumn="contactId">
                                                {{'contactId' | localize}}
                                                <p-sortIcon field="contactId"></p-sortIcon>
                                            </th> -->
                                            <th pSortableColumn="id">
                                                    {{'EmailId' | localize}}
                                                    <p-sortIcon field="id"></p-sortIcon>
                                                </th>
                                        <th pSortableColumn="value">
                                            {{'Email' | localize}}
                                            <p-sortIcon field="value"></p-sortIcon>
                                        </th>
                                    </tr>
                                </ng-template>
                                <ng-template pTemplate="body" let-record="$implicit">
                                    <tr>
                                        <td style="width: 130px">
                                            <div class="btn-group dropdown" dropdown>
                                                <button dropdownToggle class="dropdown-toggle btn btn-sm btn-primary">
                                                    <i class="fa fa-cog"></i><span class="caret"></span> {{"Actions" | localize}}
                                                </button>
                                                <ul class="dropdown-menu" *dropdownMenu>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="'Pages.Shipping.Contacts.AddressTypes.Update' | permission"
                                                           (click)="updateAddressTypeModal.show(record.id)">{{'Edit' | localize}}</a>
                                                    </li>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="'Pages.Shipping.Contacts.AddressTypes.Delete' | permission"
                                                           (click)="deleteAddressType(record)">{{'Delete' | localize}}</a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </td>
                                        <!-- <td>
                                                <span class="ui-column-title">{{'contactId' | localize}}</span>
                                                {{record.contactId}}
                                            </td> -->
                                            <td>
                                                <span class="ui-column-title">{{'EmailId' | localize}}</span>
                                                {{record.id}}
                                            </td>
                                        <td>
                                            <span class="ui-column-title">{{'Email' | localize}}</span>
                                            {{record.value}}
                                        </td>
                                    </tr>
                                </ng-template>
                            </p-table>
                            <div class="primeng-no-data" *ngIf="primengTableHelper.totalRecordsCount == 0">
                                {{'NoData' | localize}}
                            </div>
                            <div class="primeng-paging-container">
                                <p-paginator [rows]="primengTableHelper.defaultRecordsCountPerPage"
                                             #paginator
                                             (onPageChange)="getEmails($event)"
                                             [totalRecords]="primengTableHelper.totalRecordsCount"
                                             [rowsPerPageOptions]="primengTableHelper.predefinedRecordsCountPerPage">
                                </p-paginator>
                                <span class="total-records-count">
                                    {{'TotalRecordsCount' | localize:primengTableHelper.totalRecordsCount}}
                                </span>
                            </div>
                        </div>
                        <!--<Primeng-TurboTable-End>-->
                    </div>
                </div>
            </div>
        </div>
    
        <createEmailModal #createEmailModal (modalSave)="getEmails()"></createEmailModal>
        <!-- <updateAddressTypeModal #updateAddressTypeModal (modalSave)="getAddressTypes()"></updateAddressTypeModal> -->
    </div>
    