@php
    $school = function_exists('generalSetting') ? generalSetting() : null;
    $logoPath = optional($school)->logo;
@endphp
<tr>
    <td class="header">
        <a href="{{ $url }}">
            @if($logoPath)
                <img class="mail-header-logo" src="{{ asset($logoPath) }}" alt="{{ trim(strip_tags($slot)) ?: config('app.name') }}">
            @else
                {{ $slot }}
            @endif
        </a>
    </td>
</tr>
