Skip to content

Firefly III: a personal finances manager

1.6 KB
Raw Blame
<table class="table table-valign-middle table-sm table-hover sortable">
    <thead>
    <tr>
        <th data-defaultsign="az">{{ __('firefly.account') }}</th>
        <th data-defaultsign="_19" class="text-end">{{ __('firefly.spent_average') }}</th>
        <th data-defaultsign="_19" class="text-end">{{ __('firefly.total') }}</th>
        <th data-defaultsign="_19">{{ __('firefly.transaction_count') }}</th>
    </tr>
    </thead>
    <tbody>
    @foreach($result as $row)
        @if($loop->index > $listLength)
            <tr class="overListLength">
        @else
            <tr>
        @endif
        <td data-sortable="false">
            <a href="{{ route('accounts.show', $row['source_account_id']) }}">
                {{ $row['source_account_name'] }}
            </a>
        </td>
        <td data-value="{{ $row['avg'] }}" class="text-end">
            {!! format_amount_by_symbol($row['avg'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
        </td>

        <td data-value="{{ $row['sum'] }}" class="text-end">
            {!! format_amount_by_symbol($row['sum'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
        </td>

        <td data-value="{{ $row['transactions'] }}">
            {{ $row['transactions'] }}
        </td>

        </tr>
    @endforeach
    </tbody>
    <tfoot>
    @if(count($result) > $listLength)
        <tr>
            <td colspan="5" class="active">
                <a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}</a>
            </td>
        </tr>
    @endif
    </tfoot>
</table>