<?php include __DIR__ . '/workflow_receiver_checkbox_field.html.php'; ?>

<div
        id="publishpress_notif_role_list_filter"
        <?php if (! $context['meta']['selected']) : ?>style="display:none;"<?php endif; ?>
        class="<?php echo esc_attr($context['id']); ?>_filters publishpress-filter-checkbox-list">

    <?php if (! empty($context['roles'])) : ?>
        <select multiple="multiple" class="<?php echo esc_attr($context['list_class']); ?>"
                name="<?php echo esc_attr($context['input_name']); ?>" id="<?php echo esc_attr($context['input_id']); ?>">
            <?php foreach ($context['roles'] as $role => $role_object) : ?>
                <?php $selected = isset($role_object->selected) ? $role_object->selected : false; ?>
                <option value="<?php echo esc_attr($role); ?>" <?php selected($selected, true); ?>><?php echo $role_object->name; ?></option>
            <?php endforeach; ?>
        </select>
    <?php endif; ?>
</div>
