<!DOCTYPE html>
<html>
<head>
    <title><?php echo $data['title'];?></title>
    <?php require( $theme_path . 'main' . $_DS . 'meta.php' );?>
    <?php require( $theme_path . 'main' . $_DS . 'style.php' );?>
    <?php require( $theme_path . 'main' . $_DS . 'custom-header-js.php' );?>
    <?php
    if($config->push == 1) {
        require($theme_path . 'main' . $_DS . 'onesignal.php');
    }
    ?>
    <?php require( $theme_path . 'main' . $_DS . 'ajax.php' );?>
    <?php if($config->credit_earn_system == 1){?>
    <?php $config->isDailyCredit = RecordDailyCredit();?>
    <?php }?>
</head>
<body class="<?php echo $data['name'];?>-page <?php echo(!empty($_COOKIE['open_slide']) && $_COOKIE['open_slide'] == 'yes') ? 'side_open' : '' ?> <?php if( isset( $_SESSION['JWT'] ) ){ ?><?php } else { ?>no-padd<?php } ?>">
    <?php echo openssl_decrypt($config->google_tag_code, "AES-128-ECB", 'mysecretkey1234');?>
    <?php if (file_exists($theme_path . 'third-party-theme.php')) { ?>
        <?php require( $theme_path . 'third-party-theme.php' );?>
    <?php } ?>
    <div id="loader" class="dt_ajax_progress"></div>
    <div class="modal modal-sm" id="authorize_modal" role="dialog" data-keyboard="false" style="overflow-y: auto;">
        <div class="modal-dialog">
            <div class="modal-content">
                <h4 class="modal-title"><?php echo __('Check out');?></h4>
                <form class="form form-horizontal" method="post" id="authorize_form" action="#">
                    <div class="modal-body authorize_modal">
                        <div id="authorize_alert"></div>
                        <div class="clear"></div>
                        <div class="row">
                            <div class="input-field col s12">
                                <input id="authorize_number" type="text" class="form-control input-md" autocomplete="off" placeholder="<?php echo __('card number');?>">
                            </div>
                            <div class="input-field col s4">
                                <select id="authorize_month" name="card_month" type="text" class="browser-default" autocomplete="off" placeholder="<?php echo __('month');?> (01)">
                                    <option value="01">01</option>
                                    <option value="02">02</option>
                                    <option value="03">03</option>
                                    <option value="04">04</option>
                                    <option value="05">05</option>
                                    <option value="06">06</option>
                                    <option value="07">07</option>
                                    <option value="08">08</option>
                                    <option value="09">09</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                </select>
                            </div>
                            <div class="input-field col s4 no-padding-both">
                                <select id="authorize_year" name="card_year" type="text" class="browser-default" autocomplete="off" placeholder="<?php echo __('year');?> (2021)">
                                    <?php for ($i=date('Y'); $i <= date('Y')+15; $i++) {  ?>
                                        <option value="<?php echo($i) ?>"><?php echo($i) ?></option>
                                    <?php } ?>
                                </select>
                            </div>
                            <div class="input-field col s4">
                                <input id="authorize_cvc" name="card_cvc" type="text" class="form-control input-md" autocomplete="off" placeholder="CVC" maxlength="3" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="modal-footer">
                        <div class="ball-pulse"><div></div><div></div><div></div></div>
                        <button type="button" class="waves-effect waves-light btn-flat btn_primary white-text" onclick="AuthorizeRequest()" id="authorize_btn"><?php echo __('pay');?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="modal modal-sm" id="paystack_wallet_modal" role="dialog" data-keyboard="false" style="overflow-y: auto;">
        <div class="modal-dialog">
            <div class="modal-content">
                <h4 class="modal-title"><?php echo __( 'PayStack');?></h4>
                <form class="form form-horizontal" method="post" id="paystack_wallet_form" action="#">
                    <div class="modal-body twocheckout_modal">
                        <div id="paystack_wallet_alert"></div>
                        <div class="clear"></div>
                        <div class="input-field col-md-12">
                            <label class="plr15" for="paystack_wallet_email"><?php echo __( 'Email');?></label>  
                            <input id="paystack_wallet_email" type="text" class="form-control input-md" autocomplete="off" placeholder="<?php echo __( 'Email');?>">
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                    <div class="modal-footer">
                        <div class="ball-pulse"><div></div><div></div><div></div></div>
                        <button type="button" class="waves-effect waves-light btn-flat btn_primary white-text" id="paystack_btn" onclick="InitializeWalletPaystack()"><?php echo __( 'Confirm' );?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
