<?php
/* @var $this SkuController */
/* @var $model Sku */

$this->breadcrumbs = [
    'SKU' => ['index'],
    $model->id,
];

$this->boxHeader['small']  = 'View';
$this->boxHeader['normal'] = "SKU: ({$model->nomor}) {$model->nama}";
?>
<div class="row">
    <div class="medium-6 large-4 columns">
        <div class="panel">
            <?php $this->widget('BDetailView', [
                'data'       => $model,
                'attributes' => [
                    // 'id',
                    'nomor',
                    'nama',
                    // 'kategori_id',
                    [
                        'name'  => 'kategori.nama',
                        'label' => 'Kategori',
                    ],
                    [
                        'name'  => 'namaStruktur',
                        'label' => 'Struktur',
                    ],
                    // 'struktur_id',
                    // 'status',
                    /*
    'updated_at',
    'updated_by',
    'created_at',
     */
                ],
            ]); ?>
        </div>
    </div>
    <div class="medium-6 large-8 columns">
        <div class="panel">
            <?php
            $this->renderPartial('_detail', ['modelDetail' => $modelDetail]);
            ?>
        </div>
    </div>
</div>
<?php
$this->menu = [
    ['itemOptions' => ['class' => 'divider'], 'label' => false],
    [
        'itemOptions'    => ['class' => 'has-form hide-for-small-only'],
        'label' => false,
        'items'          => [
            ['label' => '<i class="fa fa-pencil"></i> <span class="ak">U</span>bah', 'url' => $this->createUrl('ubah', ['id' => $model->id]), 'linkOptions' => [
                'class'     => 'button',
                'accesskey' => 'u',
            ]],
            ['label' => '<i class="fa fa-times"></i> <span class="ak">H</span>apus', 'url' => $this->createUrl('hapus', ['id' => $model->id]), 'linkOptions' => [
                'class'     => 'alert button',
                'accesskey' => 'h',
                'submit'    => ['hapus', 'id' => $model->id],
                'confirm'   => 'Anda yakin?',
            ]],
            ['label' => '<i class="fa fa-asterisk"></i> <span class="ak">I</span>ndex', 'url' => $this->createUrl('index'), 'linkOptions' => [
                'class'     => 'success button',
                'accesskey' => 'i',
            ]],
        ],
        'submenuOptions' => ['class' => 'button-group'],
    ],
    [
        'itemOptions'    => ['class' => 'has-form show-for-small-only'],
        'label' => false,
        'items'          => [
            ['label' => '<i class="fa fa-pencil"></i>', 'url' => $this->createUrl('ubah', ['id' => $model->id]), 'linkOptions' => [
                'class' => 'button',
            ]],
            ['label' => '<i class="fa fa-times"></i>', 'url' => $this->createUrl('hapus', ['id' => $model->id]), 'linkOptions' => [
                'class'   => 'alert button',
                'submit'  => ['hapus', 'id' => $model->id],
                'confirm' => 'Anda yakin?',
            ]],
            ['label' => '<i class="fa fa-asterisk"></i>', 'url' => $this->createUrl('index'), 'linkOptions' => [
                'class' => 'success button',
            ]],
        ],
        'submenuOptions' => ['class' => 'button-group'],
    ],
];
?>