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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title',
    'value' => null,
    'description' => null,
    'icon' => null,
    'tone' => 'emerald',
]));

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' => null,
    'description' => null,
    'icon' => null,
    'tone' => 'emerald',
]), '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
    $tones = [
        'emerald' => 'bg-teal-50 text-teal-700 dark:bg-teal-900/25 dark:text-teal-300',
        'blue' => 'bg-sky-50 text-sky-700 dark:bg-sky-900/25 dark:text-sky-300',
        'amber' => 'bg-amber-50 text-amber-700 dark:bg-amber-900/25 dark:text-amber-300',
        'purple' => 'bg-purple-50 text-purple-700 dark:bg-purple-900/25 dark:text-purple-300',
        'indigo' => 'bg-indigo-50 text-indigo-700 dark:bg-indigo-900/25 dark:text-indigo-300',
        'rose' => 'bg-rose-50 text-rose-700 dark:bg-rose-900/25 dark:text-rose-300',
        'slate' => 'bg-slate-50 text-slate-700 dark:bg-slate-800 dark:text-slate-300',
    ];
    $toneClass = $tones[$tone] ?? $tones['emerald'];
?>

<div <?php echo e($attributes->merge(['class' => 'admin-card p-6'])); ?>>
    <div class="mb-3 flex items-center justify-between gap-3">
        <span class="text-sm font-semibold text-gray-500 dark:text-gray-400"><?php echo e($title); ?></span>
        <?php if($icon): ?>
            <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg <?php echo e($toneClass); ?>">
                <i class="bi <?php echo e($icon); ?> text-sm"></i>
            </span>
        <?php endif; ?>
    </div>
    <div class="text-2xl font-bold text-gray-900 dark:text-white"><?php echo e($value); ?></div>
    <?php if($description): ?>
        <p class="mt-1 text-xs text-gray-500 dark:text-gray-500"><?php echo e($description); ?></p>
    <?php endif; ?>
</div>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/components/admin/dashboard-card.blade.php ENDPATH**/ ?>