<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") ?> 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-4">

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

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

                <select id="forwarded_select" class="form-control">
                    <option data-forwarded="all" value="all">All</option>

                    <?php
                    $loginfo = letters::byforwardedinfo();
                    foreach ($loginfo as $key => $value) {
                        echo '<option data-forwarded="' . $value['forwarded'] . ' " value="' .  $value['forwarded'] . '">' . $value['name'] . ' </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>
                    <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>