{{-- Header demo-accounting-2 — Usa componentes compartidos --}} {{-- Top Bar --}} @foreach(config('site.social_media', []) as $key => $social) @if(is_array($social) && ($social['active'] ?? false)) @endif @endforeach @if(config('site.header.top_bar_text')) {!! config('site.header.top_bar_text') !!} @endif @if(config('site.header.show_language_selector', false)) @endif {{-- Main Navigation --}} @php $mainLogoUrl = site_asset_url('main_logo'); $isDefaultLogo = empty($mainLogoUrl) || str_contains($mainLogoUrl, 'logo-main') || str_contains($mainLogoUrl, 'logo.png') || str_contains($mainLogoUrl, 'logo-default') || str_contains($mainLogoUrl, 'logo-logo-2'); @endphp @if(!$isDefaultLogo) @else @php $siteName = config('site.name', 'COKE'); $formattedName = str_ireplace('o', '0', $siteName); $firstChar = substr($formattedName, 0, 1); $secondChar = strlen($formattedName) > 1 ? substr($formattedName, 1, 1) : ''; $restChars = strlen($formattedName) > 2 ? substr($formattedName, 2) : ''; @endphp <{{ $firstChar }}@if($secondChar !== ''){{ $secondChar }}@endif{{ $restChars }}> @endif @if(config('site.header.show_search', true)) @endif @if(config('site.header.show_search', true)) @endif {{-- Offcanvas Menu --}}