{% extends '../layout.server.view.html' %} {% block cssFile %}
<style type="text/css">
    .register-head {
        background-image: url(https://i.imgur.com/kLXNrxb.jpg);
        padding: 60px 0px;
        text-align: center;
        color: #fff;
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 300px;
        text-align: left;
    }

    .text-success {
        color: #3c763d;
        font-size: 24px;
        text-align: center;
    }

    i.material-icons {
        color: green;
        text-align: center;
        margin: auto;
        display: block;
        font-size: 45px;
    }

    a#i_gotostore {
        width: 250px;
        border-radius: 20px;
    }

    @media only screen and (max-width:767px) {
        .register-head {
            min-height: auto;
        }

        .register-head .container h1 {
            font-size: 14px !important;
        }

        .register-head .container p {
            font-size: 12px;
            max-width: 200px;
        }

        h1.text-success {
            font-size: 16px;
            text-align: center;
        }

        i.material-icons {
            color: green;
            text-align: center;
            margin: auto;
            display: block;
        }

        .main .container .success,
        table.table {
            width: 100% !important;
        }

        a#i_gotostore {
            width: 150px;
            font-size: 12px;
        }
    }

    .main {
        min-height: 600px;
    }

    .table {
        border-left: 1px solid #ccc !important;
        border-right: 1px solid #ccc !important;
    }

    table.table tbody tr td {
        border-bottom: 1px solid #ccc;
    }

    table.table tbody {
        width: 100%;
        float: left;
    }
</style>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
{% endblock %} {% block content %}

<div class="main">
    <div class="container">
        <div class="success" style="margin:10px auto;overflow: hidden;" class="text-center">
            <h1 class="text-success">Lịch sử giao dịch VNPAY!</h1>
            <table class="table table-striped " style="margin: 5px auto;overflow: hidden;">
                <tr style="width:100%;">
                    <td style="width:15%;font-weight: bold;">Mã giao dịch</td>
                    <td style="width:52%;font-weight: bold;">Tên công ty</td>
                    <td style="width:20%;font-weight: bold;">Mã số thuế</td>
                    <td style="width:20%;font-weight: bold;">Trạng thái giao dịch</td>
                </tr>
                {% for item in lst_order %}
                <tr style="width:100%;">
                    <td>{{item.ma_giao_dich}}</td>
                    <td>{{item.ten_kh}}</td>
                    <td>{{item.ms_thue}}</td>
                    <td>
                        {% if item.status == 0 %}
                        <span>Khởi tạo giao dịch</span>
                        {% elseif item.status == 1 %}
                        <span style="color:green;">Giao dịch thành công</span>
                        {% else %}
                        <span style="color:red;">Giao dịch thất bại</span>
                        {% endif %}
                    </td>
                </tr>
                {% endfor %}
            </table>
        </div>
    </div>
</div>
{% endblock %} {% block jsFile %}
<script type="text/javascript" src="/assets/frontend/layout/scripts/validate.js"></script>
{% endblock %}