<ion-header>
    <ion-navbar>
        <button ion-button menuToggle>
            <ion-icon name="menu"></ion-icon>
        </button>
        <ion-title>{{ getTitle() }}</ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <ion-list [virtualScroll]="getItems()" approxItemHeight="141px">
		<ion-item *virtualItem="let item" (doubleTap)="openOptions(item)" [ngClass]="{ 'selected-item': item === getSelectedItem() }">
			<h2>{{ item.name }}</h2>
            <p>
                <strong>Cantidad:</strong>
                {{ item.cart_quantity }}
            </p>
            <p>
                <strong>Subtotal:</strong>
                {{ item.amount_untaxed }}
            </p>
            <p>
                <strong>Impuestos:</strong>
                {{ item.amount_tax }}
            </p>
            <p>
                <strong>Total:</strong>
                {{ item.amount_total }}
            </p>
            <p>
                <strong>Fecha:</strong>
                {{ item.date_order }}
            </p>
		</ion-item>
	</ion-list>
    <ion-fab right bottom>
        <button ion-fab (click)="goToDetails()">
            <ion-icon name="add"></ion-icon>
        </button>
    </ion-fab>
</ion-content>
