@extends('layouts.app-admin') @section('content')

All Songs

@php $songTitles = [ 'Blinding Lights', 'Save Your Tears', 'Levitating', 'Stay', 'Industry Baby', 'Good 4 U', 'Montero', 'Peaches', 'Butter', 'Dynamite', 'Drivers License', 'Kiss Me More', 'Bad Habits', 'Shivers', 'Heat Waves', 'Easy On Me', 'Happier Than Ever', 'Deja Vu', 'Mood', 'Without You', ]; $artists = [ 'The Weeknd', 'Dua Lipa', 'Justin Bieber', 'Lil Nas X', 'Olivia Rodrigo', 'BTS', 'Ed Sheeran', 'Adele', 'Billie Eilish', 'Glass Animals', ]; $composers = [ 'Max Martin', 'Jack Antonoff', 'Louis Bell', 'Andrew Watt', 'Finneas O\'Connell', 'Dan Nigro', 'Take a Daytrip', 'Blake Slatkin', 'Amy Allen', 'Ian Kirkpatrick', ]; $genres = ['Pop', 'Rock', 'Hip Hop', 'Electronic', 'Jazz']; $statuses = ['published', 'draft']; @endphp @for ($i = 0; $i < 20; $i++) @php $title = $songTitles[$i % count($songTitles)]; $artist = $artists[rand(0, count($artists) - 1)]; $composer = $composers[rand(0, count($composers) - 1)]; $genre = $genres[rand(0, count($genres) - 1)]; $releaseDate = date('Y-m-d', strtotime('-' . rand(1, 365) . ' days')); $status = $statuses[rand(0, count($statuses) - 1)]; $badgeClass = $status === 'published' ? 'bg-success' : 'bg-warning text-dark'; @endphp @endfor
Title Artist Composer Genre Release Date Status Actions
{{ $title }}
{{ $artist }} {{ $composer }} {{ $genre }} {{ $releaseDate }} {{ ucfirst($status) }}
@endsection @section('scripts') @endsection