<div
  class="account-hub__card member-card {{#if admin}}member-card-admin{{/if}} {{#if remove}}member-card-select{{/if}}">
  {{#ifCond admin '||' card-label}}
    <span class="member-card__label">
      {{#if admin}}
        Admin
      {{else}}
        {{ card-label }}
      {{/if}}
    </span>
  {{/ifCond}}
  {{#if remove}}
    <div class="member-card__select">
      {{> checkbox id=id value=id autocomplete-off="true" name="customersEmails"}}
    </div>
  {{/if}}
  <div class="member-card__wrapper">
    <div class="member-card__personal">
      <p class="member-card__name">
        {{name}}
      </p>
      <p class="member-card__email">
        {{email}}
      </p>
    </div>
    {{#unless remove}}
      <div class="member-card__footer">
        {{#unless admin}}
          <p class="member-card__date">
            {{date}}
          </p>
        {{/unless}}
        {{#if order-history-url}}
          {{#unlessCond admin '&&' member-view}}
            <a href="{{order-history-url}}" class="btn btn-primary">
              View order history
            </a>
          {{/unlessCond}}
        {{/if}}
      </div>
    {{/unless}}
  </div>
</div>
