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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'label',
    'value',
    'hint' => null,
    'icon' => null,
    'compact' => false,
    'tone' => null, // primary|success|warning|danger|info|muted
]));

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(([
    'label',
    'value',
    'hint' => null,
    'icon' => null,
    'compact' => false,
    'tone' => null, // primary|success|warning|danger|info|muted
]), '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); ?>

<?php
    $toneClass = match ($tone) {
        'primary' => 'tw-stat-tone-primary',
        'success' => 'tw-stat-tone-success',
        'warning' => 'tw-stat-tone-warning',
        'danger' => 'tw-stat-tone-danger',
        'info' => 'tw-stat-tone-info',
        'muted' => 'tw-stat-tone-muted',
        default => '',
    };
?>

<div <?php echo e($attributes->merge([
    'class' => trim('tw-card tw-stat-card '.($compact ? 'tw-stat-card--compact p-2.5' : 'p-4').' '.$toneClass),
])); ?>>
    <div class="flex items-start justify-between gap-2">
        <div class="min-w-0">
            <p class="<?php echo e($compact ? 'text-[10px] tracking-[0.06em]' : 'text-[11px] tracking-[0.08em]'); ?> font-semibold uppercase text-[var(--color-text-muted)]">
                <?php echo e($label); ?>

            </p>
            <p class="<?php echo e($compact ? 'mt-0.5 text-base' : 'mt-1.5 text-2xl'); ?> font-bold tracking-tight text-[var(--color-text)] tabular-nums leading-tight">
                <?php echo e($value); ?>

            </p>
            <?php if($hint): ?>
                <p class="<?php echo e($compact ? 'mt-0.5 text-[10px]' : 'mt-1.5 text-xs'); ?> text-[var(--color-text-muted)] leading-snug">
                    <?php echo e($hint); ?>

                </p>
            <?php endif; ?>
        </div>

        <?php if($icon): ?>
            <div class="tw-stat-icon flex <?php echo e($compact ? 'h-7 w-7 rounded-md text-xs' : 'h-11 w-11 rounded-xl text-lg'); ?> shrink-0 items-center justify-center">
                <?php if(str_starts_with($icon, 'bi')): ?>
                    <i class="<?php echo e($icon); ?>"></i>
                <?php else: ?>
                    <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => $icon,'class' => ''.e($compact ? 'h-3.5 w-3.5' : 'h-5 w-5').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($icon),'class' => ''.e($compact ? 'h-3.5 w-3.5' : 'h-5 w-5').'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
                <?php endif; ?>
            </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /var/www/html/shivajewellers_uat/resources/views/components/ui/stat-card.blade.php ENDPATH**/ ?>