@if (isLegacy())
    @php
    $artUrl = null;
    $path = parse_url($track["image"], PHP_URL_PATH);
    if ($track["image"] !== "") {
        $artUrl = "//" . request()->getHttpHost() . "/proxy/lastfm/" . basename($path);
    }
    @endphp
    <table border="0" cellpadding="0" cellspacing="0"><tr>
            @if ($artUrl !== null)
                <td><img src="{{ $artUrl }}" alt="Album cover for {{ $track["title"] }} by {{ $track["artist"] }}" border="1"></td>
            @endif
            <td width="10px">&nbsp;</td>
            <td>
                <h2>{{ $track["header"] }}:</h2>
                <a href="{{ $track["url"] }}"><font color="#000000">{{ $track["title"] }}</font></a><br>
                by {{ $track["artist"] }}<br>
            </td>
        </tr></table>
    <br>
@else
<div class="current-track">
    @if($track["image"] !== "")
    <div>
        <img src="{{ $track["image"] }}" alt="Album cover for {{ $track["title"] }} by {{ $track["artist"] }}">
    </div>
    @endif
    <div>
        <h2>{{ $track["header"] }}:</h2>
        <a href="{{ $track["url"] }}"><font color="#000000">{{ $track["title"] }}</font></a><br>
        by {{ $track["artist"] }}<br>
    </div>
</div>
@endif
