<div class="wrap wpsms-wrap">
	<?php require_once WP_SMS_DIR . 'includes/templates/header.php'; ?>
    <div class="wpsms-wrap__main">
        <h2><?php _e('Groups', 'wp-sms'); ?></h2>

        <div class="wpsms-button-group">
            <?php add_thickbox(); ?>
            <a name="<?php _e('Add Group', 'wp-sms'); ?>" href="admin.php?page=wp-sms-subscribers-group#TB_inline?&width=400&height=125&inlineId=add-group" class="thickbox button"><span class="dashicons dashicons-groups"></span> <?php _e('Add Group', 'wp-sms'); ?></a>
            <div id="add-group" style="display:none;">
                <form action="" method="post">
                    <table>
                        <tr>
                            <td style="padding-top: 10px;">
                                <label for="wp_group_name" class="wp_sms_subscribers_label"><?php _e('Name', 'wp-sms'); ?></label>
                                <input type="text" id="wp_group_name" name="wp_group_name" class="wp_sms_subscribers_input_text" required/>
                            </td>
                        </tr>

                        <tr>
                            <td colspan="2" style="padding-top: 20px;">
                                <input type="submit" class="button-primary" name="wp_add_group" value="<?php _e('Add', 'wp-sms'); ?>"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>

        <form id="subscribers-filter" method="get">
            <?php $_request_page = sanitize_text_field($_REQUEST['page']) ?>
            <input type="hidden" name="page" value="<?php echo esc_attr($_request_page); ?>"/>
            <?php $list_table->search_box(__('Search', 'wp-sms'), 'search_id'); ?>
            <?php $list_table->display(); ?>
        </form>
    </div>
</div>
