<aside class="flex w-64 shrink-0 flex-col border-r border-slate-800 bg-slate-900 text-slate-100">
    <div class="border-b border-slate-800 px-6 py-5">
        <a href="<?php echo e(route('dashboard')); ?>" class="text-lg font-semibold tracking-tight text-white">
            ImóvelZapAi
        </a>
        <p class="mt-1 text-xs text-slate-400">Corretor digital</p>
    </div>

    <nav class="flex-1 px-3 py-4" aria-label="Menu principal">
        <ul class="space-y-1">
            <li>
                <a
                    href="<?php echo e(route('dashboard')); ?>"
                    class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                        'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                        'bg-emerald-600 text-white' => request()->routeIs('dashboard'),
                        'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('dashboard'),
                    ]); ?>"
                >
                    Dashboard
                </a>
            </li>

            <?php if(auth()->guard()->check()): ?>
                <?php if(auth()->user()->hasAnyRole(['Admin', 'Gestor', 'Corretor'])): ?>
                    <li>
                        <a
                            href="<?php echo e(route('properties.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('properties.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('properties.*'),
                            ]); ?>"
                        >
                            Imóveis
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('publishing.center')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('publishing.center'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('publishing.center'),
                            ]); ?>"
                        >
                            Publicação
                        </a>
                    </li>
                    <?php if(auth()->user()->hasAnyRole(['Admin', 'Gestor'])): ?>
                        <li>
                            <a
                                href="<?php echo e(route('importing.index')); ?>"
                                class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                    'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                    'bg-emerald-600 text-white' => request()->routeIs('importing.*'),
                                    'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('importing.*'),
                                ]); ?>"
                            >
                                Importação
                            </a>
                        </li>
                    <?php endif; ?>
                    <li>
                        <a
                            href="<?php echo e(route('people.inbox')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('people.inbox'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('people.inbox'),
                            ]); ?>"
                        >
                            Caixa de entrada
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('people.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('people.index', 'people.show', 'handoff.*') && ! request()->routeIs('people.inbox'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('people.index', 'people.show', 'handoff.*') || request()->routeIs('people.inbox'),
                            ]); ?>"
                        >
                            Pessoas
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('visits.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('visits.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('visits.*'),
                            ]); ?>"
                        >
                            Visitas
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('sales.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('sales.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('sales.*'),
                            ]); ?>"
                        >
                            Oportunidades
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('owners.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('owners.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('owners.*'),
                            ]); ?>"
                        >
                            Proprietários
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('client-portals.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('client-portals.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('client-portals.*'),
                            ]); ?>"
                        >
                            Portais
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('documents.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('documents.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('documents.*'),
                            ]); ?>"
                        >
                            Documentos
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('signatures.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('signatures.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('signatures.*'),
                            ]); ?>"
                        >
                            Assinaturas
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('financial.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('financial.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('financial.*'),
                            ]); ?>"
                        >
                            Financeiro
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('automation.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('automation.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('automation.*'),
                            ]); ?>"
                        >
                            Automações
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('analytics.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('analytics.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('analytics.*'),
                            ]); ?>"
                        >
                            Indicadores
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('whatsapp.settings')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('whatsapp.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('whatsapp.*'),
                            ]); ?>"
                        >
                            WhatsApp
                        </a>
                    </li>
                    <li>
                        <a
                            href="<?php echo e(route('settings.index')); ?>"
                            class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                'flex items-center rounded-lg px-3 py-2 text-sm font-medium transition',
                                'bg-emerald-600 text-white' => request()->routeIs('settings.*', 'organizations.*', 'billing.*', 'users.*', 'brokers.*', 'permissions.*'),
                                'text-slate-300 hover:bg-slate-800 hover:text-white' => ! request()->routeIs('settings.*', 'organizations.*', 'billing.*', 'users.*', 'brokers.*', 'permissions.*'),
                            ]); ?>"
                        >
                            Configurações
                        </a>
                    </li>
                <?php endif; ?>
            <?php endif; ?>
        </ul>
    </nav>
</aside>
<?php /**PATH /var/www/html/backend/resources/views/partials/sidebar.blade.php ENDPATH**/ ?>