<div class="toolbar">

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

            <?php
            $loginfo = letters::by_assigned_permonth(auth::user_id());
            if ($loginfo) { ?>

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

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

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

                </div>

            <?php } ?>

        </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>
                    <option data-key="sender_name">ආයතනය</option>
                </select>

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

            </div>

        </div>
    </div>

</div>