{% extends "base.html" %} {% block title %}{{ group.title }} · cimple Split{% endblock %} {% block head %}{% endblock %} {% macro fields(kind, submission) %} {{ csrf_field() }} {% endmacro %} {% macro person_select(name, label, kind) %} {% endmacro %} {% block content %}
← Groups

{{ group.title }}

{{ group.currency }} · {{ people|length }} {{ "person" if people|length == 1 else "people" }}

{% if error %}{% endif %}

Balances

{{ group.currency }} {{ format_amount(totals.expenses) }} spent
{% if people %}
    {% for person in people %} {% set net = balances[person.id] %}
  • {{ person.name }} {% if net > 0 %}Gets back {{ format_amount(net) }} {% elif net < 0 %}Owes {{ format_amount(-net) }} {% else %}Settled{% endif %}
  • {% endfor %}
{% else %}

Add the people in your group to get started.

{% endif %} {% if transfers %}

Suggested repayments

    {% for sender, recipient, amount in transfers %}
  • {{ names[sender] }} → {{ names[recipient] }}{{ format_amount(amount) }}
  • {% endfor %}

Arrange payments separately. Log each repayment once it happens.

{% endif %}

Ledger

Export CSV
{% if entries %}
    {% for entry in entries %}
  1. {{ entry.label }}{{ group.currency }} {{ format_amount(entry.amount) }}

    · {% if entry.kind == "expense" %}Paid by {{ names[entry.from_id] }} {% else %}Repayment from {{ names[entry.from_id] }} to {{ names[entry.to_id] }}{% endif %} {% if entry.voided %} · Voided{% endif %}

    {% if entry.kind == "expense" %}
    Allocated shares
      {% for share in shares[entry.id] %}
    • {{ names[share.person_id] }}{{ format_amount(share.amount) }}
    • {% endfor %}
    {% endif %} {% if entry.voided %}
    {{ csrf_field() }}
    {% else %}
    {{ csrf_field() }}
    {% endif %}
  2. {% endfor %}
{% if pages > 1 %} {% endif %} {% else %}

Your recorded expenses and repayments will appear here.

{% endif %}
{% endblock %}