{% set info = finance_service.accountSummary(widget.string1) %}
<div class="widget style1 navy-bg-white">
<div class="row">
<div class="col-3">
<i class="fa fa-university fa-5x"></i>
</div>
<div class="col-9 text-right">
{% if info.account %}
<h3 class="font-bold">{{info.account.name}}{% if widget.boolean1 %}: {%if info.account.currency %}{{ info.account.currency.getString2() | raw}}{%endif%}{{info.account.balance|number_format(2, ',', '.') }}{% endif %}</h3>
{% if widget.boolean2 %}{% if info.account_last_transaction %}{{ "AccountTransaction.LastTransaction"|trans }}: <a href="{{ path('app_account_transaction_show', {'id': info.account_last_transaction.id})}}">{{ info.account_last_transaction }}</a></br>{% endif %}{% endif %}
{% if widget.boolean3 %}<a href="{{ path('app_account_show', {'id': info.account.id, 'state':0, 'unfullymatchedpayments': 0}) }}">{{ "AccountTransaction.TransactionsLastWeek"|trans }}: {{ info.account_transactions_lastweek}}</a></br>{% endif %}
<a class="{%if info.account_unmatched_payments > 0%}red{%endif%}" href="{{ path('app_account_show', {'id': info.account.id, 'state':0, 'unfullymatchedpayments': 1}) }}">{{ 'AccountTransaction.ShowPaymentThatAreNotFullyMatched' | trans }}: {{ info.account_unmatched_payments}}</a>
{% endif %}
</div>
</div>
</div>