<?php
    use yii\bootstrap\Html;
    use yii\web\View;
    
    /**
     * @var View $this
     * @var int  $count
     */
?>
<span class="badge"><?= $count; ?></span>
<?php
echo Html::a(
    Html::tag(
        'span',
        \Yii::t('app', 'Корзина'),
        [
            'class' => 'sub-title',
        ]
    ),
    [
        '#',
    ],
    [
        'class' => 'cart-item-link',
        'data-toggle'   =>  'modal',
        'data-target'   =>  '#basket-modal',
    ]
);
?>
