<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title' => '',
    'subtitle' => '',
    'header' => true,
    'footer' => false,
    'footerContent' => '',
    'class' => '',
    'headerClass' => '',
    'bodyClass' => '',
    'footerClass' => '',
    'actions' => [],
    'icon' => '',
    'badge' => '',
    'badgeColor' => 'primary'
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'title' => '',
    'subtitle' => '',
    'header' => true,
    'footer' => false,
    'footerContent' => '',
    'class' => '',
    'headerClass' => '',
    'bodyClass' => '',
    'footerClass' => '',
    'actions' => [],
    'icon' => '',
    'badge' => '',
    'badgeColor' => 'primary'
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<div class="card <?php echo e($class); ?>">
    <?php if($header): ?>
        <div class="card-header <?php echo e($headerClass); ?>">
            <div class="d-flex justify-content-between align-items-center">
                <div class="d-flex align-items-center">
                    <?php if($icon): ?>
                        <i class="<?php echo e($icon); ?> me-2 text-muted"></i>
                    <?php endif; ?>
                    <div>
                        <?php if($title): ?>
                            <h5 class="card-title mb-0"><?php echo e($title); ?></h5>
                        <?php endif; ?>
                        <?php if($subtitle): ?>
                            <p class="card-subtitle text-muted mb-0"><?php echo e($subtitle); ?></p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="d-flex align-items-center gap-2">
                    <?php if($badge): ?>
                        <span class="badge bg-<?php echo e($badgeColor); ?>"><?php echo e($badge); ?></span>
                    <?php endif; ?>
                    <?php if(count($actions) > 0): ?>
                        <div class="dropdown">
                            <button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
                                <i class="fas fa-ellipsis-v"></i>
                            </button>
                            <ul class="dropdown-menu">
                                <?php $__currentLoopData = $actions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <li>
                                        <a class="dropdown-item" href="<?php echo e($action['url'] ?? '#'); ?>">
                                            <?php if(isset($action['icon'])): ?>
                                                <i class="<?php echo e($action['icon']); ?> me-2"></i>
                                            <?php endif; ?>
                                            <?php echo e($action['label']); ?>

                                        </a>
                                    </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    <?php endif; ?>

    <div class="card-body <?php echo e($bodyClass); ?>">
        <?php echo e($slot); ?>

    </div>

    <?php if($footer): ?>
        <div class="card-footer <?php echo e($footerClass); ?>">
            <?php echo e($footerContent); ?>

        </div>
    <?php endif; ?>
</div>
<?php /**PATH C:\laragon\www\habibcables-ERP\resources\views\components\card.blade.php ENDPATH**/ ?>