@extends('layouts.landing-page') @section('content')

Trending

All
@foreach ($genres as $row)
{{ $row->name }}
@endforeach

Trending Song

@php $i = 0; @endphp @forelse ($songs as $song) @php $i++; $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($song, 'md'); $artistArray = app(\App\Services\SongServices::class)::getArtistContributor( $song->songContributors, ); $names = array_column($artistArray, 'name'); $artistSeparated = implode(', ', $names); @endphp
Trending
Trending Song #{{ $i }}
@guest
@endguest

{{ $song->title }} #{{ $i }}

{{ $artistSeparated }} #{{ $i }}

Song • {{ rand(1, 50) }}M views
@empty
belum terdapat data
@endforelse {{-- @for ($i = 1; $i <= 12; $i++)
Trending
Trending Song #{{ $i }}
@guest
@endguest

Trending Song #{{ $i }}

Trending Artist #{{ $i }}

Song • {{ rand(1, 50) }}M views
@endfor --}}

Trending cover creators

@php $index = 0; @endphp @forelse ($covers as $cover) @php $index++; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($cover, 'md'); $follower = app(\App\Services\UserServices::class)::totalFollowers($cover->id); @endphp

{{ $cover->name }}

{{ $follower }} followers

@empty
belum terdapat data
@endforelse {{-- @php $creators = [ 'Alex Covers', 'Music Master', 'Cover Queen', 'Acoustic Vibes', 'Melody Maker', 'Piano Pro', 'Guitar Hero', 'Voice Master', 'Cover King', 'Music Magic', ]; @endphp @foreach ($creators as $index => $creator)
{{ $creator }}
View

{{ $creator }}

{{ rand(100, 999) }}K followers

@endforeach --}}

Trending artists

@php $index = 0; @endphp @forelse ($artists as $artist) @php $index++; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($cover, 'md'); $follower = app(\App\Services\UserServices::class)::totalFollowers($cover->id); @endphp

{{ $artist->name }}

@empty
belum terdapat data
@endforelse {{-- @php $artists = [ 'Taylor Swift', 'The Weeknd', 'Drake', 'Billie Eilish', 'Dua Lipa', 'Bad Bunny', 'Ariana Grande', 'BTS', 'Ed Sheeran', 'Justin Bieber', ]; @endphp @foreach ($artists as $index => $artist)
{{ $artist }}
View

{{ $artist }}

@endforeach --}}

Trending composers

@php $index = 0; @endphp @forelse ($composers as $composer) @php $index++; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($cover, 'md'); $follower = app(\App\Services\UserServices::class)::totalFollowers($cover->id); @endphp

{{ $composer->name }}

@empty
belum terdapat data
@endforelse {{-- @php $composers = [ 'Hans Zimmer', 'John Williams', 'Ennio Morricone', 'Howard Shore', 'James Horner', 'Max Richter', 'Ludovico Einaudi', 'Philip Glass', 'Joe Hisaishi', 'Yann Tiersen', ]; @endphp @foreach ($composers as $index => $composer)
{{ $composer }}
View

{{ $composer }}

@endforeach --}}
@endsection @section('scripts') @endsection