<!doctype html>
<html class="no-js">
<head>

<include file="Common/head" />

    <style type="text/css">
        a.am-text-secondary:visited{color:#3bb4f2;}
        a.am-text-danger:visited{color:#dd514c;}
        .am-btn-default {background-color: #fff;}
        th {text-align:center;}
        tr td{text-align:center;}
        select{padding: 4px;border: 1px solid #ccc;}
        .am-popup-bd {background:#fff;}
        .am-popup-bd img {max-width: 100%}
        .am-u-sm-2 {border-top: 1px solid #ddd;margin-top: 10px;}
        .am-u-sm-10 {border-left: 1px solid #ddd;margin-top: 10px;}
    </style>
</head>
<body>

<include file="Common/header" />

<div class="am-cf admin">

    <!-- sidebar start -->
    <include file="Common/sidebar" nav="$nav"/>
    <!-- sidebar end -->

    <!-- Start right Content here -->
        <div class="content-page" style="background: white;">
            <!-- Start content -->
            <div class="content">
                <div class="am-cf am-padding am-padding-bottom-0">
                    <div class="am-fl am-cf">
                        <strong class="am-text-primary am-text-lg">Prepaid Card</strong> / <small>View Top-up Record</small>
                    </div>
                </div>
                <!-- <hr style="margin-top:0px;"> -->
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <table class="am-table am-table-hover table-main am-text-nowrap">
                            <thead>
                                <tr>
                                    <th>Username</th>
                                    <th>Top-up Amount(RM)</th>
                                    <th>Actual Top-up to Account Amount(RM)</th>
                                    <th>Top-up Status</th>
                                    <th>Created Date</th>
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="list" item="vo">
                                    <tr>
                                        <td>{$vo.nickname}</td>
                                        <td>￥{$vo.money}</td>
                                        <td>￥{$vo.preferential_money}</td>
                                        <td>
                                        	<?php if ($vo['status'] == 1) : ?>
                                        		<span class="am-badge am-badge-warning">Did not pay</span>
                                        	<?php elseif ($vo['status'] == 2) : ?>
                                                <span class="am-badge am-badge-success">Have to pay</span>
                                        	<?php endif;?>
                                        </td>
                                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                    </tr>
                                </foreach>
                            </tbody>
                        </table>
                        {$page}
                    </div>
                </div>
            </div>
        <!-- end right Content here -->
        </div>

<include file="Common/footer" />
</body>
</html>