{% extends "base.html" %} {% block title %}Admin - Poker Portal{% endblock %} {% block content %}

Admin

Ledger controls

Append new buy-ins, cash-outs, corrections, and note-only events to the audit trail.

New event

Add to the ledger

Session state

Open a new session

Tools

Audit CSV

Export the current audit trail or import a replacement CSV. Import creates a timestamped backup first.

Front debt

Write off debt

Cash in {{ admin_totals.cash_in_cents | money }}
Paid out {{ admin_totals.paid_out_cents | money }}
Still owed {{ admin_totals.still_owed_cents | money }}
Players owe {{ admin_totals.players_owe_cents | money }}
Written off {{ admin_totals.written_off_cents | money }}
Open balance {{ admin_totals.open_balance_cents | money }}

Recent sessions

Current totals

{% for session in recent_sessions %} {% else %} {% endfor %}
Session Players Cash in Paid out Still owed Players owe Written off Open balance Status Action
{{ session_label(session) }} {{ session.entries|length }} {{ session.total_cash_in_cents | money }} {{ session.total_paid_out_cents | money }} {{ session.total_current_due_cents | money }} {{ session.total_player_owes_cents | money }} {{ session.total_front_writeoff_cents | money }} {{ session.total_open_balance_cents | money }} {{ session.status }}
{% if session.status == "open" %} {% else %} {% endif %}
No sessions yet.

Recent raw events

Ledger feed

{% for event in recent_events %}
{{ event.player_name }} {{ event.event_type }}

{{ event.amount_cents | money }}

{{ event.session_date | pretty_date }}

{% if event.note %}

{{ event.note }}

{% endif %}
{% else %}

No recent events.

{% endfor %}
{% endblock %}