<?= Html::a('Название раздела', ['billing/view', 'client_id' => $clientId], ['class' => 'list-group-item' . (Yii::$app->request->pathInfo == 'billing/view' ? ' active' : '')]) ?>
$this->context instanceof \admin\controllers\DeviceController ? ' active' : ''