{% extends 'TopxiaWebBundle:MoneyRecord:layout.html.twig' %}

{% set script_controller = 'my/orders' %}

{% set main_nav = 'IncomeRecords' %}

{% block main_body %}
  <table class="table table-striped table-hover" id="incomes-table">
    <thead>
      <th>金额</th>
      <th>充值方式</th>
      <th>交易号</th>
      <th>充值时间</th>
    </thead>
    <tbody>
      {% if incomeRecords %}
        {% for incomeRecord in incomeRecords %}
          <tr>
            <td>{{ incomeRecord.amount }}</td>
            <td></td>
            <td>{{ incomeRecord.transactionNo }}元</td>
            <td>{{ incomeRecord.createdTime|date('Y-n-d H:i') }}</td>
          </tr>
        {% else %}
          <tr>
            <td colspan="20" class="empty">无充值记录</td>
          </tr>
        {% endfor %}  
      {% endif %}
    </tbody>
  </table>
    {{ web_macro.paginator(paginator) }}
{% endblock %}