<?php

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

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

$this->title = Yii::t('common/procurement','Procurement') .' ' .  $model->id_procurement;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/procurement', 'Procurements'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="procurement-view">

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id_procurement',
			[
            	'attribute' => 'id_warehouse',
            	'value' => $model->warehouseName,
	
			],
			[
            	'attribute' => 'id_user',
            	'value' => $model->userName,
	
			],
			[
            	'attribute' => 'id_product',
            	'value' => $model->productName,
	
			],
            'count',
            'stock',
            'purchase_price',
			[
				'attribute' => 'description',
				'value' => nl2br($model->description),
				'format' => 'raw'
			],
            'created_at:datetime',
        ],
    ]) ?>

</div>
