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

Popular Songs

Top trending tracks loved by our community
All
@foreach ($genres as $row)
{{ $row->name }}
@endforeach {{--
Pop
Rock
Hip Hop
R&B
Electronic
Jazz
Classical
--}}

Popular Tracks

@php $index = 0; @endphp @forelse ($songs as $row) @php $index++; $i = $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
{{--
NEW
--}} {{ $row->title }}
{{ $row->release_date->format('M d, Y') }}

{{ $row->title }}

{{ $artistSeparated }}

{{--
Released {{ $row->release_date->format('M d, Y') }}
--}}
{{--
#{{ $index }}
{{ $row->title }}

{{ $row->title }}

{{ $artistSeparated }}

--}} @empty @endforelse

New Hits New

@php $index = 0; @endphp @forelse ($newHits as $row) @php $index++; $i = $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
NEW
{{ $row->title }}
{{ \Carbon\Carbon::parse($row->release_date)->diffForHumans() }}
{{ $row->title }}
{{ $artistSeparated }}
@empty
belum terdapat data
@endforelse {{-- @php $recentSongs = [ [ 'title' => 'Blinding Lights', 'artist' => 'The Weeknd', 'album' => 'After Hours', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', 'played' => 'Today' ], [ 'title' => 'Bad Guy', 'artist' => 'Billie Eilish', 'album' => 'When We All Fall Asleep, Where Do We Go?', 'img' => 'https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?q=80&w=300', 'played' => 'Today' ], [ 'title' => 'Stay', 'artist' => 'The Kid LAROI, Justin Bieber', 'album' => 'F*CK LOVE 3: OVER YOU', 'img' => 'https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=300', 'played' => 'Yesterday' ], [ 'title' => 'Levitating', 'artist' => 'Dua Lipa', 'album' => 'Future Nostalgia', 'img' => 'https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?q=80&w=300', 'played' => 'Yesterday' ], [ 'title' => 'Anti-Hero', 'artist' => 'Taylor Swift', 'album' => 'Midnights', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', 'played' => '2 days ago' ], [ 'title' => 'As It Was', 'artist' => 'Harry Styles', 'album' => "Harry's House", 'img' => 'https://images.unsplash.com/photo-1501612780327-45045538702b?q=80&w=300', 'played' => '2 days ago' ], [ 'title' => 'Shivers', 'artist' => 'Ed Sheeran', 'album' => '=', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', 'played' => '3 days ago' ], [ 'title' => 'STAY', 'artist' => 'The Kid LAROI, Justin Bieber', 'album' => 'F*CK LOVE 3: OVER YOU', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', 'time' => '2:21', 'played' => '3 days ago' ], [ 'title' => 'Easy On Me', 'artist' => 'Adele', 'album' => '30', 'img' => 'https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?q=80&w=300', 'played' => '4 days ago' ], [ 'title' => 'Woman', 'artist' => 'Doja Cat', 'album' => 'Planet Her', 'img' => 'https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=300', 'played' => '4 days ago' ], [ 'title' => 'INDUSTRY BABY', 'artist' => 'Lil Nas X, Jack Harlow', 'album' => 'MONTERO', 'img' => 'https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?q=80&w=300', 'played' => '5 days ago' ], [ 'title' => 'MONTERO (Call Me By Your Name)', 'artist' => 'Lil Nas X', 'album' => 'MONTERO', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', 'played' => '5 days ago' ], [ 'title' => 'good 4 u', 'artist' => 'Olivia Rodrigo', 'album' => 'SOUR', 'img' => 'https://images.unsplash.com/photo-1501612780327-45045538702b?q=80&w=300', 'played' => '6 days ago' ], [ 'title' => 'Kiss Me More', 'artist' => 'Doja Cat ft. SZA', 'album' => 'Planet Her', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', 'played' => '6 days ago' ], [ 'title' => 'Peaches', 'artist' => 'Justin Bieber ft. Daniel Caesar, Giveon', 'album' => 'Justice', 'img' => 'https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?q=80&w=300', 'played' => '1 week ago' ], [ 'title' => 'drivers license', 'artist' => 'Olivia Rodrigo', 'album' => 'SOUR', 'img' => 'https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=300', 'played' => '1 week ago' ], [ 'title' => 'Butter', 'artist' => 'BTS', 'album' => 'Butter', 'img' => 'https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?q=80&w=300', 'played' => '1 week ago' ], [ 'title' => 'Mood', 'artist' => '24kGoldn ft. iann dior', 'album' => 'El Dorado', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', 'played' => '1 week ago' ], [ 'title' => 'Save Your Tears', 'artist' => 'The Weeknd', 'album' => 'After Hours', 'img' => 'https://images.unsplash.com/photo-1501612780327-45045538702b?q=80&w=300', 'played' => '1 week ago' ], [ 'title' => 'Heartbreak Anniversary', 'artist' => 'Giveon', 'album' => 'Take Time', 'img' => 'https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=300', 'played' => '2 weeks ago' ], ]; @endphp @foreach ($recentSongs as $index => $song)
{{ $song['title'] }}
{{ $song['played'] }}
{{ $song['title'] }}
{{ $song['artist'] }}
@endforeach --}}
@endsection @section('scripts') @endsection