<div ng-controller="BillingItemController">
    <div class="panel panel-success panel-grid">
        <div class="panel-heading">
            <div class="panel-title">
                <span translate>documentDetails.comp.billing.title</span>
                <div class="pull-right">
                    <button type="button" class="btn btn-default btn-xs" ng-click="emailInvoice()">
                        <span translate>documentDetails.comp.billing.table.columns.buttons.emailInvoice</span>
                    </button>
                    <button type="button" class="btn btn-default btn-xs" ng-click="generateInvoice()">
                        <span translate>documentDetails.comp.billing.table.columns.buttons.generateInvoice</span>
                    </button>
                    <button class="btn btn-default btn-xs" ng-click="addBillingItem()"
                            permission="createBillingItem" permission-object-type="CASE_FILE|COMPLAINT" permission-properties="objectInfo"
                            permission-action="enable">
                        <i class="fa fa-lg fa-plus"></i>
                    </button>
                </div>
            </div>
        </div>
        <div class="panel-body">
            <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination
                    adjust-table-height="gridOptions.data.length" class="grid"></div>
        </div>
    </div>
</div>