<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Warehouse */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/warehouse', 'Warehouses'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="warehouse-view">

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

    <p>
        <?= Html::a(Yii::t('common/warehouse', 'Update'), ['update', 'id' => $model->id_warehouse], ['class' => 'btn btn-primary']) ?>
        <?php
        /* echo  Html::a(Yii::t('common/warehouse', 'Delete'), ['delete', 'id' => $model->id_warehouse], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('common/warehouse', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) */
	?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'name',
            [
		    	'attribute' => 'status',
            	'label' => Yii::t('common/warehouse', "Active"),
            	'value' => $model->statusHuman	
    		],		
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
