@php $cms = app(\App\Services\CmsSettingsService::class)->get(); $branding = $cms['branding'] ?? []; $brandName = trim((string) ($branding['brand_name'] ?? '')) ?: ($branding['site_name'] ?? config('app.name')); $logoUrl = \App\Support\BrandLogo::url('client_header', $cms, 'dark'); $useTextLogo = ($branding['use_text_logo'] ?? 'no') === 'yes'; $logoFit = $branding['logo_object_fit'] ?? 'contain'; $logoFit = in_array($logoFit, ['contain', 'cover', 'fill', 'none', 'scale-down'], true) ? $logoFit : 'contain'; $logoWidth = max(0, (int) ($branding['logo_width'] ?? 0)); $logoHeight = max(0, (int) ($branding['logo_height'] ?? 0)); $logoStyle = 'object-fit:'.$logoFit.';max-height:'.max(10, (int) ($branding['logo_max_height'] ?? 42)).'px;' .'width:'.($logoWidth ? $logoWidth.'px' : 'auto').';height:'.($logoHeight ? $logoHeight.'px' : 'auto').';'; $client = $profileOnly ? null : auth('client')->user(); $name = $profileOnly ? (trim(($lead->first_name ?? '').' '.($lead->last_name ?? '')) ?: 'Lead profile') : ($client->full_name ?: $client->email); $email = $profileOnly ? $lead->email : $client->email; $initials = collect(preg_split('/\s+/u', trim($name)))->filter()->take(2)->map(fn($part) => mb_strtoupper(mb_substr($part, 0, 1)))->implode(''); $translationEnabled = \App\Support\WebsiteLanguage::configuration($cms)['enabled']; $workspaceShell = match ($workspaceDesign) { 'fxzone', 'nexora' => 'compact', 'fina' => 'floating', 'finantics' => 'topline', 'prospera' => 'centered', 'auralis' => 'right', 'vertexa' => 'topdock', default => 'sidebar', }; @endphp
@include('client.presentation.head') Skip to content