|
|
@@ -5,6 +5,9 @@ use yii\bootstrap\Nav; |
|
|
|
use yii\bootstrap\NavBar; |
|
|
|
use yii\widgets\Breadcrumbs; |
|
|
|
use common\models\Etablissement ; |
|
|
|
use common\models\User ; |
|
|
|
use yii\widgets\ActiveForm; |
|
|
|
use yii\helpers\ArrayHelper ; |
|
|
|
|
|
|
|
/* @var $this \yii\web\View */ |
|
|
|
/* @var $content string */ |
|
|
@@ -73,7 +76,16 @@ AppAsset::register($this); |
|
|
|
<div class="container-fluid container-body"> |
|
|
|
<?php if(!Yii::$app->user->isGuest): ?> |
|
|
|
<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 if($etat_paiement_etablissement == 'essai'): ?> |
|
|
|
<span id="etat-paiement-etablissement">Période d'essai gratuite |