
<?php if ($identity = $this->identity() ) : ?>
    <!-- Вход произведен -->
    <section class="b-content__title">
        <div class="wrapp">
            <picture>
                <img src="/img/bg-img-logo.svg" alt="No logo">
            </picture>
            <p class="lead"><?= $identity->getEmail() ?></p>
            <p class="b-content__title-settings">
                <a href="<?= $this->url('user.cabinet.profile', ['lang' => $this->lang]) ?>" title="" class="annotation"><?= _t("Настройки профиля") ?></a>
                <a href="<?= $this->url('logout', ['lang' => $this->lang]) ?>" title="" class="annotation"><?= _t("Выход") ?></a>
            </p>
        </div>
    </section>
<?php else : ?>
    <!-- Вход не произведен -->
    <?php
    $dataUrl =  $this->url($this->isAdmin ?'adm.login' : 'login', ['lang' => $this->lang]);
    ?>
    <section class="b-content__work">
        <div class="wrapp">
            <div class="form-wrapp login">
                <form action="" class="b-popup__login" name="login" data-url="<?= $dataUrl ?>">
                    <h1><?= _t("Вход") ?></h1>
                    <span class="input input--akira">
                      <input class="input__field input__field--akira" type="text" id="login-email" name="email" />
                      <label class="input__label input__label--akira" for="login-email">
                        <span class="input__label-content input__label-content--akira"><?= _t("E-mail") ?></span>
                      </label>
                    </span>
                    <span class="input input--akira">
                      <input class="input__field input__field--akira" type="password" id="login-password" name="password" />
                      <label class="input__label input__label--akira" for="login-password">
                        <span class="input__label-content input__label-content--akira"><?= _t("Пароль") ?></span>
                      </label>
                      <a href="#" class="link call-password-reset button-open"><?= _t("Забыли?") ?></a>
                    </span>
                    <label class="input-checkbox text">
                        <input type="checkbox" name="remember-pass" value="none" class="">
                        <span><?= _t("Запомнить") ?></span>
                    </label>
                    <input type="submit" name="submit" value="Login">
                </form>
            </div>
        </div>
    </section>
<?php endif; ?>

