@php $company = auth()->user()->company; $moduleAccess = app(\App\Services\Subscription\ModuleAccessService::class); $can = fn (...$modules) => $company && collect($modules)->contains(fn ($module) => $moduleAccess->isEnabled($company, $module)); $showPrincipal = $can('bookings'); $showClientes = $can('customers', 'clinical_history'); $showCatalogo = $can('services', 'employees', 'schedules', 'gallery', 'multi_branch'); $showCrecimiento = $can('promotions', 'coupons', 'reports', 'cash_register', 'payments', 'reminders', 'notifications', 'whatsapp', 'invoicing', 'branding', 'pwa', 'advanced_agenda'); $isEmployeePortal = auth()->user()?->isEmployee() && ! auth()->user()?->isCompanyAdmin(); @endphp @if ($isEmployeePortal) @if ($can('public_page')) @endif @else @if ($can('public_page')) @endif @endif {{ $slot }}