
<div class="modal-header">
	<h3 class="modal-title">{{ 'invoiceDetailsTitle' | translate }} - {{ data.maxDate | date: 'yyyy-MM-dd HH:mm:ss' }}</h3>
</div>
<div class="modal-body">

	<table class="table table-striped table-hover">
		<tr>
			<th class="fit" ng-repeat="transaciton in data.transactions">
				{{ 'transactionTypes_' + transaciton.type | translate }}
			</th>
			<th class="fit">
				{{ 'total' | translate }}
			</th>
		</tr>
		<tr>
			<td class="fit" ng-repeat="transaciton in data.transactions">
				<a ng-click="close()" href="#/transactions?{{getQuery()}}type={{transaciton.type}}&success=true">{{ transaciton.count.success }}</a> <a ng-click="close()" href="#/transactions?{{getQuery()}}type={{transaciton.type}}&success=false">({{ transaciton.count.fail }})</a>
			</td>
			<td class="fit"><a ng-click="close()" href="#/transactions?{{getQuery()}}success=true">{{ totalSuccess() }}</a> <a ng-click="close()" href="#/transactions?{{getQuery()}}success=false">({{ totalFail() }})</a></td>
		</tr>
	</table>
</div>

<div class="modal-footer">
	<button class="btn btn-primary" ng-click="close()">{{ 'close' | translate }}</button>
</div>
