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

Popular Artists

{{--
Discover all popular artists and their best works
--}}
Temukan semua artis populer dan karya terbaik mereka
All Genres
@foreach ($genres as $row)
{{ $row->name }}
@endforeach {{--
Pop
Rock
Hip Hop
R&B
Electronic
Jazz
Classical
Country
--}}

Top Artists

@php $index = 0; @endphp @forelse ($topArtist as $artist) @php $index++; $i = $index; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($artist, 'sm'); $totalSongs = app(\App\Services\SongServices::class)::totalSongPerform($artist->id); @endphp

{{ $artist->name }}

@if ($totalSongs > 0)

{{ $totalSongs }} Songs

@endif
@empty belum terdapat data @endforelse {{-- @for ($i = 1; $i <= 12; $i++)
Artist #{{ $i }}

Top Artist #{{ $i }}

{{ rand(5, 30) }} Songs

@endfor --}}

All Artists

@php $index = 0; @endphp @forelse ($allArtist as $artist) @php $index++; $i = $index; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($artist, 'md'); // $bgImageUrl = app(\App\Services\UserServices::class)->getBgProfile($artist, 'sm'); $totalSong = app(\App\Services\SongServices::class)::totalSongPerform($artist->id); $follower = app(\App\Services\UserServices::class)::totalFollowers($artist->id); @endphp
{{ $artist->name }} @if ($artist->created_at && $artist->created_at->gt(now()->subMonth()))
New
@endif

{{ $artist->name }}

@if ($totalSong > 0)
{{ $totalSong }} Songs
@endif @if ($follower > 0)
@for ($j = 1; $j <= 3; $j++) Fan @endfor
{{ $follower }} follower
@endif
@empty belum terdapat data @endforelse {{-- @for ($i = 1; $i <= 10; $i++)
Artist #{{ $i }}
New

Artist #{{ $i }}

{{ rand(5, 15) }} Songs
@for ($j = 1; $j <= 3; $j++) Fan @endfor
{{ rand(10, 50) }}K follower
@endfor --}}
Featured Collaboration

Artist Collaborations

Discover incredible artist collaborations and their masterpieces.

Artist Artist One
Artist Artist Two
Artist Artist Three
@endsection @push('style') @endpush @section('scripts') @endsection