@props(['banner', 'class' => 'aspect-[16/7]', 'tone' => 'bg-tertiary text-on-tertiary'])
@php $tag = $banner->link ? 'a' : 'div'; @endphp
<{{ $tag }} @if ($banner->link) href="{{ $banner->link }}" @endif {{ $attributes->merge(['class' => 'group relative block overflow-hidden rounded-[40px] ' . $tone . ' ' . $class]) }}>
@if ($banner->image)
@endif
@if ($banner->image && ($banner->title || $banner->subtitle || $banner->button_text))@endif
@if ($banner->title)@endif
@if ($banner->subtitle){{ $banner->subtitle }}@endif
@if ($banner->button_text){{ $banner->button_text }}@endif
{{ $tag }}>