<div class="toolbar">

    <div class="row">

        <div class="col">
            <div class="pill-group">

                <?php if (auth::isadmin()) { ?>
                    <a href="update" class="pill bg-success text-light"><?= UI::icon("add") ?></a>
                <?php } ?>

                <?php foreach (archive::categories() as $key => $category) { ?>
                    <div data-category="<?= $category["id"] ?>" id="pill_<?= $category["id"] ?>" class="pill text-sm" onclick='changecategory(<?= $category["id"] ?>)'>
                        <span class="pill-text"><?= $category["shortname"] ?> </span>
                        <span class="pill-badge"><?= $category["count"] ?></span>
                    </div>
                <?php } ?>

            </div>
        </div>
        <div class="col-lg-3 m-auto">

            <div class="input-group">

                <span class="input-group-text"><?= UI::icon("search") ?></span>

                <select id="search_select" style="max-width:6rem" class="form-control custom-select">
                    <option data-key="filename">File Name</option>
                    <option data-key="filetype">File Type</option>
                    <option data-key="description">Description</option>
                </select>

                <input type="text" class="form-control" id="search" placeholder="Search">

            </div>

        </div>
    </div>


</div>