@props([ /** Which nav item to underline: product | features | pricing | resources | changelog */ 'active' => 'product', ]) @php $items = [ 'product' => [ 'label' => fc('nav.link1_label', __('Home')), 'href' => fc('nav.link1_url', url('/')), 'key' => 'nav.link1_label', 'urlKey' => 'nav.link1_url', ], 'features' => [ 'label' => fc('nav.link2_label', __('Features')), 'href' => fc('nav.link2_url', url('/features')), 'key' => 'nav.link2_label', 'urlKey' => 'nav.link2_url', ], 'pricing' => [ 'label' => fc('nav.link3_label', __('Pricing')), 'href' => fc('nav.link3_url', url('/pricing')), 'key' => 'nav.link3_label', 'urlKey' => 'nav.link3_url', ], 'about' => [ 'label' => fc('nav.link4_label', __('About')), 'href' => fc('nav.link4_url', url('/about')), 'key' => 'nav.link4_label', 'urlKey' => 'nav.link4_url', ], 'contact' => [ 'label' => fc('nav.link5_label', __('Contact')), 'href' => fc('nav.link5_url', url('/contact')), 'key' => 'nav.link5_label', 'urlKey' => 'nav.link5_url', ], ]; $brandName = (string) \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk')); $appVersion = config('app.version', 'v 4.2'); $brandLogo = \App\Support\Brand::logoUrl(); // uploaded logo, or null @endphp
{{-- Logo + brand. If an admin uploaded a site logo (admin → General settings), show it; otherwise fall back to the SVG mark + wordmark. --}} @if ($brandLogo) {{ $brandName }} @else
{{ $brandName }}
{{ $appVersion }} · {{ __('platform') }}
@endif
{{-- Centered nav --}} {{-- Sign in / Start free. If the visitor is already authed, show Dashboard instead so they don't have to log in twice. --}} {{-- Mobile Hamburger Toggle --}}
{{-- Mobile Menu Overlay --}}
@foreach ($items as $key => $item) {{ $item['label'] }} @endforeach
@auth {{ fc('nav.cta_dashboard_label', __('Dashboard')) }} @else @if (Route::has('register')) {{ fc('nav.cta_label', __('Start free')) }} @endif @if (Route::has('login')) {{ fc('nav.signin_label', __('Sign in')) }} @endif @endauth