{% if not imports %} {% with es_icon="download", es_title="No imports yet", es_body="Drop a Schwab Transactions or Realized G/L CSV in the zone above.", es_primary_label="", es_secondary_label="" %} {% include "_empty_state_hero.html" %} {% endwith %} {% else %}
{% for imp in imports %} {% set has_dates = imp.min_trade_date and imp.max_trade_date %} {% set total_units = (imp.trade_count or 0) + (imp.gl_lot_count or 0) + (imp.cash_event_count or 0) %} {% endfor %}
ID Imported at Account Filename Summary Actions
#{{ imp.id }} {{ imp.imported_at.strftime("%Y-%m-%d %H:%M") }} {{ imp.account_display }} {{ imp.csv_filename }} {%- if has_dates -%} {{ imp.min_trade_date }} → {{ imp.max_trade_date }} · {%- endif -%} {%- if imp.trade_count -%} {{ imp.trade_count }} trade{{ "s" if imp.trade_count != 1 else "" }} {%- endif -%} {%- if imp.gl_lot_count -%} {%- if imp.trade_count %} · {% endif -%} {{ imp.gl_lot_count }} G/L lot{{ "s" if imp.gl_lot_count != 1 else "" }} {%- endif -%} {%- if imp.cash_event_count -%} {%- if imp.trade_count or imp.gl_lot_count %} · {% endif -%} {{ imp.cash_event_count }} cash event{{ "s" if imp.cash_event_count != 1 else "" }} {%- endif -%} {%- if imp.duplicate_trades -%} {%- if imp.trade_count or imp.gl_lot_count or imp.cash_event_count %} · {% endif -%} skipped {{ imp.duplicate_trades }} duplicate{{ "s" if imp.duplicate_trades != 1 else "" }} {%- endif -%} {%- if not total_units and not imp.duplicate_trades -%}no records{%- endif -%}
{% if total_pages and total_pages > 1 %} {% set start_idx = (page - 1) * page_size + 1 %} {% set end_idx = start_idx + (imports|length) - 1 %}
Showing {{ start_idx }}–{{ end_idx }} of {{ total_count }}
Page {{ page }} / {{ total_pages }}
{% endif %}
{% endif %}