@props(['url'])
@php
    $tpl = \App\Support\EmailTemplate::class;
    $logoUrl = $tpl::logoUrl();
    $logoWidth = $tpl::logoWidth();
    $alignment = $tpl::alignment();
    $siteName = $tpl::siteName();
@endphp
<tr>
<td class="header" style="text-align: {{ $alignment }}; padding: 36px 48px 24px;">
<a href="{{ $url }}" style="text-decoration: none; display: inline-block;">
@if ($logoUrl)
<img src="{{ $logoUrl }}" alt="{{ $siteName }}" class="logo" style="max-width: 100%; width: {{ $logoWidth }}px; height: auto; border: 0; display: block;">
@else
<span style="color: #1f1d1a; font-size: 30px; font-weight: 600; letter-spacing: -0.01em;">{{ $siteName }}</span>
@endif
</a>
</td>
</tr>
