<p>ERP支付记录</p>
<div class="tabs-box table-responsive">
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <th>创建时间</th>
            <th>收款单号</th>
            <th>收款金额</th>
            <th>收款时间</th>
            <th>支付状态</th>
            <th>取消支付时间</th>
        </tr>
        </thead>
        <tbody>      
            <?php foreach ($erpPayLog as $k=>$v) { ?>
                <?php if ($k < 4) { ?>
                    <tr>
                        <td width="15%"><?= date('Y-m-d H:i:s', $v->create_time) ?></td>
                        <td width="10%"><?= $v->receipt_sn ?></td>
                        <td width="10%"><?= $v->receipt_amount ?></td>
                        <td width="10%"><?= date('Y-m-d H:i:s', $v->receipt_time) ?></td>
                        <td><?= $v->status == 1 ? '已支付' : '已取消' ?></td>
                        <td><?= $v->cancel_time ? date('Y-m-d H:i:s', $v->cancel_time) : '' ?></td>
                    </tr>
                <?php } else { ?>  
                    <tr class="other-infos">
                        <td width="15%"><?= date('Y-m-d H:i:s', $v->create_time) ?></td>
                        <td width="10%"><?= $v->receipt_sn ?></td>
                        <td width="10%"><?= $v->receipt_amount ?></td>
                        <td width="10%"><?= date('Y-m-d H:i:s', $v->receipt_time) ?></td>
                        <td><?= $v->status == 1 ? '已支付' : '已取消' ?></td>
                        <td><?= $v->cancel_time ? date('Y-m-d H:i:s', $v->cancel_time) : '' ?></td>
                    </tr>                                
                <?php } ?> 

                <?php if ($k >= 4 && $k == count($erpPayLog)-1) { ?>
                    <tr>
                        <td colspan="6" class="text-center click-down"><i class="fa fa-angle-double-down">点击展开</i></td>
                        <td colspan="6" class="text-center click-up"><i class="fa fa-angle-double-up">点击收起</i></td>
                    </tr>
                <?php } ?> 
            <?php } ?>                   
        </tbody>
    </table>
</div>