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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title' => 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' => 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); ?>

<div <?php echo e($attributes->merge(['class' => 'tw-card'])); ?>>
    <?php if($title): ?>
        <div class="flex items-center justify-between gap-3 border-b border-[var(--color-border)] bg-[color-mix(in_srgb,var(--color-bg)_55%,transparent)] px-4 py-3">
            <h3 class="text-sm font-semibold tracking-tight text-[var(--color-text)]"><?php echo e($title); ?></h3>
            <?php if(isset($headerActions)): ?>
                <div class="flex items-center gap-2"><?php echo e($headerActions); ?></div>
            <?php endif; ?>
        </div>
    <?php endif; ?>

    <div class="px-4 py-4">
        <?php echo e($slot); ?>

    </div>

    <?php if(isset($footer)): ?>
        <div class="border-t border-[var(--color-border)] px-4 py-3">
            <?php echo e($footer); ?>

        </div>
    <?php endif; ?>
</div>
<?php /**PATH /var/www/html/shivajewellers_uat/resources/views/components/ui/card.blade.php ENDPATH**/ ?>