<!--begin::Language menu-->
<div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg menu-state-color w-md-175px fw-semibold py-1 fs-6" data-kt-menu="true">
    <?php
    $page = '';
    if (!empty($_GET['page'])) {
        $page = $_GET['page'];
    }

    foreach(Utils::$languages as $key => $value) {
        if(in_array($key, Utils::$eu_language_codes)) {
    ?>
            <!--begin:Menu item-->
            <div class="menu-item">
                <!--begin:Menu link-->
                <a class="menu-link <?=($key==$_SESSION['language'])?('active'):('')?>"
                   href="?language=<?=$key;?><?=($page == '')?"":"&page=".$page;?>"
                   target="_self"
                   data-bs-toggle="tooltip" data-bs-trigger="hover"
                   data-bs-dismiss="click" data-bs-placement="right">
                    <img class="h-30px w-30px symbol symbol-circle symbol-45px symbol-md-40px" src="assets/media/flags/<?=Utils::$flags[$key]?>"
                         alt="language"/>
                    <span class="menu-title">&nbsp;&nbsp;<?=$value?></span>
                </a>
                <!--end:Menu link-->
            </div>
            <!--end:Menu item-->
    <?php
        }
    }
    ?>
</div>
<!--end::Language menu-->