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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title',
    'canvasId' => null,
    'compact' => false,
]));

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',
    'canvasId' => null,
    'compact' => false,
]), '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
    $id = $canvasId ?? $attributes->get('id', 'chart-' . uniqid());
?>

<div <?php echo e($attributes->except('id')->merge(['class' => $compact ? 'tw-card p-3' : 'tw-card p-4'])); ?>>
    <h3 class="<?php echo e($compact ? 'mb-2 text-xs' : 'mb-3 text-sm'); ?> font-semibold text-[var(--color-text)]"><?php echo e($title); ?></h3>
    <div class="tw-chart-frame relative w-full <?php echo e($compact ? 'tw-chart-frame--compact' : ''); ?>">
        <canvas id="<?php echo e($id); ?>" class="h-full w-full"></canvas>
    </div>
    <?php echo e($slot); ?>

</div>
<?php /**PATH /var/www/html/shivajewellers_uat/resources/views/components/admin/chart-card.blade.php ENDPATH**/ ?>