<commit_before><?php

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

/* @var $this yii\web\View */
/* @var $model backend\models\TblOffers */
$this->title = 'Your offer';
$this->params['breadcrumbs'][] = ['label' => 'Offers', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="tbl-offers-view">

    <h1>Your offer details:</h1>
    <?php
    $userId = \Yii::$app->user->identity->status;
    if($userId === 30 ){
    ?>
    <p>
        <?= Html::a('Update', ['update', 'id' => $model->offer_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->offer_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>
    <?php } ?>
    <?= DetailView::widget([
        'model' => $model,
		'attributes' => [
            [                      // the owner name of the model
                'label' => 'Store Name',
                'value' => $model->id,
            ],
            [                      // the owner name of the model
                'label' => 'Offer Type',
                'value' => $model->offerType->offer_type,
            ],
            'offer_description',
            'offer_start_date',
            'offer_end_date',
			[
			'label' => 'user_id'
			'value' => $model->Userid->store_user_id,
			]
        ],
    ]) ?>

</div><commit_msg>didnt work<commit_after><?php

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

/* @var $this yii\web\View */
/* @var $model backend\models\TblOffers */
$this->title = 'Your offer';
$this->params['breadcrumbs'][] = ['label' => 'Offers', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="tbl-offers-view">

    <h1>Your offer details:</h1>
    <?php
    $userId = \Yii::$app->user->identity->status;
    if($userId === 30 ){
    ?>
    <p>
        <?= Html::a('Update', ['update', 'id' => $model->offer_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->offer_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>
    <?php } ?>
    <?= DetailView::widget([
        'model' => $model,
		'attributes' => [
            [                      // the owner name of the model
                'label' => 'Store Name',
                'value' => $model->id,
            ],
            [                      // the owner name of the model
                'label' => 'Offer Type',
                'value' => $model->offerType->offer_type,
            ],
			[
			'label' => 'user_id'
			'value' => $model->Userid->store_user_id,
			],
            'offer_description',
            'offer_start_date',
            'offer_end_date',
			
        ],
    ]) ?>

</div>
{'fraction_non_alphanumeric': 0.20847231487658438, 'fraction_numerical': 0.00266844563042028, 'mean_word_length': 1.7615101289134438, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '217016', 'n_tokens_mistral': 1018, 'n_tokens_neox': 970, 'n_words': 190}