|
|
|
|
|
|
|
|
use yii\bootstrap\NavBar; |
|
|
use yii\bootstrap\NavBar; |
|
|
use yii\widgets\Breadcrumbs; |
|
|
use yii\widgets\Breadcrumbs; |
|
|
use common\models\Etablissement ; |
|
|
use common\models\Etablissement ; |
|
|
|
|
|
use common\models\User ; |
|
|
|
|
|
use yii\widgets\ActiveForm; |
|
|
|
|
|
use yii\helpers\ArrayHelper ; |
|
|
|
|
|
|
|
|
/* @var $this \yii\web\View */ |
|
|
/* @var $this \yii\web\View */ |
|
|
/* @var $content string */ |
|
|
/* @var $content string */ |
|
|
|
|
|
|
|
|
<div class="container-fluid container-body"> |
|
|
<div class="container-fluid container-body"> |
|
|
<?php if(!Yii::$app->user->isGuest): ?> |
|
|
<?php if(!Yii::$app->user->isGuest): ?> |
|
|
<div class="nom-boulange"> |
|
|
<div class="nom-boulange"> |
|
|
<span><?= Html::encode(Yii::$app->user->identity->getNomMagasin()) ; ?></span> |
|
|
|
|
|
|
|
|
<?php if(Yii::$app->user->identity->status == User::STATUS_BOULANGER): ?> |
|
|
|
|
|
<span><?= Html::encode(Yii::$app->user->identity->getNomMagasin()) ; ?></span> |
|
|
|
|
|
<?php elseif(Yii::$app->user->identity->status == User::STATUS_ADMIN): ?> |
|
|
|
|
|
<?php $form = ActiveForm::begin() ; ?> |
|
|
|
|
|
<?= Html::dropDownList('select_etablissement', Yii::$app->user->identity->id_etablissement, ArrayHelper::map(Etablissement::find()->orderBy('nom ASC')->all(), 'id', function($model, $defaultValue) { |
|
|
|
|
|
return Html::encode($model->nom) ; |
|
|
|
|
|
})) ; ?> |
|
|
|
|
|
<?php ActiveForm::end(); ?> |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<?php $etat_paiement_etablissement = Yii::$app->user->identity->etatPaiementEtablissement(); ?> |
|
|
<?php $etat_paiement_etablissement = Yii::$app->user->identity->etatPaiementEtablissement(); ?> |
|
|
<?php if($etat_paiement_etablissement == 'essai'): ?> |
|
|
<?php if($etat_paiement_etablissement == 'essai'): ?> |
|
|
<span id="etat-paiement-etablissement">Période d'essai gratuite |
|
|
<span id="etat-paiement-etablissement">Période d'essai gratuite |