{% extends 'wfbo/_layout.html.twig' %} {% block title %}Cash Flow Report — WFBO{% endblock %} {% block wfbo_title %}Cash Flow Report{% endblock %} {% block wfbo_content %} {# ── Period filter bar ── #} {% set presets = [ {key: 'today', label: 'Today'}, {key: 'yesterday', label: 'Yesterday'}, {key: 'this_month', label: 'This Month'}, {key: 'last_month', label: 'Last Month'}, {key: 'this_year', label: 'This Year'}, ] %}
{% for p in presets %} {{ p.label }} {% endfor %} {# Custom month picker #}
{# Custom year picker #}
{# ── Summary cards ── #}

Cash In

{{ periodLabel }}

₱{{ depositsIn|number_format(2) }}

{{ depositCount }} approved deposit{{ depositCount != 1 ? 's' : '' }}

Cash Out

{{ periodLabel }}

₱{{ withdrawalsOut|number_format(2) }}

{{ withdrawalCount }} approved withdrawal{{ withdrawalCount != 1 ? 's' : '' }}

Net Cash Flow

{{ periodLabel }}

{{ netPeriod >= 0 ? '+' : '' }}₱{{ netPeriod|number_format(2) }}

deposits minus withdrawals

Cash on Hand

{{ periodLabel }}

₱{{ cashOnHand|number_format(2) }}

approved deposits minus approved withdrawals

{# ── Export button ── #}
Export PDF
{# ── Summary breakdown table ── #}
Flow Transactions Amount
↑ Cash In — Approved Deposits {{ periodLabel }} {{ depositCount }} ₱{{ depositsIn|number_format(2) }}
↓ Cash Out — Approved Withdrawals {{ periodLabel }} {{ withdrawalCount }} ₱{{ withdrawalsOut|number_format(2) }}
Net Cash Flow {{ periodLabel }} {{ depositCount + withdrawalCount }} {{ netPeriod >= 0 ? '+' : '' }}₱{{ netPeriod|number_format(2) }}
Cash on Hand All-time ₱{{ cashOnHand|number_format(2) }}
{% endblock %}