<?php use App\Core\Lang; use function App\Core\e; $currentLang = Lang::current(); ?>
<form class="lang" data-lang-form>
    <select name="lang" aria-label="Language">
        <?php foreach (['tr', 'en', 'de', 'fr'] as $lang): ?>
            <option value="<?= e($lang) ?>" <?= $currentLang === $lang ? 'selected' : '' ?>><?= e(strtoupper($lang)) ?></option>
        <?php endforeach; ?>
    </select>
</form>
