<commit_before>{% extends 'base.html.twig' %}
{% import "tasks/tasks_macros.html.twig" as tasks_view %}

{% block floatingActions %}
  {{ a.add('accounttransactions_new', { 'account': account.id }) }}
{% endblock %}
{% block panelBack %}{{ a.back('accounts_index') }}{% endblock %}

{% block panelTitle %}{{ account.name }}{% endblock %}

{% block panelTitleLabels %}
  {% if (account.client) %}
    <a href="{{ path('client_show', {'id': account.client.id}) }}"
       class="label label-primary">
      {{ account.client.name }}
    </a>
  {% endif %}
{% endblock %}
{% block panelHeadingRight %}
  {{ a.edit('accounts_edit', {'id':account.id}) }}
  {{ forms.delete(delete_form) }}

{% endblock %}
{% set accountTransactions = account.transactions %}
{% block panelBody %}
  <div class="panel-body panel-group">
    <div class="panel panel-primary">
      <div class="panel-heading clearfix">
        <span class="panel-title">Transactions
        </span>
        <div class="pull-right">
          <span class="label label-default">{{ accountTransactions.count }}</span>
          <span class="label label-{{ (account.balance < 0)?'danger':'success' }}">EGP {{ account.balance|number_format }}</span>

          <button data-toggle="collapse" href="#txn-{{ account.id }}" class="btn btn-primary btn-xs collapsed"><span class="glyphicon glyphicon-collapse"></span></button>
        </div>
      </div>
      <div id="txn-{{ account.id }}" class="panel-collapse collapse">
        {% include 'accounttransactions/transactions_list.html.twig' %}
      </div>
    </div><commit_msg>Account balance<commit_after>{% extends 'base.html.twig' %}
{% import "tasks/tasks_macros.html.twig" as tasks_view %}

{% block floatingActions %}
  {{ a.add('accounttransactions_new', { 'account': account.id }) }}
{% endblock %}
{% block panelBack %}{{ a.back('accounts_index') }}{% endblock %}

{% block panelTitle %}{{ account.name }}{% endblock %}

{% block panelTitleLabels %}
  {% if (account.client) %}
    <a href="{{ path('client_show', {'id': account.client.id}) }}"
       class="label label-primary">
      {{ account.client.name }}
    </a>
  {% endif %}
{% endblock %}
{% block panelHeadingRight %}
  {{ a.edit('accounts_edit', {'id':account.id}) }}
  {{ forms.delete(delete_form) }}

{% endblock %}
{% set accountTransactions = account.transactions %}
{% block panelBody %}
  <div class="panel-body panel-group">
    <div class="panel panel-primary">
      <div class="panel-heading clearfix">
        <span class="panel-title">Transactions
        </span>
        <div class="pull-right">
          <span class="label label-default">{{ accountTransactions.count }}</span>
          <span class="label label-{{ (account.balance < 0)? "success": "danger" }}">EGP {{ account.balance|number_format }}</span>

          <button data-toggle="collapse" href="#txn-{{ account.id }}" class="btn btn-primary btn-xs collapsed"><span class="glyphicon glyphicon-collapse"></span></button>
        </div>
      </div>
      <div id="txn-{{ account.id }}" class="panel-collapse collapse">
        {% include 'accounttransactions/transactions_list.html.twig' %}
      </div>
    </div>
{'fraction_non_alphanumeric': 0.1983575489576753, 'fraction_numerical': 0.0006317119393556538, 'mean_word_length': 3.698813056379822, 'pattern_counts': {'":': 1, '<': 47, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5925849', 'n_tokens_mistral': 1039, 'n_tokens_neox': 967, 'n_words': 192}