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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['title', 'value', 'icon', 'color' => 'primary', 'trend' => null]));

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', 'value', 'icon', 'color' => 'primary', 'trend' => null]), '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 stat-card h-100">
    <div class="card-body">
        <div class="d-flex justify-content-between align-items-start">
            <div>
                <p class="text-muted small mb-1 text-uppercase fw-bold"><?php echo e($title); ?></p>
                <h3 class="mb-0 fw-bold text-dark"><?php echo e($value); ?></h3>
            </div>
            <div class="icon-shape bg-<?php echo e($color); ?> bg-opacity-10 text-<?php echo e($color); ?> rounded p-3">
                <i class="bi bi-<?php echo e($icon); ?> fs-4"></i>
            </div>
        </div>
        <?php if($trend): ?>
            <div class="mt-3">
                <span class="badge badge-soft-<?php echo e($trend > 0 ? 'success' : 'danger'); ?>">
                    <i class="bi bi-arrow-<?php echo e($trend > 0 ? 'up' : 'down'); ?>"></i> <?php echo e(abs($trend)); ?>%
                </span>
                <span class="text-muted small ms-1">since last month</span>
            </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH C:\Users\ADMIN\Desktop\admin\resources\views/admin/components/stat-card.blade.php ENDPATH**/ ?>