<div ng-if="::!$ctrl.isMonthView" style="margin-bottom: 12px">
    <div>{{:: $ctrl.device.SwitchTypeVal == 4 ? 'Total Generated' : 'Total Usage' | translate }}: {{:: $ctrl.data.usage.toFixed($ctrl.data.decimals) }} {{:: $ctrl.unit}}</div>
    <div ng-if="::!$ctrl.isOnlyUsage">{{:: 'Counter' | translate }}: {{:: $ctrl.data.counter.toFixed($ctrl.data.decimals) }} {{:: $ctrl.unit}}</div>
    <div ng-hide="!$ctrl.data.cost">{{:: $ctrl.device.SwitchTypeVal == 4 ? 'Year Earnings' : 'Year Cost' | translate }}: {{:: $ctrl.data.cost.toFixed(2) }}</div>
</div>

<div ng-if="::$ctrl.isMonthView" style="margin-bottom: 12px">
    <div>{{:: $ctrl.device.SwitchTypeVal == 4 ? 'Total Generated' : 'Total Usage' | translate }}: {{:: $ctrl.data.usage.toFixed($ctrl.data.decimals) }} {{:: $ctrl.unit}}</div>
    <div ng-if="::($ctrl.device.SwitchTypeVal != 3)">{{:: $ctrl.device.SwitchTypeVal == 4 ? 'Monthly Earnings' : 'Monthly Cost' | translate }}: {{:: $ctrl.data.cost.toFixed(2) }}</div>
</div>

<div ng-if="::$ctrl.noDataAvailable" class="no-data">
    {{ ::'No data available' | translate}}
</div>

<table id="reporttable" class="display myrighttable"></table>
<div id="usagegraph" class="device-log-chart"></div>
