<commit_before>{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }}
{% endblock %}

{% block content %}
    <div class="row">
        <!-- basic info -->
        <div class="col-lg-8 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ array.title }}

                        ({{ array.transaction_type }})

                        {% if array.active == false %}
                        ({{ 'inactive'|_|lower }})
                        {% endif %}
                    </h3>
                </div>
                <div class="box-body">
                    <p><em>{{ array.description }}</em></p>

                    {% if array.active == false %}
                        <p>
                            {{ 'recurrence_is_inactive'|_ }}
                        </p>
                    {% endif %}

                    <ul>
                        {% for rep in array.repetitions %}
                            <li>{{ rep.description }}</li>
                        {% endfor %}
                    </ul>
                </div>
                <div class="box-footer">
                    <div class="btn-group">
                        <a href="{{ route('recurring.edit', [array.id]) }}" class="btn btn-sm btn-default"><i class="fa fa-pencil"></i> {{ 'edit'|_ }}</a>
                        <a href="{{ route('recurring.delete', [array.id]) }}" class="btn btn-sm btn-danger">{{ 'delete'|_ }} <i class="fa fa-trash"></i></a>
                    </div>
                </div>
            </div>
        </div>
        <!-- next and previous repetitions -->
        <div class="col-lg-4 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ ('expected_'~array.transaction_type~'s')|_ }}
                    </h3>
                </div>
                <div class="box-body">

                    <ul>
                        {% for rep in array.recurrence_repetitions %}
                            <li>
                                {{ rep.description }}
                                {% if rep.repetition_skip == 1 %}
                                    ({{ trans('firefly.recurring_skips_one')|lower }})
                                {% endif %}
                                {% if rep.repetition_skip > 1 %}
                                    ({{ trans('firefly.recurring_skips_more', {count: rep.repetition_skip})|lower }})
                                {% endif %}
                                <ul>
                                    {% for occ in rep.occurrences %}
                                        <li>{{ occ.formatLocalized(trans('config.month_and_date_day')) }}</li>
                                    {% endfor %}
                                </ul>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
                <div class="box-footer">
                    <small>
                        <em>{{ 'warning_duplicates_repetitions'|_ }}</em>
                    </small>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <!-- transactions -->
        <div class="col-lg-8 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ 'transaction_data'|_ }}
                    </h3>
                </div>
                <div class="box-body no-padding">
                    <table class="table table-hover sortable">
                        <thead>
                        <th data-defaultsign="az">{{ trans('list.source') }}</th>
                        <th data-defaultsign="az">{{ trans('list.destination') }}</th>
                        <th data-defaultsign="_19">{{ trans('list.amount') }}</th>
                        <th data-defaultsign="az">{{ trans('list.category') }}</th>
                        <th data-defaultsign="az">{{ trans('list.budget') }}</th>
                        </thead>
                        <tbody>
                        {% for transaction in array.transactions %}
                            <tr>
                                <td data-value="{{ transaction.source_name }}">
                                    <a href="{{ route('accounts.show', [transaction.source_id]) }}">{{ transaction.source_name }}</a>
                                </td>
                                <td data-value="{{ transaction.destination_name }}">
                                    <a href="{{ route('accounts.show', [transaction.destination_id]) }}">{{ transaction.destination_name }}</a>
                                </td>
                                <td>
                                    {{ formatAmountBySymbol(transaction.amount,transaction.currency_symbol,transaction.currency_dp) }}
                                    {% if null != transaction.foreign_amount %}
                                        ({{ formatAmountBySymbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_dp) }})
                                    {% endif %}
                                </td>
                                <td data-value="{% for meta in transaction.meta %}{% if meta.name == 'category_name' %}{{ meta.category_id }}{% endif %}{% endfor %}">
                                    {% for meta in transaction.meta %}
                                        {% if meta.name == 'category_name' %}
                                            <a href="{{ route('categories.show', [meta.category_id]) }}">
                                                {{ meta.category_name }}
                                            </a>
                                        {% endif %}
                                    {% endfor %}
                                </td>
                                <td data-value="{% for meta in transaction.meta %}{% if meta.name == 'budget_id' %}{{ meta.budget_id }}{% endif %}{% endfor %}">
                                    {% for meta in transaction.meta %}
                                        {% if meta.name == 'budget_id' %}<commit_msg>Add description.<commit_after>{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }}
{% endblock %}

