# age-gate/3.7.3/src/Resources/views/admin/partials/fields/group.php

Age Gate, version 3.7.3. 17 lines.

- Page: https://pluginprobe.com/plugins/age-gate/3.7.3/code/src/Resources/views/admin/partials/fields/group.php
- Raw: https://pluginprobe.com/plugins/age-gate/3.7.3/raw/src/Resources/views/admin/partials/fields/group.php
- Modified: 2022-09-16T21:43:30+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/age-gate/3.7.3/code/src/Resources/views/admin/partials/fields/group.php#L10-L20`.

```php
<?php $this->layout('partials/fields/wrapper', ['field' => $field, 'lang' => $lang ?? false]) ?>

<?php $this->start('input') ?>
    <?php if (!count($field['fields'] ?? [])) : ?>
        <?php echo esc_html($noOptions ?? 'No options') ?>
    <?php endif; ?>
    <?php $parent = $field['parent'] ?? $name; ?>
    <?php foreach ($field['fields'] ?? [] as $name => $field) : ?>
    <?php
        try {
            $this->insert('partials/fields/'.$field['type'], ['name' => $parent . '.' . $name, 'field' => $field]);
        } catch (Exception $e) {
            $this->insert('partials/fields/input', ['name' => $parent . '.' . $name, 'field' => $field]);
        } ?>
    <?php endforeach; ?>
<?php $this->stop(); ?>

```
