<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use rmrevin\yii\fontawesome\FA;

/* @var $this yii\web\View */
/* @var $model app\models\Evaluationincentive */

$this->title = Yii::t('app', 'View {modelClass} ', [
    'modelClass' => 'Evaluationincentive',
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Evaluationincentive'), 'url' => ['index']];
$this->params['breadcrumbs'][] = Yii::t('app', 'View');
$this->params['menu'] = [
	['label' => FA::icon('align-justify fa-fw'), 'linkOptions' => ['class'=>'btn btn-default', 'title'=>'List'], 'url' => ['/'.Yii::$app->controller->id]],
	['label' => FA::icon('plus fa-fw'), 'linkOptions' => ['class'=>'btn btn-default', 'title'=>'Create'], 'url' => ['create']],
	['label' => FA::icon('pencil fa-fw'), 'linkOptions' => ['class'=>'btn btn-default', 'title'=>'Update'], 'url' => ['update', 'id' => $model->evaluation_incentive_id]],
	['label' => FA::icon('trash fa-fw'), 'linkOptions' => ['class'=>'btn btn-default', 'title'=>'Delete', 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']], 'url' => ['delete', 'id' => $model->evaluation_incentive_id]],
];
?>
<div class="Evaluationincentive-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
			// 'evaluation_incentive_id',
			
		'evaluation_incentive_survey',
		'evaluation_incentive_part_id',
		'visit_code',
		[
				'attribute' => 'evaluation_incentive_q1a',
				'visible' => ($model->evaluation_incentive_q1a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q1b',
				'visible' => ($model->evaluation_incentive_q1b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q1c',
				'visible' => ($model->evaluation_incentive_q1c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q2',
				'visible' => ($model->evaluation_incentive_q2 === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3a',
				'visible' => ($model->evaluation_incentive_q3a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3b',
				'visible' => ($model->evaluation_incentive_q3b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3c',
				'visible' => ($model->evaluation_incentive_q3c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3d',
				'visible' => ($model->evaluation_incentive_q3d === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3e',
				'visible' => ($model->evaluation_incentive_q3e === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3f',
				'visible' => ($model->evaluation_incentive_q3e === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q3g',
				'visible' => ($model->evaluation_incentive_q3g === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q4a',
				'visible' => ($model->evaluation_incentive_q4a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4b',
				'visible' => ($model->evaluation_incentive_q4b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4c',
				'visible' => ($model->evaluation_incentive_q4c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4d',
				'visible' => ($model->evaluation_incentive_q4d === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4e',
				'visible' => ($model->evaluation_incentive_q4e === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4f',
				'visible' => ($model->evaluation_incentive_q4e === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4g',
				'visible' => ($model->evaluation_incentive_q4g === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4h',
				'visible' => ($model->evaluation_incentive_q4h === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4i',
				'visible' => ($model->evaluation_incentive_q4i === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q4j',
				'visible' => ($model->evaluation_incentive_q4j === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q5',
				'visible' => ($model->evaluation_incentive_q5 === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q6a',
				'visible' => ($model->evaluation_incentive_q6a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q6b',
				'visible' => ($model->evaluation_incentive_q6b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q6c',
				'visible' => ($model->evaluation_incentive_q6c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q6d',
				'visible' => ($model->evaluation_incentive_q6d === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q7a',
				'visible' => ($model->evaluation_incentive_q7a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q7b',
				'visible' => ($model->evaluation_incentive_q7b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q7c',
				'visible' => ($model->evaluation_incentive_q7c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q7d',
				'visible' => ($model->evaluation_incentive_q7d === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q7e',
				'visible' => ($model->evaluation_incentive_q7e === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q8',
				'visible' => ($model->evaluation_incentive_q8 === null) ? false : true,
		],
		
		[
				'attribute' => 'evaluation_incentive_q9a',
				'visible' => ($model->evaluation_incentive_q9a === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q9b',
				'visible' => ($model->evaluation_incentive_q9b === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q9c',
				'visible' => ($model->evaluation_incentive_q9c === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q9d',
				'visible' => ($model->evaluation_incentive_q9d === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q9e',
				'visible' => ($model->evaluation_incentive_q9e === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q10',
				'visible' => ($model->evaluation_incentive_q10 === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q11',
				'visible' => ($model->evaluation_incentive_q11 === null) ? false : true,
		],
		[
				'attribute' => 'evaluation_incentive_q12',
				'visible' => ($model->evaluation_incentive_q12 === null) ? false : true,
		],
				
					
			[
				'attribute' => 'status',
				'value' => ($model->status == 1) ? 'Y' : 'N',
				'visible' => ($model->status === null) ? false : true,
			],
			[
				'attribute' => 'create_time',
				'format' => 'datetime',
				'visible' => ($model->update_user !== null) ? false : true,
			],
			[
				'attribute' => 'create_user',
				'visible' => ($model->update_user !== null) ? false : true,
			],
			[
				'attribute' => 'update_time',
				'format' => 'datetime',
				'visible' => ($model->update_user === null) ? false : true,
			],
			[
				'attribute' => 'update_user',
				'visible' => ($model->update_user === null) ? false : true,
			],
        ],
    ]) ?>

</div>
<div class="control-group buttons">
	<?= Html::Button('Back', array('class'=>'btn btn-default', 'onclick' => 'js:document.location.href="../'.Yii::$app->controller->id.'"')); ?>
</div>
<br/>