<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Billing</title>

    <style>
        .invoice-box {
            max-width: 800px;
            margin: auto;
            padding: 30px;
            font-size: 16px;
            line-height: 24px;
            font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
            color: #555;
        }

        .invoice-box table {
            width: 100%;
            line-height: inherit;
            text-align: left;
        }

        .invoice-box table td {
            padding: 5px;
            vertical-align: top;
        }

        .invoice-box table tr td:nth-child(2) {
            text-align: right;
        }

        .invoice-box table tr.top table td {
            padding-bottom: 20px;
        }

        .invoice-box table tr.top table td.title {
            font-size: 45px;
            line-height: 45px;
            color: #333;
        }

        .invoice-box table tr.information table td {
            padding-bottom: 40px;
        }

        .invoice-box table tr.heading td {
            background: #eee;
            border-bottom: 1px solid #ddd;
            font-weight: bold;
        }

        .invoice-box table tr.details td {
            padding-bottom: 20px;
        }

        .invoice-box table tr.item td {
            border-bottom: 1px solid #eee;
        }

        .invoice-box table tr.item.last td {
            border-bottom: none;
        }

        .invoice-box table tr.total td:nth-child(2) {
            border-top: 2px solid #eee;
            font-weight: bold;
        }

        @media only screen and (max-width: 600px) {
            .invoice-box table tr.top table td {
                width: 100%;
                display: block;
                text-align: center;
            }

            .invoice-box table tr.information table td {
                width: 100%;
                display: block;
                text-align: center;
            }
        }

        /** RTL **/
        .invoice-box.rtl {
            direction: rtl;
            font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
        }

        .invoice-box.rtl table {
            text-align: right;
        }

        .invoice-box.rtl table tr td:nth-child(2) {
            text-align: left;
        }
    </style>
</head>
<body>
<div class="invoice-box">
    <table cellpadding="0" cellspacing="0">
        <tr class="top">
            <td colspan="2">
                <table>
                    <tr>
                        <td class="title">
                            <img src="data:image/png;base64,{{logo_image_base64}}"
                                 style="width: 100%; max-width: 300px"/>
                        </td>

                        <td>
                            ZKTeco Biometrics India Pvt Ltd<br/>
                            Survey No 01, 01, Outer Ring Rd, <br/>
                            Mahadevapura, Bengaluru, Karnataka 560048, India
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="information">
            <td colspan="2">
                <table>
                    <tr>
                        <td>
                            Company Name: {{ company_name }}<br/>
                            Email Address: {{ user_email }}<br/>
                        </td>
                        <td>
                            Invoice No. : {{ order_number }}<br/>
                            Invoice Date : {{ create_time }}<br/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="heading">
            <td>Subscription Plan</td>
            <td>Duration</td>
        </tr>

        <tr class="details">
            <td>{{ price_strategy_type }}</td>
            <td>{{ subscription_duration }} month(s)</td>
        </tr>

        <tr class="heading">
            <td>Features</td>
            <td></td>
        </tr>
        <tr class="details">
            <td>{{ features_string }}</td>
        </tr>

        <tr class="heading">
            <td>Details</td>
            <td></td>
        </tr>
        <tr class="item">
            <td>Employees Count</td>
            <td>{{ employee_count }}</td>
        </tr>
        <tr class="item">
            <td>Devices Count</td>
            <td>{{ device_count }}</td>
        </tr>
        <tr class="item">
            <td>Transactions Count</td>
            <td>{{ transactions_count }}</td>
        </tr>
        <tr class="item">
            <td>Mobile Apps Count</td>
            <td>{{ mobile_app_count }}</td>
        </tr>
        <tr class="item">
            <td>WhatsApp Push Count</td>
            <td>{{ whatsapp_push_count }}</td>
        </tr>
        <tr class="item">
            <td>Subscription Intervals</td>
            <td>{{ subscription_intervals }}</td>
        </tr>
        <tr>
            <td style="padding-bottom: 20px;"></td>
        </tr>

        <tr class="heading">
            <td>Payment</td>

            <td>Price</td>
        </tr>

        <tr class="item">
            <td>Original Price</td>

            <td>{{ original_price }}</td>
        </tr>

        <tr class="item">
            <td>Discount Price</td>

            <td>{{ discount_price }}</td>
        </tr>
        <tr>
            <td></td>
            <td>Total: {{ payment_price }}</td>
        </tr>
    </table>
</div>
</body>
</html>