This repository has been archived on 2026-11-11. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
wah.moe/resources/views/components/lastfm-top.blade.php

21 lines
572 B
PHP

@if (isLegacy())
<table border="1" cellspacing="0" cellpadding="5">
<font size="+2"><b>Top 10 Tracks (Last 30 days):</b></font>
@else
<table class="music-top10">
<caption>
<h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2>
</caption>
@endif
<tr>
<th><b>#</b></th>
<th><b>Track</b></th>
<th><b>Artist</b></th>
<th><b>Plays</b></th>
</tr>
@php($count = 0)
@foreach ($tracks as $track)
@php($count++)
<x-lastfm-track :track="$track" :count="$count"/>
@endforeach
</table>