<?php
/**
 * Bulk Action Bar – Shared partial for all admin list views.
 *
 * Required variables:
 *   $bulkUrl     – POST URL for bulk action (e.g. '/admin/pages/bulk')
 *   $bulkActions – Array of actions: [['action' => 'delete', 'label' => '...', 'class' => 'btn-bulk-danger', 'confirm' => '...']]
 */
?>
<div class="bulk-action-bar" data-bulk-bar hidden>
    <span class="bulk-count"><?= __('admin.common.bulk_selected', ['count' => '<span data-bulk-count>0</span>']) ?></span>
    <div class="bulk-actions-group">
        <?php foreach ($bulkActions as $ba): ?>
        <button type="button"
                class="btn <?= $ba['class'] ?? '' ?>"
                data-bulk-action="<?= e($ba['action']) ?>"
                data-bulk-url="<?= e($bulkUrl) ?>"
                data-bulk-confirm="<?= e($ba['confirm'] ?? '') ?>"
                disabled>
            <?= e($ba['label']) ?>
        </button>
        <?php endforeach; ?>
    </div>
</div>
