      <table id="user-table" class="table table-striped table-hover" data-search-form="#user-search-form">
          <thead>
            <tr>
              <th>课程</th>
              <th>实付&价格</th>
              <th>优惠</th>
              <th>购买者</th>
              <th>下单&支付时间</th>
            </tr>
          </thead>
          <tbody>
            {% if courseIncomeDetail %}
            {% for data in courseIncomeDetail %}
            {% if courses[data.targetId].price|default(null)%}
              <tr>
                   <td>{{data.title}}<br>订单号:{{data.sn}}</td>
                    <td class="text-danger">{{data.amount}}<br>{{courses[data.targetId].price|default("")}}</td>
                    <td>{% if  data.coupon %}优惠码<br>[{{data.coupon}}]{% endif %}</td>
                   <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
                   <td>{{data.createdTime|date("Y-m-d H:i:s")}}<br>{{data.paidTime|date("Y-m-d H:i:s")}}</td>
              </tr>
              {% else %}
              <tr class="danger">
                    <td>{{data.title}}(此课程已不存在)<br>订单号:{{data.sn}}</td>
                    <td class="text-danger">{{data.amount}}<br> --</td>
                    <td>{% if  data.coupon %}优惠码<br>[{{data.coupon}}]{% endif %}</td>
                   <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
                   <td>{{data.createdTime|date("Y-m-d H:i:s")}}<br>{{data.paidTime|date("Y-m-d H:i:s")}}</td>
              </tr>
              {% endif %}
            {% endfor %}
            {% endif %}
          </tbody>
      </table>    
      {{ web_macro.paginator(paginator) }}