@extends('layouts.landing-page') @section('content')
Untuk Anda
Tangga Lagu
Hip Hop
Pop
Rock
R&B
Electronic
Jazz
Classical
Country
Indie
Metal
Mood
Workout
Focus
@if (isset($latestAnnouncement) && $latestAnnouncement)
{{-- Bagian untuk menampilkan gambar --}} @if ($latestAnnouncement->picture)
{{ $latestAnnouncement->title }} {{-- Sesuaikan ukuran dan gaya gambar di sini --}}
@endif {{-- Akhir bagian gambar --}}

{{ $latestAnnouncement->title }}

{{ $latestAnnouncement->content }}

@endif
@if (isset($banner) && $banner && $banner->picture) {{ $banner->title ?? 'Featured artist' }} @else Featured artist default @endif
@if (isset($banner) && $banner) @if ($banner->badge) {{ $banner->badge }} @else Playlist Unggulan @endif

{{ $banner->title }}

@if ($banner->description)

{{ $banner->description }}

@else

Lihat karya musik dari para kreator yang telah mengurus lisensi secara resmi. Jadikan inspirasimu untuk berkarya tanpa batas.

@endif @else Playlist Terbaik

Karya Pilihan Bulan Ini

Lihat karya musik dari para kreator yang telah mengurus lisensi secara resmi. Jadikan inspirasimu untuk berkarya tanpa batas.

@endif Lihat Sekarang

List lagu yang sering dicari

@if ($songs->isNotEmpty()) See All @endif
@forelse ($songs as $song) @php $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($song, 'sm'); @endphp @php $creatorName = $song->songContributors ->where('role', 'Composer') ->pluck('user.name') ->filter() ->implode(', ') ?? '-'; if (empty($creatorName)) { $creatorName = '-'; } $artistName = $song->songContributors ->filter(function ($contributor) { return in_array($contributor->role, ['Artist', 'Cover Creator']); }) ->pluck('user.name') ->filter() ->implode(', ') ?: '-'; if (empty($artistName)) { $artistName = 'No Artist'; } @endphp
{{ $song->title }}

{{ $song->title }}

{{ $artistName }}

@empty
belum terdapat data
@endforelse

List Artis Populer

See All
@php $index = 0; @endphp @foreach ($artists as $artist) @php $index++; @endphp

{{ $artist->name }}

@endforeach

List Lagu Populer

@if ($popularSongs) See All @endif
@php $index = 0; @endphp @if ($popularSongs) @forelse ($popularSongs as $row) @php $index++; $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($row, 'md'); $artistArray = app(\App\Services\SongServices::class)::getArtistContributor($row->songContributors); @endphp
#{{ $index }}
{{ $row->title }}

{{ $row->title }}

{{ $row->artist }}

