ejemplo yii2

PHOTO EMBED

Wed Apr 26 2023 18:37:00 GMT+0000 (Coordinated Universal Time)

Saved by @jrg_300i

if (!Yii::$app->user->isGuest) {
    if (Userbackend::isUserAdmin(Yii::$app->user->identity->username)):
['label' => 'Transportista', 'items' =>   [
                ['label' => 'Asignacion Litraje', 'url' => ['/']],
                ['label' => 'Huella Dactilar(biopago)', 'url' => ['/']],
                ['label' => 'Validacion Telefono', 'url' => ['/']],
        ],
    ],
    ['label' => 'Denuncia Transportista', 'items' =>   [
                ['label' => 'denuncia Sobreprecio', 'url' => ['/']],
            ],
        ],
 endif;
content_copyCOPY