<?php

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

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

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

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
			// 'health_seeking_id',
			
  'health_seeking_survey',
  'health_seeking_part_id',
  [
	'attribute' => 'health_seeking_date',
    'label'=>'Date',
	'format' => 'date',
			
 ],
 [
	'attribute' => 'health_seeking_starttime',
    'label'=>'Start Time',
	'format' => 'Time',
			
 ],
 [
	'attribute' => 'health_seeking_endtime',
    'label'=>'End Time',
	'format' => 'Time',
			
 ],
  'health_seeking_group',
  'health_seeking_age',
  'health_seeking_gender',
  'health_seeking_sexual_orientation',
  'health_seeking_marital_status',

  'health_seeking_q1',
  'health_seeking_q2',
  'health_seeking_q3',
  'health_seeking_q4',
  'health_seeking_q5',
  'health_seeking_q6',
  'health_seeking_q7',
  'health_seeking_q8',
  'health_seeking_q9',		
  'health_seeking_q10',
  'health_seeking_q11',
  'health_seeking_q12',
  'health_seeking_q13',
  'health_seeking_q14',
  'health_seeking_q15',
  'health_seeking_q16',
  'health_seeking_q17',
  'health_seeking_q18',
  'health_seeking_q19',
  'health_seeking_q20', 
  'health_seeking_q21',
  'health_seeking_q22',
  'health_seeking_q23',
  'health_seeking_q24',
  
							
			[
				'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/>