<div class="panel panel-default" ng-style="panelStyle">
    <div class="panel-heading clearfix" ng-style="panelHeadingStyle">
        <div class="row">
            <!--FontAwesome icon-->
            <div class="col-xs-3">
                <i class="fa fa-4x" ng-class="iconClass" aria-hidden="true"></i>
            </div>

            <!--Value and label-->
            <div class="col-xs-9" style="text-align: right">
                <h4 class="aggregate-value">{{ value }}</h4>
                <h5 class="aggregate-label" ng-bind-html="label"></h5>
            </div>
        </div>
    </div>
    <div class="list-group">
        <!--View details "button"-->
        <a ng-click="setViewType()"
           class="list-group-item"
           style="display: flex; align-items: center; padding-left: 0">
            <span class="col-md-10">View details</span>
            <i class="fa fa-arrow-circle-right col-md-offset-1 col-md-1" aria-hidden="true"></i>
        </a>
    </div>
</div>

<div class="panel panel-default" ng-style="panelStyle">
    <div    ng-click="setViewType()"
            class="panel-heading clearfix"
            ng-style="panelHeadingStyle">
        <div class="row">
            <!--FontAwesome icon-->
            <div class="col-xs-3">
                <i class="fa fa-4x" ng-class="iconClass" aria-hidden="true"></i>
            </div>

            <!--Value and label-->
            <div class="col-xs-9" style="text-align: right">
                <h4 class="aggregate-value">{{ value }}</h4>
                <h5 class="aggregate-label" ng-bind-html="label"></h5>
            </div>
        </div>
    </div>
    <div class="list-group">
        <!--View details "button"-->
        <a ng-click="setViewType()"
           class="list-group-item"
           style="display: flex; align-items: center; padding-left: 0">
            <span class="col-md-10">View details</span>
            <i class="fa fa-arrow-circle-right col-md-offset-1 col-md-1" aria-hidden="true"></i>
        </a>
    </div>
</div>

Allow clicking on Aggregate heading to switch details view
Allow clicking on Aggregate heading to switch details view
