@props([
'size' => 'md',
'variant' => 'square',
])
@php
$logoUrl = match ($variant) {
'horizontal' => $systemLogoHorizontalUrl ?? null ?: ($systemLogoSquareUrl ?? null),
default => $systemLogoSquareUrl ?? null,
};
$sizeClass = match ($variant) {
'horizontal' => match ($size) {
'sm' => 'brand-logo-horizontal-sm',
'lg' => 'brand-logo-horizontal-lg',
'xl' => 'brand-logo-horizontal-xl',
default => 'brand-logo-horizontal-md',
},
default => match ($size) {
'sm' => 'brand-logo-square-sm',
'lg' => 'brand-logo-square-lg',
default => 'brand-logo-square-md',
},
};
@endphp
@if ($logoUrl)
class(['brand-logo-img', $sizeClass]) }}
>
@else
class(['brand-mark']) }} aria-hidden="true">
@endif