 <h3 class="p-2">Module Sections <span class="float-sm-end">
                            <button type="button" class="btn btn-sm btn-primary" <?= !has_permission('LTcmsSettings.createmodulesection') ? 'disabled' : '' ?>
                            onclick="<?= has_permission('LTcmsSettings.createmodulesection') ? 'add_module_section()' : 'void(0)' ?>"
                            <?= !has_permission('LTcmsSettings.createmodulesection') ? 'title="Requires create permission"' : '' ?>>Add</button> 
                        </span></h3>
                        <div class="table-responsive">
                            <table class="table table-sm table-striped">
                                <thead class="bg-dark text-white" style="font-size:12px;">
                                    <th>#ID</th>
                                    <th>Sort</th>
                                    <th>Name</th>
                                    <th>Description</th>
                                    <th>Status</th>
                                    <th></th>
                                </thead>
                                <tbody style="font-size:12px;">
                                    <?php foreach($sections as $s):?>
                                    <tr>
                                        <td><?=$s->id  ?></td>
                                        <td><?= $s->sort_order;?></td>
                                        <td><strong><?= $s->name;?></strong> <small class="text-muted">(<?= $s->slug; ?>)</small></td>
                                        <td><small class="text-muted"><?= $s->description;?></small></td>
                                        <td>
                                            <?php if($s->is_active == '1'):?>
                                                <div class="badge bg-primary"><small>Active</small></div>
                                            <?php else: ?>
                                                <div class="badge bg-secondary"><small>Inactive</small></div>
                                            <?php endif;?>
                                        </td>
                                        <td>
                                            <div class="btn-group">
                                                <button class="btn btn-sm p-1 btn-outline-info" <?= permission_attrs('LTcmsSettings.editmodulesection', 'edit_module_section', $s->id) ?>>
                                                    <small><i class="bi bi-pencil"></i></small>
                                                </button>
                                                <button class="btn btn-sm p-1 btn-outline-danger" <?= permission_attrs('LTcmsSettings.deletemodulesection', 'delete_module_section', $s->id, $s->name) ?>>
                                                    <small><i class="bi bi-x"></i></small>
                                                </button>
                                                
                                                
                                            </div>
                                        </td>
                                    </tr>
                                    <?php endforeach;?>
                                </tbody>
                            </table>
                </div>