                   </table>
                        </div>
                        <div class="rc-flex rc-flex-between rc-mt-lg">
                            <button onclick="showAddDeviceToCase(${caseID})" class="rc-btn rc-btn-primary">
                                <i class="bi bi-plus-lg"></i> Add Device
                            </button>
                            <div class="rc-text-sm rc-text-muted">${devices.length} device${devices.length !== 1 ? 's' : ''} in this case</div>
                   