{% block content %}
    <div class="row">
        <!-- basic info -->
        <div class="col-lg-8 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ array.title }}

                        ({{ array.transaction_type }})

                        {% if array.active == false %}
                        ({{ 'inactive'|_|lower }})
                        {% endif %}
                    </h3>
                </div>
                <div class="box-body">
                    <p><em>{{ array.description }}</em></p>

                    {% if array.active == false %}
                        <p>
                            {{ 'recurrence_is_inactive'|_ }}
                        </p>
                    {% endif %}

                    <ul>
                        {% for rep in array.repetitions %}
                            <li>{{ rep.description }}</li>
                        {% endfor %}
                    </ul>
                </div>
                <div class="box-footer">
                    <div class="btn-group">
                        <a href="{{ route('recurring.edit', [array.id]) }}" class="btn btn-sm btn-default"><i class="fa fa-pencil"></i> {{ 'edit'|_ }}</a>
                        <a href="{{ route('recurring.delete', [array.id]) }}" class="btn btn-sm btn-danger">{{ 'delete'|_ }} <i class="fa fa-trash"></i></a>
                    </div>
                </div>
            </div>
        </div>
        <!-- next and previous repetitions -->
        <div class="col-lg-4 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ ('expected_'~array.transaction_type~'s')|_ }}
                    </h3>
                </div>
                <div class="box-body">

                    <ul>
                        {% for rep in array.recurrence_repetitions %}
                            <li>
                                {{ rep.description }}
                                {% if rep.repetition_skip == 1 %}
                                    ({{ trans('firefly.recurring_skips_one')|lower }})
                                {% endif %}
                                {% if rep.repetition_skip > 1 %}
                                    ({{ trans('firefly.recurring_skips_more', {count: rep.repetition_skip})|lower }})
                                {% endif %}
                                <ul>
                                    {% for occ in rep.occurrences %}
                                        <li>{{ occ.formatLocalized(trans('config.month_and_date_day')) }}</li>
                                    {% endfor %}
                                </ul>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
                <div class="box-footer">
                    <small>
                        <em>{{ 'warning_duplicates_repetitions'|_ }}</em>
                    </small>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <!-- transactions -->
        <div class="col-lg-8 col-md-12 col-sm-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        {{ 'transaction_data'|_ }}
                    </h3>
                </div>
                <div class="box-body no-padding">
                    <table class="table table-hover sortable">
                        <thead>
                        <th data-defaultsign="az">{{ trans('list.description') }}</th>
                        <th data-defaultsign="az">{{ trans('list.source') }}</th>
                        <th data-defaultsign="az">{{ trans('list.destination') }}</th>
                        <th data-defaultsign="_19">{{ trans('list.amount') }}</th>
                        <th data-defaultsign="az">{{ trans('list.category') }}</th>
                        <th data-defaultsign="az">{{ trans('list.budget') }}</th>
                        </thead>
                        <tbody>
                        {% for transaction in array.transactions %}
                            <tr>
                                <td data-value="{{ transaction.description }}">
                                    {{ transaction.description }}
                                </td>
                                <td data-value="{{ transaction.source_name }}">
                                    <a href="{{ route('accounts.show', [transaction.source_id]) }}">{{ transaction.source_name }}</a>
                                </td>
                                <td data-value="{{ transaction.destination_name }}">
                                    <a href="{{ route('accounts.show', [transaction.destination_id]) }}">{{ transaction.destination_name }}</a>
                                </td>
                                <td>
                                    {{ formatAmountBySymbol(transaction.amount,transaction.currency_symbol,transaction.currency_dp) }}
                                    {% if null != transaction.foreign_amount %}
                                        ({{ formatAmountBySymbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_dp) }})
                                    {% endif %}
                                </td>
                                <td data-value="{% for meta in transaction.meta %}{% if meta.name == 'category_name' %}{{ meta.category_id }}{% endif %}{% endfor %}">
                                    {% for meta in transaction.meta %}
                                        {% if meta.name == 'category_name' %}
                                            <a href="{{ route('categories.show', [meta.category_id]) }}">
                                                {{ meta.category_name }}
                                            </a>
                                        {% endif %}
                                    {% endfor %}
                                </td>
                                <td data-value="{% for meta in transaction.meta %}{% if meta.name == 'budget_id' %}{{ meta.budget_id }}{% endif %}{% endfor %}">
                                    {% for meta in transaction.meta %}
                                        {% if meta.name == 'budget_id' %}
{'fraction_non_alphanumeric': 0.14264013367765457, 'fraction_numerical': 0.0037976606410451163, 'mean_word_length': 0.9374632136550912, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 207, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 78, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '505992', 'n_tokens_mistral': 3356, 'n_tokens_neox': 2975, 'n_words': 566}