<?php
/**
 * MENU CATALOGO
 */
if (auth()->user()->can('catalogo.menu')) {
    ?>
    <!-- Catalogue -->
    <li class="menu-item">
        <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-book"></i>
            <?= lang("App.menu_catalogo") ?>
        </a>
        <ul class="menu-sub">
            <?php if (auth()->user()->can('catalogo.menu')) { ?>
                <li class="menu-item">
                    <a href="<?= route_to("catalogoLibrosList") ?>" class="menu-link">
                        <?= lang("App.menu_catalogo_libros") ?>
                    </a>
                </li>
            <?php } ?>
            <?php if (auth()->user()->can('catalogo.create')) { ?>
                <li class="menu-item">
                    <a href="<?= route_to("catalogoLibrosAdd") ?>" class="menu-link">
                        <?= lang("App.menu_catalogo_nuevo") ?>
                    </a>
                </li>
            <?php } ?>
            <li class="menu-item">
                <a href="<?= site_url("catalogo/catalogo/importar") ?>" class="menu-link beta">
                    <?= lang("App.menu_catalogo_importar") ?>
                </a>
            </li>
        </ul>
    </li>
<?php } ?>