@php $selMenu = (array) old('menu_acessos', []); @endphp
Menu principal
@foreach (\App\Models\Empresa::telasMenuEmpresaRotulos() as $key => $rotulo)
@if (!str_starts_with($key, 've_') && !str_starts_with($key, 'financeiro_') && !str_starts_with($key, 'caixa_') && !str_starts_with($key, 'fidelidade_'))
@endif
@endforeach
Fidelidade (submenu)
@foreach (\App\Models\Empresa::telasMenuEmpresaRotulos() as $key => $rotulo)
@if (str_starts_with($key, 'fidelidade_'))
@endif
@endforeach
Financeiro (submenu)
@foreach (\App\Models\Empresa::telasMenuEmpresaRotulos() as $key => $rotulo)
@if (str_starts_with($key, 'financeiro_'))
@endif
@endforeach
Caixa (submenu)
@foreach (\App\Models\Empresa::telasMenuEmpresaRotulos() as $key => $rotulo)
@if (str_starts_with($key, 'caixa_'))
@endif
@endforeach
Venda externa (submenu)
@foreach (\App\Models\Empresa::telasMenuEmpresaRotulos() as $key => $rotulo)
@if (str_starts_with($key, 've_'))
@endif
@endforeach
Além de esconder do menu, o sistema bloqueia a rota se tentar acessar pelo link.