From b8b36c50d09b1b1ea59b02601a9f7c5f4bca894b Mon Sep 17 00:00:00 2001 From: Frankie B Date: Mon, 14 Aug 2023 23:45:31 +0100 Subject: we ball --- resources/views/pages/music.blade.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'resources/views/pages/music.blade.php') diff --git a/resources/views/pages/music.blade.php b/resources/views/pages/music.blade.php index cba45c2..e24f88c 100644 --- a/resources/views/pages/music.blade.php +++ b/resources/views/pages/music.blade.php @@ -8,7 +8,7 @@ $api_root = app('config')->get('app')['api_root']; $current_track = json_decode(file_get_contents($api_root . '/lastfm/current')); - $toptracks = json_decode(file_get_contents($api_root . '/lastfm/top')); + $top_tracks = json_decode(file_get_contents($api_root . '/lastfm/top')); $count = 0; @endphp @@ -32,24 +32,24 @@

Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)

- - - - - + + + + + - @foreach ($toptracks as $track) + @foreach ($top_tracks as $track) @php $count++ @endphp - @if ($count >= $cfg['toptracks']) + @if ($count >= $cfg['toptracks']+1) @break @endif - + @endforeach
#TrackArtistPlays
#TrackArtistPlays
{{ $count+1 }}{{ $count }} {{ $track->name }} {{ $track->artist }} {{ $track->plays }}
-
@stop -- cgit v1.2.3-54-g00ecf