<ion-view title="Iniciativas">

    <ion-nav-buttons side="right">
        <button class="button button-clear ion-search bar-icon" ng-click="toggleSearch()"></i></button>
        <button class="button button-clear ion-plus-round bar-icon" ng-click="show()"></i></button>
    </ion-nav-buttons>

    <ion-content>

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

        <ion-list type="card" ng-show="!leads || leads.length != 0">
          <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>
