<div class="webone-sms-row">

    <?php foreach($data['plugins'] as $key => $plugin): ?>
        <div class="webone-sms-card <?php echo !$plugin['prerequisites'] ? 'webone-sms-card-disabled' : ''; ?>">
            <img src="<?php echo $plugin['image']; ?>" class="webone-sms-card-image" alt="<?php echo $plugin['title']; ?>" />

            <h2 class="webone-sms-card-title"><?php echo $plugin['title']; ?></h2>

            <div>
                <span>
                    <select class="webone-sms-integration-select-plugin" data-plugin="<?php echo $key; ?>">
                        <option value="1" <?php echo $plugin['is_active'] ? 'selected' : ''; ?>>
                            فعال
                        </option>
                        <option value="0" <?php echo !$plugin['is_active'] ? 'selected' : ''; ?>>
                            غیرفعال
                        </option>
                    </select>
                    <?php /* if($plugin['is_active']): ?>
                        <strong>فعال</strong>
                        <span class="dashicons dashicons-yes" style="color: green;"></span>
                    <?php else: ?>
                        <strong>غیرفعال</strong>
                        <span class="dashicons dashicons-no" style="color: red;"></span>
                    <?php endif; */ ?>
                </span>
                <a href="<?php echo add_query_arg(['plugin' => $key]); ?>" class="button button-secondary" style="float: left;">
                    عملیات
                    <span class="dashicons dashicons-arrow-left-alt" style="vertical-align: middle;"></span>
                </a>
            </div>
        </div>
    <?php endforeach; ?>

</div>