<ion-view title="Iniciativas">

    <ion-nav-buttons side="right">
        <button class="button button-clear ion-search" style="font-size:22px !important; padding-right: 5px;" ng-click="toggleSearch()"></i></button>
        <button class="button button-clear ion-plus-round" style="font-size:22px !important;  padding-left: 5px;" ng-click="show()"></i></button>
    </ion-nav-buttons>

    <ion-content>

        <ion-refresher pulling-text="Actualizar" on-refresh="fill(true)" spinner="lines"></ion-refresher>
        <ion-spinner class="centered-spinner" ng-show="loading" icon="lines"></ion-spinner>

        <ion-list type="card">
          <ion-item assertive on-hold="openOptions($index)" ng-repeat="l in leads">
              <h2><strong>{{ l.name }}</strong></h2>
              <p><strong>Contacto:</strong>{{ l.contact_name }}</p>
              <p><strong>Teléfono:</strong>{{ l.phone }}</p>
              <p><strong>Celular:</strong>{{ l.mobile }}</p>
              <span class="badge badge-positive">{{ l.meeting_count || 0 }} </span>
          </ion-item>
        </ion-list>

        <div class="" ng-show="!loading && (leads == undefined || leads.length == 0)">
            <img ng-src="data:image/png;base64,[encoded data, 24840 characters]" class="empty-data">
        </div>

    </ion-content>
</ion-view>
