@php
$itemClass = "ms-1 ms-lg-3";
$btnClass = "btn btn-icon btn-icon-muted btn-active-light btn-active-color-primary w-30px h-30px w-md-40px h-md-40px";
$userAvatarClass = "symbol-30px symbol-md-40px";
$btnIconClass = "svg-icon-1";
@endphp
{{--
{{ theme()->getView('partials/search/_base') }}
{!! theme()->getSvgIcon("icons/duotune/general/gen032.svg", $btnIconClass) !!}
{!! theme()->getSvgIcon("icons/duotune/general/gen022.svg", $btnIconClass) !!}
{{ theme()->getView('partials/topbar/_notifications-menu') }}
{!! theme()->getSvgIcon("icons/duotune/communication/com012.svg", $btnIconClass) !!}
{!! theme()->getSvgIcon("icons/duotune/general/gen025.svg", $btnIconClass) !!}
{{ theme()->getView('partials/topbar/_quick-links-menu') }}
--}}
{{-- Help / Guía de uso — solo en TENANTS pagantes.
En bewpro.com (main site) no aplica: el icono apunta al manual de uso
del producto que el tenant le entregó a sus admins, no a la plataforma.
Customer/Reseller de bewpro.com no tiene tenant que administrar. --}}
@php
$__mainHosts = array_map(
fn($h) => strtolower(trim($h)),
explode(',', env('BEWPRO_MAIN_HOSTS', 'bewpro.com,localhost,127.0.0.1'))
);
$__isMainSite = in_array(strtolower(request()->getHost()), $__mainHosts, true);
@endphp
@unless($__isMainSite)
@endunless
{{ theme()->getView('partials/theme-mode/_main', ['params' => [
'toggle-btn-class' => $btnClass
]]) }}
@if (auth()->check())
@php
$authUser = auth()->user();
$authFirst = $authUser->first_name ?: explode('@', $authUser->email)[0];
$authLast = $authUser->last_name ?: '';
$initials = strtoupper(mb_substr($authFirst, 0, 1) . mb_substr($authLast, 0, 1));
if (!$authLast) {
$initials = strtoupper(mb_substr($authFirst, 0, 2));
}
$authPrimaryRole = $authUser->getRoleNames()->first() ?: '';
$hasCustomAvatar = $authUser->info && !empty($authUser->info->avatar_url);
@endphp
{{-- Notification bell para Clients (BewPro custom) — antes del user-menu --}}
@endif
{{-- @if(theme()->getOption('layout', 'header/left') === 'menu')
@endif --}}