<?= $this->extend('layouts/enterprise') ?>

<?= $this->section('content') ?>

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'Messages',
    'workspaceCrumbCurrent' => 'Edit Group',
    'workspaceTitle'        => 'Edit ' . ($group['name'] ?? 'Group'),
    'workspaceDesc'         => 'Update the name and who belongs to this group.',
]) ?>

<div class="enterprise-data-panel">
    <div class="enterprise-data-panel__head">
        <h2 class="enterprise-data-panel__title">Group details</h2>
    </div>
    <div class="enterprise-data-panel__body">
        <?= view('Modules\Messaging\Views\groups\_form', [
            'action'    => base_url('messages/groups/' . $group['id']),
            'group'     => $group,
            'memberIds' => $memberIds,
            'users'     => $users,
        ]) ?>
    </div>
</div>

<?= $this->endSection() ?>
