# fluent-booking/2.1.2/app/Services/Integrations/Elementor/Controls/FluentBookingCustomGroupSelect.php

Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution, version 2.1.2. 37 lines.

- Page: https://pluginprobe.com/plugins/fluent-booking/2.1.2/code/app/Services/Integrations/Elementor/Controls/FluentBookingCustomGroupSelect.php
- Raw: https://pluginprobe.com/plugins/fluent-booking/2.1.2/raw/app/Services/Integrations/Elementor/Controls/FluentBookingCustomGroupSelect.php
- Modified: 2024-10-03T12:29:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-booking/2.1.2/code/app/Services/Integrations/Elementor/Controls/FluentBookingCustomGroupSelect.php#L10-L20`.

```php
<?php

class FluentBookingCustomGroupSelect extends \Elementor\Base_Control {

    public function get_type() {
        return 'fcal_group_select';
    }

    protected function get_default_settings() {
        return [
            'label_block' => true,
            'options'     => [],
        ];
    }

    public function content_template() {
        ?>
        <div class="elementor-control-field">
            <label for="{{ data.controlUid }}" class="elementor-control-title">{{{ data.label }}}</label>
            <# var options = data.options; #>
            <div class="elementor-control-input-wrapper">
                <select class="fcal-group-select" id="{{ data.controlUid }}" data-setting="{{ data.name }}" name="{{ data.name }}">
                    <# _.each( data.options, function( group_options, group_label ) { #>
                    <optgroup label="{{{ group_label }}}">
                        <# _.each( group_options, function( label, value ) { #>
                        <option value="{{ value }}">{{{ label }}}</option>
                        <# }); #>
                    </optgroup>
                    <# }); #>
                </select>
            </div>
        </div>
        <?php
    }

}

```
