<div class="toolbar">

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

            <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::received_by_date_info(auth::user_institution());
                    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("search") ?> සොයන්න</span>

                <select id="search_type" style="max-width:6rem" class="form-control">
                    <option data-key="title">මාතෘකාව</option>
                </select>

                <input type="text" placeholder="Search [alt+s]" id="search_text" class="form-control" accesskey="s">

            </div>

        </div>

        <div class="col col-2">
            <a class="btn btn-primary w-100" href="../print/assigned"><?= UI::icon("print") ?> Print</a>
        </div>

    </div>

</div>