<div class="toolbar">

    <div class="row">
        <div class="col-4">

            <div class="input-group input-group-sm">

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

                <select id="date_select" class="form-control">
                    <?php
                    $loginfo = letters::bydateinfo();
                    foreach ($loginfo as $key => $value) {
                        echo '<option data-year="' . $value['y'] . '" data-month="' . $value['m'] . '" data-day="' . $value['d'] . '" value="' . $key . '">' . $value['y'] . ' ' . $value['m_name'] . ' ' . $value['d'] . ' (' . $value["count"] . ')</option>';
                    }  ?>
                </select>

            </div>

        </div>

        <div class="col">

            <div class="input-group input-group-sm">

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

                <select id="forwarded_select" class="form-control">
                    <?php
                    $loginfo = institutions::forwardlist();
                    foreach (institutions::forwardlist() as $key => $value) {
                        echo '<option data-forwarded="' . $value['forwarded'] . '" data-forwarded_name="' . $value['name'] . '" value="' .  $value['forwarded'] . '">' . $value['codename'] . " &nbsp; " . $value['shortname'] . ' </option>';
                    }  ?>
                </select>

            </div>

        </div>

        <div class="col col-2">
            <button class="btn btn-success w-100" onclick="print()"><?= UI::icon("print") ?> Print</button>
        </div>

    </div>

</div>