<?php

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

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

$this->title = Yii::t('common/inventory-item', 'Leltár termék');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/inventory-item', 'Inventory Items'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id_inventory_item, 'url' => ['view', 'id' => $model->id_inventory_item]];
$this->params['breadcrumbs'][] = Yii::t('common/inventory-item', 'Update');
?>
<div class="inventory-item-update">

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

	<h2>Leltár</h2>
		    <?= DetailView::widget([
        'model' => $inventory,
        'attributes' => [
            'id_inventory',
        		'name',
            ['attribute'=>'id_user',
            'value'=>$inventory->userName
    ],
            ['attribute'=>'id_account',
            'value'=>$inventory->accountName
    ],
            'created_at:datetime',
        ],
    ]) ?>

	<h2>Termék</h2>
	 <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
        		[
        				
        		'value' => $model->name,
        		'label' =>"Név"
	 			],
        		 
        	 
        		 
        ],
    ]) ?>
	
    <?= $this->render('_form', [
        'model' => $model,
    ]) ?>

</div>