@empty belum terdapat data @endforelse @else
belum terdapat data
@endif {{-- @php $trendingSongs = [ [ 'title' => 'Anti-Hero', 'artist' => 'Taylor Swift', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', ], [ 'title' => 'Blinding Lights', 'artist' => 'The Weeknd', 'img' => 'https://images.unsplash.com/photo-1504509546545-e000b4a62425?q=80&w=300', ], [ 'title' => 'Rich Flex', 'artist' => 'img' => 'https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=300', ], [ 'title' => 'Levitating', 'artist' => 'Dua Lipa', 'img' => 'https://images.unsplash.com/photo-1501386761578-eac5c94b800a?q=80&w=300', ], [ 'title' => 'Shape of You', 'artist' => 'Ed Sheeran', 'img' => 'https://images.unsplash.com/photo-1468164016595-6108e4c60c8b?q=80&w=300', ], [ 'title' => 'bad guy', 'artist' => 'Billie Eilish', 'img' => 'https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?q=80&w=300', ], [ 'title' => 'Anti-Hero', 'artist' => 'Taylor Swift', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', ], [ 'title' => 'Blinding Lights', 'artist' => 'The Weeknd', 'img' => 'https://images.unsplash.com/photo-1504509546545-e000b4a62425?q=80&w=300', ], [ 'title' => 'Rich Flex', 'artist' => 'Drake', 'img' => 'https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=300', ], [ 'title' => 'Levitating', 'artist' => 'Dua Lipa', 'img' => 'https://images.unsplash.com/photo-1501386761578-eac5c94b800a?q=80&w=300', ], [ 'title' => 'Shape of You', 'artist' => 'Ed Sheeran', 'img' => 'https://images.unsplash.com/photo-1468164016595-6108e4c60c8b?q=80&w=300', ], [ 'title' => 'bad guy', 'artist' => 'Billie Eilish', 'img' => 'https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?q=80&w=300', ], ]; @endphp @foreach ($trendingSongs as $index => $song)
#{{ $index + 1 }}
{{ $song['title'] }}

{{ $song['title'] }}

{{ $song['artist'] }}

@endforeach --}}

List Lagu Cover Populer

@if ($popularCoverSongs->isNotEmpty()) See All @endif
@if ($popularCoverSongs) @php $index = 0; @endphp @forelse ($popularCoverSongs as $row) @php $index++; $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($row, 'md'); $artistArray = app(\App\Services\SongServices::class)::getArtistContributor($row->songContributors); $names = array_column($artistArray, 'name'); $artistSeparated = implode(', ', $names); @endphp
{{ $row->title }}
Cover Song

{{ $row->title }}

{{ $artistSeparated }}

{{ $row->cover_version }}

@empty
belum terdapat data
@endforelse @else
belum terdapat data
@endif

List Pencipta Lagu Populer

See All
@foreach ($composers as $composer) @endforeach

List Terbaru New

@if ($newSongs->isNotEmpty()) See All @endif
@if ($newSongs) @php $index = 0; @endphp @forelse ($newSongs as $release) @php $index++; $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($release, 'md'); $artistArray = app(\App\Services\SongServices::class)::getArtistContributor($release->songContributors); $names = array_column($artistArray, 'name'); $artistSeparated = implode(', ', $names); @endphp
NEW
{{ $release->title }}
{{ $release->release_date }}

{{ $release->title }}

{{ $artistSeparated }}

Released {{ $release->release_date }}
@empty
belum terdapat data
@endforelse @else
belum terdapat data
@endif {{-- @php $newReleases = [ [ 'title' => 'Midnight Rain', 'artist' => 'Taylor Swift', 'date' => 'Oct 21, 2023', 'img' => 'https://images.unsplash.com/photo-1494232410401-ad00d5433cfa?q=80&w=300', ], [ 'title' => 'Last Night', 'artist' => 'Morgan Wallen', 'date' => 'Oct 20, 2023', 'img' => 'https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?q=80&w=300', ], [ 'title' => 'Flowers', 'artist' => 'Miley Cyrus', 'date' => 'Oct 19, 2023', 'img' => 'https://images.unsplash.com/photo-1453090927415-5f45085b65c0?q=80&w=300', ], [ 'title' => 'Kill Bill', 'artist' => 'SZA', 'date' => 'Oct 18, 2023', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', ], [ 'title' => 'Anti-Hero', 'artist' => 'Taylor Swift', 'date' => 'Oct 17, 2023', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', ], [ 'title' => 'Unholy', 'artist' => 'Sam Smith', 'date' => 'Oct 16, 2023', 'img' => 'https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?q=80&w=300', ], [ 'title' => 'As It Was', 'artist' => 'Harry Styles', 'date' => 'Oct 15, 2023', 'img' => 'https://images.unsplash.com/photo-1587653263995-422546a7a559?q=80&w=300', ], [ 'title' => 'About Damn Time', 'artist' => 'Lizzo', 'date' => 'Oct 14, 2023', 'img' => 'https://images.unsplash.com/photo-1526218626217-dc65a29bb444?q=80&w=300', ], [ 'title' => 'Stay With Me', 'artist' => 'Calvin Harris', 'date' => 'Oct 13, 2023', 'img' => 'https://images.unsplash.com/photo-1571266028997-41675a1b9b1f?q=80&w=300', ], [ 'title' => 'Break My Soul', 'artist' => 'Beyoncé', 'date' => 'Oct 12, 2023', 'img' => 'https://images.unsplash.com/photo-1513883049090-d91fb58d69e1?q=80&w=300', ], ]; @endphp @foreach ($newReleases as $index => $release)
NEW
{{ $release['title'] }}
{{ $release['date'] }}

{{ $release['title'] }}

{{ $release['artist'] }}

Released {{ $release['date'] }}
@endforeach --}}
@endsection @section('scripts') @endsection