templates/kernel/user/widget/Widget-User-AccountInfo.html.twig line 1

Open in your IDE?
  1. {%  set info =  finance_service.accountSummary(widget.string1) %}
  2. <div class="widget style1 navy-bg-white">
  3.     <div class="row">
  4.         <div class="col-3">
  5.             <i class="fa fa-university fa-5x"></i>
  6.         </div>
  7.         <div class="col-9 text-right">
  8.             {% if info.account %}
  9.             <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>
  10.             {% 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 %}
  11.             {% 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 %}
  12.             <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>
  13.             {% endif %}
  14.         </div>
  15.     </div>
  16. </div>