<?php

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

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

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

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
			// 'overdose_id',
			
  'overdose_survey',
  'overdose_part_id',
  'visit_code',
  'overdose_q1',
  'overdose_q1a',
  'overdose_q2',
  'overdose_q3a',
  'overdose_q3b',  
  'overdose_q4a',
  'overdose_q4b',  
  'overdose_q5a',
  'overdose_q5b',  
  'overdose_q6a',
  'overdose_q6b',
  'overdose_q7a',
  'overdose_q7b',  
  'overdose_q8a',
  'overdose_q8b',  
  'overdose_q9a',
  'overdose_q9b',  
  'overdose_q9c',
  'overdose_q9d',  
  'overdose_q9e',
  'overdose_q10a' ,
  'overdose_q10b',
  'overdose_q10c',
  'overdose_q10d',
  'overdose_q10e',
  'overdose_q10f',
  'overdose_q10g',
  'overdose_q10h',
  'overdose_q10i',
  'overdose_q11a',
  'overdose_q11b',
  'overdose_q11c',
  'overdose_q11d',
  'overdose_q11e',
  'overdose_q11f',
  'overdose_q11g',
  'overdose_q11h',
  'overdose_q11i',   
  'overdose_q11j',
  'overdose_q12',
  'overdose_q13a',
  'overdose_q13b',
  'overdose_q13c',
  'overdose_q13d',
  'overdose_q13e',
  'overdose_q13f',
  'overdose_q13g',
  'overdose_q13h',
  'overdose_q13i',
  'overdose_q13j',  
  'overdose_q13k',
  'overdose_q13l',
  'overdose_q13m',
  'overdose_q13n',
  'overdose_q13o',
  'overdose_q13p',
  'overdose_q14',
  'overdose_q15',
  'overdose_q15a',
  'overdose_q16',
  'overdose_q16a',
							
			[
				'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/>