<div class="kiss-margin-small">
    <kiss-container>

        <?=$contents?>

    </kiss-container>
</div>

<?php $this->start('app-side-panel') ?>

<kiss-card>

    <h2 class="kiss-size-4"><?=t('Layout')?></h2>

    <kiss-navlist class="kiss-margin">
        <ul>
            <li class="kiss-nav-header"><?=t('Components')?></li>
            <li>
                <a class="kiss-flex kiss-flex-middle <?=($this->request->route === '/layout-components' || str_starts_with($this->request->route, '/layout-components/component') ? 'kiss-link-muted kiss-text-bold':'kiss-color-muted')?>" href="<?=$this->route('/layout-components')?>">
                    <kiss-svg class="kiss-margin-small-end" src="<?=$this->base('layout:assets/icons/component.svg')?>" width="20" height="20"><canvas width="20" height="20"></canvas></kiss-svg>
                    <?=t('Custom')?>
                </a>
            </li>
            <li>
                <a class="kiss-flex kiss-flex-middle <?=(str_starts_with($this->request->route, '/layout-components/shared') ? 'kiss-link-muted kiss-text-bold':'kiss-color-muted')?>" href="<?=$this->route('/layout-components/shared')?>">
                    <kiss-svg class="kiss-margin-small-end" src="<?=$this->base('layout:assets/icons/shared.svg')?>" width="20" height="20"><canvas width="20" height="20"></canvas></kiss-svg>
                    <?=t('Shared')?>
                </a>
            </li>
            <li class="kiss-nav-header kiss-margin-top"><?=t('Layouts')?></li>
            <li>
                <a class="kiss-flex kiss-flex-middle <?=(str_starts_with($this->request->route, '/layout-components/templates') ? 'kiss-link-muted kiss-text-bold':'kiss-color-muted')?>" href="<?=$this->route('/layout-components/templates')?>">
                    <kiss-svg class="kiss-margin-small-end" src="<?=$this->base('layout:icon.svg')?>" width="20" height="20"><canvas width="20" height="20"></canvas></kiss-svg>
                    <?=t('Templates')?>
                </a>
            </li>
        </ul>
    </kiss-navlist>


</kiss-card>

<?php $this->end('app-side-panel') ?>
