implement mobile devices in reception
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace frontend\components;
|
||||
|
||||
use common\models\MobileDevice;
|
||||
use yii\base\Widget;
|
||||
/**
|
||||
* This is the model class for table "customer".
|
||||
@@ -15,8 +16,13 @@ class ReceptionCustomerWidget extends Widget{
|
||||
public $model;
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->model ]);
|
||||
$showLinkDevices = MobileDevice::find()
|
||||
->andWhere(['status' => MobileDevice::STATUS_INACTIVE])
|
||||
->count() > 0;
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->model,
|
||||
'showLinkDevices' => $showLinkDevices
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user