<commit_before><?php

use hipanel\modules\client\models\Client;
use hipanel\widgets\BlockModalButton;
use hipanel\widgets\ModalButton;
use hiqdev\assets\flagiconcss\FlagIconCssAsset;
use hipanel\modules\client\grid\ClientGridView;
use hipanel\modules\client\grid\ContactGridView;
use hipanel\modules\client\models\Contact;
use hipanel\modules\finance\models\Purse;
use hipanel\modules\finance\grid\PurseGridView;
use hipanel\widgets\Box;
use hipanel\widgets\SettingsModal;
use hipanel\helpers\FontIcon;
use yii\helpers\Html;

/**
 * @var $model Client
 */

$this->title = $model->login;
$this->subtitle = Yii::t('app', 'Client detailed information') . ' #' . $model->id;
$this->breadcrumbs->setItems([
    ['label' => Yii::t('app', 'Clients'), 'url' => ['index']],
    $this->title,
]);

FlagIconCssAsset::register($this);

$this->registerCss('legend {font-size: 16px;}');

?>
<div class="row">
    <div class="col-md-3">
        <?php Box::begin([
            'options' => [
                'class' => 'box-solid',
            ],
            'bodyOptions' => [
                'class' => 'no-padding',
            ],
        ]); ?>
        <div class="profile-user-img text-center">
            <?= $this->render('//layouts/gravatar', ['email' => $model->email, 'size' => 120]); ?>
        </div>
        <p class="text-center">
            <span class="profile-user-name"><?= $model->login . ' / ' . $model->seller ?></span>
            <br>
            <span class="profile-user-role"><?= $model->type ?></span><br>
            <small class="text-muted"><?= Html::a(Yii::t('app', 'Change your avatar at Gravatar.com'), 'http://gravatar.com', ['target' => '_blank']) ?></small>
        </p>

        <div class="profile-usermenu">
            <ul class="nav">
                <li>
                    <?= SettingsModal::widget([
                        'model'    => $model,
                        'title'    => Yii::t('app', 'Change password'),
                        'icon'     => 'fa-key fa-flip-horizontal fa-fw',
                        'scenario' => 'change-password',
                    ]) ?>
                </li>
                <?php if (Yii::$app->user->id == $model->id) { ?>
                    <li>
                        <?= SettingsModal::widget([
                            'model'    => $model,
                            'title'    => Yii::t('app', 'Pincode settings'),
                            'icon'     => 'fa-puzzle-piece fa-fw',
                            'scenario' => 'pincode-settings',
                        ]) ?>
                    </li>
                <?php } ?>
                <li>
                    <?= SettingsModal::widget([
                        'model'    => $model,
                        'title'    => Yii::t('app', 'IP address restrictions'),
                        'icon'     => 'fa-arrows-alt fa-fw',
                        'scenario' => 'ip-restrictions',<commit_msg>Change avatar at Gravatar added<commit_after><?php

use hipanel\modules\client\models\Client;
use hipanel\widgets\BlockModalButton;
use hipanel\widgets\ModalButton;
use hiqdev\assets\flagiconcss\FlagIconCssAsset;
use hipanel\modules\client\grid\ClientGridView;
use hipanel\modules\client\grid\ContactGridView;
use hipanel\modules\client\models\Contact;
use hipanel\modules\finance\models\Purse;
use hipanel\modules\finance\grid\PurseGridView;
use hipanel\widgets\Box;
use hipanel\widgets\SettingsModal;
use hipanel\helpers\FontIcon;
use yii\helpers\Html;

/**
 * @var $model Client
 */

$this->title = $model->login;
$this->subtitle = Yii::t('app', 'Client detailed information') . ' #' . $model->id;
$this->breadcrumbs->setItems([
    ['label' => Yii::t('app', 'Clients'), 'url' => ['index']],
    $this->title,
]);

FlagIconCssAsset::register($this);

$this->registerCss('legend {font-size: 16px;}');

?>
<div class="row">
    <div class="col-md-3">
        <?php Box::begin([
            'options' => [
                'class' => 'box-solid',
            ],
            'bodyOptions' => [
                'class' => 'no-padding',
            ],
        ]); ?>
        <div class="profile-user-img text-center">
            <?= $this->render('//layouts/gravatar', ['email' => $model->email, 'size' => 120]); ?>
        </div>
        <p class="text-center">
            <span class="profile-user-name"><?= $model->login . ' / ' . $model->seller ?></span>
            <br>
            <span class="profile-user-role"><?= $model->type ?></span><br>
        </p>

        <div class="profile-usermenu">
            <ul class="nav">
                <li>
                    <a href="http://gravatar.com" target="_blank">
                        <i><img src="http://www.gravatar.com/avatar/00000000000000000000000000000000/?s=17" /></i>
                        <?= Yii::t('app', 'You can change your avatar at Gravatar.com')?>
                    </a>
                </li>
                <li>
                    <?= SettingsModal::widget([
                        'model'    => $model,
                        'title'    => Yii::t('app', 'Change password'),
                        'icon'     => 'fa-key fa-flip-horizontal fa-fw',
                        'scenario' => 'change-password',
                    ]) ?>
                </li>
                <?php if (Yii::$app->user->id == $model->id) { ?>
                    <li>
                        <?= SettingsModal::widget([
                            'model'    => $model,
                            'title'    => Yii::t('app', 'Pincode settings'),
                            'icon'     => 'fa-puzzle-piece fa-fw',
                            'scenario' => 'pincode-settings',
                        ]) ?>
                    </li>
                <?php } ?>
                <li>
                    <?= SettingsModal::widget([
                        'model'    => $model,
                        'title'    => Yii::t('app', 'IP address restrictions'),
                        'icon'     => 'fa-arrows-alt fa-fw',
                        'scenario' => 'ip-restrictions',
{'fraction_non_alphanumeric': 0.18076859640442025, 'fraction_numerical': 0.007587003133762164, 'mean_word_length': 1.61041756349548, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '891888', 'n_tokens_mistral': 1859, 'n_tokens_neox': 1776, 'n_words': 302}