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

Music Composers

{{--
Discover talented composers and their original compositions
--}}
Temukan komposer berbakat dan karya asli mereka.
All
@foreach ($genres as $row)
{{ $row->name }}
@endforeach {{--
Classical
Film Score
Contemporary
Orchestral
Instrumental
Electronic
Fusion
--}}

Featured Composers

@php $index = 0; @endphp @forelse ($featuredComposers as $composer) @php $index++; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($composer, 'md'); $firstGenre = null; foreach ($composer->contributors as $contributor) { if ($contributor->song && $contributor->song->genre) { $firstGenre = $contributor->song->genre->name; break; } } @endphp

{{ $composer->name }}

{{ $firstGenre }}

@empty belum terdapat composer @endforelse {{-- @php $featuredComposers = [ [ 'name' => 'Hans Zimmer', 'genre' => 'Film Score', 'img' => 'https://images.unsplash.com/photo-1507838153414-b4b713384a76?q=80&w=300', ], [ 'name' => 'John Williams', 'genre' => 'Classical/Film', 'img' => 'https://images.unsplash.com/photo-1465847899084-d164df4dedc6?q=80&w=300', ], [ 'name' => 'Ennio Morricone', 'genre' => 'Film Score', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', ], [ 'name' => 'Max Richter', 'genre' => 'Contemporary Classical', 'img' => 'https://images.unsplash.com/photo-1513883049090-d91fb58d69e1?q=80&w=300', ], [ 'name' => 'Philip Glass', 'genre' => 'Minimalist', 'img' => 'https://images.unsplash.com/photo-1507838153414-b4b713384a76?q=80&w=300', ], [ 'name' => 'Ludovico Einaudi', 'genre' => 'Classical/Contemporary', 'img' => 'https://images.unsplash.com/photo-1465847899084-d164df4dedc6?q=80&w=300', ], [ 'name' => 'Thomas Newman', 'genre' => 'Film Score', 'img' => 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=300', ], [ 'name' => 'Yann Tiersen', 'genre' => 'Contemporary', 'img' => 'https://images.unsplash.com/photo-1513883049090-d91fb58d69e1?q=80&w=300', ], ]; @endphp @foreach ($featuredComposers as $composer)

{{ $composer['name'] }}

{{ $composer['genre'] }}

@endforeach --}}

All Composers

@php $index = 0; @endphp @forelse ($newComposers as $row) @php $index++; $i = $index; $imgUrl = app(\App\Services\UserServices::class)->getAvatar($row, 'sm'); $firstGenre = null; foreach ($row->contributors as $contributor) { if ($contributor->song && $contributor->song->genre) { $firstGenre = $contributor->song->genre->name; break; } } @endphp

{{ $row->name }}

{{ $firstGenre }}

{{--

{{ rand(5, 25) }} compositions

--}}
@empty belum terdapat composer @endforelse {{-- @for ($i = 1; $i <= 15; $i++)

Composer {{ $i }}

{{ ['Classical', 'Film Score', 'Contemporary', 'Minimalist', 'Orchestral'][$i % 5] }}

{{ rand(5, 25) }} compositions

@endfor --}}
{{--
--}}
Featured Composition

The Art of Composition

Explore the creative process behind the most beautiful musical compositions.

Featured composer

{{ $randomComposer->name }}

@php $firstGenre = null; foreach ($randomComposer->contributors as $contributor) { if ($contributor->song && $contributor->song->genre) { $firstGenre = $contributor->song->genre->name; break; } } @endphp

{{ $firstGenre ?? 'Composer' }}

Listen to Featured Works
@endsection @push('style') @endpush @section('scripts') @endsection