{% extends "base.html" %} {% block content %}
Profit History
{% if profits %} {% for p in profits %}
Product: {{ p.investment.product.name }}
Amount Earned: {{ p.amount }}
Date: {{ p.created_at|date:"Y-m-d H:i" }}
{% endfor %} {% else %}

No profit records yet

{% endif %} {% endblock %}