<?php ob_start(); ?>

<h2><?= __('installer.language_title') ?></h2>
<p><?= __('installer.language_text') ?></p>

<form method="POST" action="/installer/set-language" style="margin-bottom:2rem;">
    <?= $csrf->field() ?>
    <div class="form-group">
        <label for="installer_language"><?= __('installer.language_label') ?></label>
        <select id="installer_language" name="language" onchange="this.form.submit()">
            <option value="de" <?= current_locale() === 'de' ? 'selected' : '' ?>><?= __('installer.language_de') ?></option>
            <option value="en" <?= current_locale() === 'en' ? 'selected' : '' ?>><?= __('installer.language_en') ?></option>
        </select>
    </div>
</form>

<hr style="border:none; border-top:1px solid #e5e7eb; margin:1.5rem 0;">

<h2><?= __('installer.welcome_title') ?></h2>
<p><?= __('installer.welcome_text') ?></p>

<div class="step-actions">
    <a href="/installer/step/2" class="btn btn-primary"><?= __('installer.welcome_start') ?></a>
</div>

<?php $content = ob_get_clean(); include __DIR__ . '/layout.php'; ?>
