<?php

use yii\helpers\Html;
use yii\bootstrap\Carousel;

/* @var $this yii\web\View */
/* @var $ticket common\models\Ticket */
/* @var $showTagMax int/boolean maximum number of tags to display*/

//Ticket Decoration Bar displays the Ticket decorations
if ($taglist = $ticket->tagNames) {

    echo Html::beginTag('div', ['class' => 'ticket-single-tags']);

    $tagArray = explode(',', $taglist);
    $tagCount = count($tagArray);
    $i = 1;
    foreach ($tagArray as $tag) {
        $carouselItems[] = [
            'content' => '',
            'caption' => "<small>$i/$tagCount</small> $tag",
        ];
        $i++;
    }

    echo Carousel::widget([
        'items' => $carouselItems,
        'controls' => false,
        'showIndicators' => false,
    ]);

    echo Html::endTag('div');

}

?>
<?php

use yii\helpers\Html;
use yii\bootstrap\Carousel;

/* @var $this yii\web\View */
/* @var $ticket common\models\Ticket */
/* @var $showTagMax int/boolean maximum number of tags to display*/

//Ticket Decoration Bar displays the Ticket decorations
if ($taglist = $ticket->tagNames) {

    echo Html::beginTag('div', ['class' => 'ticket-single-tags']);

    $tagArray = explode(',', $taglist);
    $tagCount = count($tagArray);
    $i = 1;
    foreach ($tagArray as $tag) {
        $carouselItems[] = [
            'content' => '',
            'caption' => "$tag&nbsp;-&nbsp;<small>($i/$tagCount)</small>",
        ];
        $i++;
    }

    echo Carousel::widget([
        'items' => $carouselItems,
        'controls' => false,
        'showIndicators' => false,
    ]);

    echo Html::endTag('div');

}

?>
Tag Display in single Ticket
Tag Display in single Ticket
