diff --git a/frontend/views/common/_reception_customer.php b/frontend/views/common/_reception_customer.php index b79b290..2c2b96d 100644 --- a/frontend/views/common/_reception_customer.php +++ b/frontend/views/common/_reception_customer.php @@ -4,6 +4,8 @@ use frontend\model\ReceptionForm; use yii\helpers\Html; use yii\widgets\DetailView; use yii\base\Widget; +use common\components\Image; +use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $model frontend\model\ReceptionForm */ @@ -34,6 +36,12 @@ if ( $model->isCardWithCustomer() ){ 'label' => 'Telefon', 'value' => $model->customer->phone ], + [ + 'label' => 'Fénykép', + 'value' => $model->customer->image1 ? Html::img( Url::base( ) . Image::thumb( $model->customer->image1->path,160,120 )) : 'Nincs kép', + 'format' => 'raw' + + ], ] ])