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

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

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' => 'general']), '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
$tabs = [
    ['key' => 'general',  'label' => 'General',  'route' => 'settings.general'],
    ['key' => 'branding', 'label' => 'Branding', 'route' => 'settings.branding'],
    ['key' => 'mail',     'label' => 'Mail',     'route' => 'settings.mail'],
    ['key' => 'twilio',   'label' => 'Twilio',   'route' => 'settings.twilio'],
    ['key' => 'ai',       'label' => 'AI',       'route' => 'settings.ai'],
];
?>

<div class="grid grid-cols-1 lg:grid-cols-[200px_1fr] gap-6">
    <nav class="space-y-1">
        <?php $__currentLoopData = $tabs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tab): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php $isActive = $tab['key'] === $active; ?>
            <a href="<?php echo e(route($tab['route'])); ?>"
               class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                   'block rounded-md px-3 py-2 text-sm font-medium transition-colors',
                   'bg-accent text-accent-foreground' => $isActive,
                   'text-muted-foreground hover:bg-accent/60 hover:text-foreground' => !$isActive,
               ]); ?>">
                <?php echo e($tab['label']); ?>

            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </nav>

    <div class="min-w-0">
        <?php echo e($slot); ?>

    </div>
</div>
<?php /**PATH D:\xampp_lite\xampp_lite_8_3\www\laracontact\resources\views\components\settings-layout.blade.php ENDPATH**/ ?>