<?php

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

$this->title = 'Config';
$this->params['breadcrumbs'][] = ['label' => 'Configuration', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="sync-config-view">

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

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'inventory_account_number',
            'asset_account_name',
            'income_account_name',
            'tax_name',
            'branch_code',
            'branch_name',
            'api_key',
            'jurnal_referral',
        ],
    ]) ?>

</div>
