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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title' => 'Title',
    'value' => '0',
    'icon' => 'fa-chart-bar',
    'color' => 'blue',
    'subtitle' => null,
    'subtitleIcon' => 'fa-arrow-up',
    'subtitleColor' => 'green'
]));

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' => 'Title',
    'value' => '0',
    'icon' => 'fa-chart-bar',
    'color' => 'blue',
    'subtitle' => null,
    'subtitleIcon' => 'fa-arrow-up',
    'subtitleColor' => 'green'
]), '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 <?php echo e($attributes->merge(['class' => 'bg-white rounded-2xl shadow-sm hover:shadow-xl transition-all border border-gray-100 overflow-hidden'])); ?>>
    <!-- Header Gold -->
    <div class="bg-gradient-to-r from-[#c9a84c] to-[#b8962a] px-4 py-3 flex items-center justify-between">
        <p class="text-white text-xs font-semibold uppercase tracking-wider"><?php echo e($title); ?></p>
        <i class="fas <?php echo e($icon); ?> text-white/70 text-sm"></i>
    </div>
    
    <!-- Body -->
    <div class="p-6">
        <p class="text-3xl font-bold text-gray-800"><?php echo e($value); ?></p>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($subtitle): ?>
            <p class="text-xs text-<?php echo e($subtitleColor); ?>-500 mt-2">
                <i class="fas <?php echo e($subtitleIcon); ?> mr-1"></i><?php echo e($subtitle); ?>

            </p>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <?php echo e($slot); ?>

    </div>
</div><?php /**PATH C:\laragon\www\tunjuk-i-backend\resources\views/components/stat-card.blade.php ENDPATH**/ ?>