@props([
    'class' => 'h-10 w-auto',
])

@php
    $logoRelativePath = 'assets/images/branding/logo-nh-trans.jpg';
    $hasLogo = file_exists(public_path($logoRelativePath));
@endphp

@if ($hasLogo)
    <img
        src="{{ asset($logoRelativePath) }}"
        alt="Logo NH TRANS"
        {{ $attributes->merge(['class' => $class . ' object-contain']) }}
    >
@else
    <span {{ $attributes->merge(['class' => 'text-xl font-bold tracking-wide text-brand-ink']) }}>
        NH TRANS
    </span>
@endif
