<?php

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

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

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

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
			// 'post_art_beliefs_id',
			
        'post_art_beliefs_survey',
		'post_art_beliefs_part_id',
		'visit_code',
		'post_art_beliefs_q1',
		'post_art_beliefs_q2',
		'post_art_beliefs_q3',
		'post_art_beliefs_q4',
		'post_art_beliefs_q5',
		'post_art_beliefs_q6',
		'post_art_beliefs_q7',
		'post_art_beliefs_q8',
		'post_art_beliefs_q9',		
  'post_art_beliefs_q10',
  'post_art_beliefs_q11',
  'post_art_beliefs_q12',
  'post_art_beliefs_q13',
  'post_art_beliefs_q14',
  'post_art_beliefs_q15',
  'post_art_beliefs_q16',
  'post_art_beliefs_q17',
  'post_art_beliefs_q18',
  'post_art_beliefs_q19',
  'post_art_beliefs_q20', 
  'post_art_beliefs_q21',
  'post_art_beliefs_q22',
  'post_art_beliefs_q23',
  'post_art_beliefs_q24',
  'post_art_beliefs_q25',
  'post_art_beliefs_q26',
  'post_art_beliefs_q27',
  'post_art_beliefs_q28',
  'post_art_beliefs_q29',
  'post_art_beliefs_q30',
  'post_art_beliefs_q31',
  'post_art_beliefs_q32',
  'post_art_beliefs_q33',
							
			[
				'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/>