@if (customer && customer.orders) {

Orders for {{ customer.firstName | capitalize }} {{ customer.lastName | capitalize }}

@for (order of customer.orders; track ordersTrackBy($index, order)) { }
{{ order.productName }} {{ order.itemCost | currency:'USD':'symbol' }}
Total {{ customer.orderTotal | currency:'USD':'symbol' }}
} @else if (customer && !customer.orders) {

No Orders Found

This customer hasn't placed any orders yet.

} @else {

Customer Not Found

The requested customer could not be located.

}