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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['title', 'value', 'change' => null, 'icon' => null, 'positive' => 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', 'change' => null, 'icon' => null, 'positive' => 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="small-box bg-white shadow-sm border">
    <div class="inner">
        <h3><?php echo e($value); ?></h3>
        <p><?php echo e($title); ?></p>
    </div>
    <?php if($icon): ?>
    <div class="icon">
        <i class="fas <?php echo e($icon); ?>"></i>
    </div>
    <?php endif; ?>
    <?php if($change !== null && $change != 0): ?>
    <div class="small-box-footer">
        <?php if($positive === true || $positive === null && $change > 0): ?>
        <i class="fas fa-arrow-up text-success"></i> <?php echo e(number_format(abs($change), 2)); ?>% 
        <?php elseif($positive === false || $positive === null && $change < 0): ?>
        <i class="fas fa-arrow-down text-danger"></i> <?php echo e(number_format(abs($change), 2)); ?>% 
        <?php else: ?>
        <i class="fas fa-equals text-muted"></i> <?php echo e(number_format(abs($change), 2)); ?>% 
        <?php endif; ?>
        <small>(24h)</small>
    </div>
    <?php endif; ?>
</div><?php /**PATH C:\xampp\htdocs\AI business market\Laravel\resources\views/brand/partials/_kpi_card.blade.php ENDPATH**/ ?>