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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['active', 'icon']));

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((['active', 'icon']), '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
$classes = ($active ?? false)
            ? 'flex items-center gap-3 px-4 py-3 text-sm font-bold bg-indigo-600 text-white rounded-xl shadow-lg shadow-indigo-600/20 transition group'
            : 'flex items-center gap-3 px-4 py-3 text-sm font-bold text-slate-400 hover:bg-slate-800 hover:text-white rounded-xl transition group';

$iconClass = ($active ?? false)
            ? 'text-white text-lg'
            : 'text-slate-500 group-hover:text-white text-lg transition-colors';
?>

<a <?php echo e($attributes->merge(['class' => $classes])); ?>>
    <i class="<?php echo e($icon); ?> ph-bold <?php echo e($iconClass); ?>"></i>
    <span><?php echo e($slot); ?></span>
</a>
<?php /**PATH /Users/yousaf/Documents/GitHub/law-firm-project/resources/views/components/admin-nav-link.blade.php ENDPATH**/ ?>