<?php

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

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

$this->title = Yii::t('app', 'View {modelClass} ', [
    'modelClass' => 'Substanceusefup',
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Substanceusefup'), '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->substance_use_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->substance_use_id]],
];
?>
<div class="Substanceusefup-view">

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
			// 'substance_use_id',
			
        'substance_use_survey',
		'substance_use_part_id',
		'visit_code',
		'substance_use_q1',
  'substance_use_q2',
  'substance_use_q3',
  'substance_use_q4',  
  'substance_use_q6c',
  'substance_use_q6d',  
  'substance_use_q7c',
  'substance_use_q7d',  
  'substance_use_q8c',
  'substance_use_q8d',
  'substance_use_q9c',
  'substance_use_q9d',  
  'substance_use_q10c',
  'substance_use_q10d',  
  'substance_use_q11c',
  'substance_use_q11d',  
  'substance_use_q12c',
  'substance_use_q12d',  
  'substance_use_q13c',
  'substance_use_q13d' ,
  'substance_use_q14',
  'substance_use_q15',
  'substance_use_q16',
  'substance_use_q17a',
  'substance_use_q17b',
  'substance_use_q18a',
  'substance_use_q18b',
  'substance_use_q19a',
  'substance_use_q19b',
  'substance_use_q20a',
  'substance_use_q20b',
  'substance_use_q21a',
  'substance_use_q21b',
  'substance_use_q22a',
  'substance_use_q22b',
   'substance_use_q23a',
  'substance_use_q23b',
  'substance_use_q24a',
  'substance_use_q24b',
  'substance_use_q25a',
  'substance_use_q25b',
  'substance_use_q26a',
  'substance_use_q26b',
  'substance_use_q27a',
  'substance_use_q27b',
  'substance_use_q28a',
  'substance_use_q28b',
							
			[
				'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/>