<commit_before><?php
/**
 * @var $this yii\web\View
 * @var $user \common\models\User
 */
?>

<div class="container">

    <div class="row">
        <div class="col-md-9">
            <h1><?= $user->username ?></h1>
        </div>
    </div>

    <hr>
    <div class="row">
        <!-- left column -->
        <div class="col-md-3">
            <div class="text-center">
                <img src="<?= $user->photo ? Yii::getAlias('@web_uploads').DIRECTORY_SEPARATOR.$user->photo  : '//placehold.it/200' ?>" class="avatar img-circle" alt="avatar">
            </div>
        </div>

        <!-- edit form column -->
        <div class="col-md-9 personal-info">

            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        Group: <?= $user->group->name ?>
                    </div>
                    <div class="col-md-4">
                        Position: <?= $user->title_position ?>
                    </div>
                    <div class="col-md-4">
                        Stage: <?= $user->getCurrentPosition()->stage->name ?>
                    </div>
                </div>
            </div>
            <div class="form-group">
                Birthday: <?= Yii::$app->getFormatter()->asDatetime($user->birthday, 'php:d.m.Y') ?>
            </div>

            <h4>Contact Information</h4>

            <?= $this->render('_form', [
                'model' => $user,
            ]) ?>

        </div>

    </div>
</div><commit_msg>fix: show profile without groups and stage update<commit_after><?php
/**
 * @var $this yii\web\View
 * @var $user \common\models\User
 */
?>

<div class="container">

    <div class="row">
        <div class="col-md-9">
            <h1><?= $user->username ?></h1>
        </div>
    </div>

    <hr>
    <div class="row">
        <!-- left column -->
        <div class="col-md-3">
            <div class="text-center">
                <img src="<?= $user->photo ? Yii::getAlias('@web_uploads').DIRECTORY_SEPARATOR.$user->photo  : '//placehold.it/200' ?>" class="avatar img-circle" alt="avatar">
            </div>
        </div>

        <!-- edit form column -->
        <div class="col-md-9 personal-info">

            <div class="form-group">
                <div class="row">
                    <div class="col-md-4">
                        Group: <?= $user->group ? $user->group->name : '' ?>
                    </div>
                    <div class="col-md-4">
                        Position: <?= $user->title_position ?>
                    </div>
                    <div class="col-md-4">
                        Stage: <?= $user->getCurrentPosition() ? $user->getCurrentPosition()->stage->name : '' ?>
                    </div>
                </div>
            </div>
            <div class="form-group">
                Birthday: <?= Yii::$app->getFormatter()->asDatetime($user->birthday, 'php:d.m.Y') ?>
            </div>

            <h4>Contact Information</h4>

            <?= $this->render('_form', [
                'model' => $user,
            ]) ?>

        </div>

    </div>
</div>
{'fraction_non_alphanumeric': 0.19592226823829245, 'fraction_numerical': 0.00828289264096846, 'mean_word_length': 1.3502994011976048, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6794355', 'n_tokens_mistral': 968, 'n_tokens_neox': 930, 'n_words': 164}