<?php if ($isAdmin): ?>

<div class="sidebar-config">

    <div class="sidebar-config-header">
        <span class="sidebar-config-title">Field Configuration</span>
        <span class="sidebar-config-hint">Drag to reorder</span>
    </div>

    <div class="sidebar-search-wrap">
        <input
            type="text"
            id="column-search"
            class="sidebar-search"
            placeholder="Search fields…"
            autocomplete="off">
    </div>

    <div id="columns-list" class="columns-list">
        Loading fields…
    </div>

    <div class="sidebar-config-footer">
        <button type="button" class="btn btn-primary btn-block" id="export-config-btn">
            Save Configuration
        </button>
        <div id="config-save-status" class="submit-status-text"></div>
    </div>

</div>

<?php else: ?>

<div class="sidebar-user-note">
    <p>The available fields are configured by an administrator.</p>
</div>

<?php endif; ?>