{% import "TopxiaAdminBundle::macro.html.twig" as admin_macro %}
<div class="col-md-12">
    <div class="panel panel-default">
        <div class="panel-heading">

            <a class="pull-right" href="{{ url('admin_coin_user_records') }}"
            >更多</a>
            <h3 class="panel-title">用户虚拟币记录</h3>
             
        </div>

      {% if userIds %}
        <table class="table table-condensed table-bordered table-striped table-hover">
          <thead>
            <tr>
              <th width="40%">用户名</th>
              <th width="10%">充值虚拟币</th>
              <th width="15%">支出虚拟币</th>
              <th width="35%">当前余额</th>
            </tr>
          </thead>
          <tbody>
            {% for userId in userIds %}
              <tr><td >{{ admin_macro.user_link(users[userId] , 'link-muted') }}</td><td style="color:#1bb974;">{{userInCash(userId,"all")|default("0.00")}}</td><td style="color:#ff7b0e;">{{userOutCash(userId,"all")|default("0.00")}}</td><td style="color:blue;">{{userAccount(userId).cash|default(0)}}</td></tr>
            {% endfor %}
          </tbody>
        </table>
      {% else %}
      <div class="empty">暂无用户虚拟币记录</div>
      {% endif %}
    </div>
</div>