<?PHP

use yii\widgets\Breadcrumbs;

?>
<div class="container-fluid">
    <div class="row mb-2">
        <div class="col-sm-6">
            <?php if (!empty($this->title)): ?>
                <h1><?= $this->title ?><?php if (isset($this->params['subtitle'])): ?>
                        <small><?= $this->params['subtitle'] ?></small><?php endif ?></h1>
            <?php endif ?>
        </div>
        <div class="col-sm-6">
            <?php
            echo Breadcrumbs::widget([
                'tag' => 'ol',
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
                'itemTemplate' => "<li class='breadcrumb-item'>{link}</li>\n",
                'activeItemTemplate' => "<li class=\"breadcrumb-item active\">{link}</li>\n",
                'options' => ['class' => 'breadcrumb float-sm-right']
            ]);
            ?>
        </div>
    </div>