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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title',
    'value',
    'trend' => null,
    'icon' => null,
    'iconClass' => 'bg-slate-100 text-slate-600 flex items-center justify-center',
    'iconWrapperClass' => 'h-9 w-9 rounded-lg flex items-center justify-center',
    'accent' => 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',
    'trend' => null,
    'icon' => null,
    'iconClass' => 'bg-slate-100 text-slate-600 flex items-center justify-center',
    'iconWrapperClass' => 'h-9 w-9 rounded-lg flex items-center justify-center',
    'accent' => 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); ?>

<?php
    $accentMap = [
        'emerald' => 'bg-emerald-500',
        'green' => 'bg-emerald-500',
        'red' => 'bg-rose-500',
        'rose' => 'bg-rose-500',
        'sky' => 'bg-sky-500',
        'blue' => 'bg-sky-500',
        'amber' => 'bg-amber-500',
        'orange' => 'bg-orange-500',
        'violet' => 'bg-violet-500',
        'purple' => 'bg-violet-500',
        'teal' => 'bg-teal-600',
        'slate' => 'bg-slate-400',
    ];

    $leftAccent = $accent ? ($accentMap[$accent] ?? 'bg-slate-400') : 'bg-slate-400';
    if (! $accent) {
        foreach ($accentMap as $key => $bg) {
            if (str_contains((string) $iconClass, $key)) {
                $leftAccent = $bg;
                break;
            }
        }
    }
?>

<div <?php echo e($attributes->merge([
    'class' => 'relative overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 pl-4 shadow-sm transition duration-200 hover:shadow-md'
])); ?>>
    <span class="absolute inset-y-0 left-0 w-1.5 rounded-l-2xl <?php echo e($leftAccent); ?>" aria-hidden="true"></span>

    <div class="flex items-start justify-between">

        
        <div>
            <p class="text-sm font-medium text-slate-500">
                <?php echo e($title); ?>

            </p>

            <p class="mt-2 text-sm font-semibold text-slate-900">
                <?php echo e($value); ?>

            </p>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($trend): ?>
                <p class="mt-1 text-xs <?php echo e(str_starts_with($trend, '+') ? 'text-emerald-600' : 'text-slate-500'); ?>">
                    <?php echo e($trend); ?>

                </p>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(isset($icon)): ?>
            <div class="<?php echo e($iconWrapperClass); ?> <?php echo e($iconClass); ?>">
                <?php echo e($icon); ?>

            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    </div>

</div>
<?php /**PATH /var/www/html/kiyohr/v2_version/resources/views/components/stat-card.blade.php ENDPATH**/ ?>