@extends('layouts.app') @section('content')
@php // Simulasi role user (dalam implementasi sebenarnya, gunakan auth()->user()->role) $userRole = auth()->user()->role ?? 'User'; @endphp
3,842
Growth
12%
75% Complete
@if($userRole != 'Cover Creator')
Cover Creators
24
Growth
15%
60% Complete
Original Song Plays
12,568
Growth
8%
80% Complete
@if($userRole == 'Composer')
Total Revenue
Rp 2,450,000
Growth
18%
85% Complete
@else
Followers
1,253
Growth
5%
40% Complete
@endif @else
Covers Created
18
Growth
20%
60% Complete
@endif

Performance Overview

@if($userRole != 'Cover Creator') @endif @if($userRole == 'Composer') @endif

Performance chart will be displayed here

@if($userRole == 'Cover Creator') Top Performing Covers @else Top Performing Songs @endif

@php $songs = [ ['title' => 'Sunset Dreams', 'artist' => 'Luna Park', 'plays' => rand(5000, 15000)], ['title' => 'Midnight Memories', 'artist' => 'The Echoes', 'plays' => rand(4000, 10000)], ['title' => 'Ocean Waves', 'artist' => 'Coastal Vibes', 'plays' => rand(3000, 9000)], ['title' => 'Mountain High', 'artist' => 'Alpine Crew', 'plays' => rand(2000, 8000)], ['title' => 'City Lights', 'artist' => 'Urban Beats', 'plays' => rand(1000, 7000)] ]; @endphp @foreach($songs as $index => $song)
{{ $index + 1 }}
{{ $song['title'] }}
{{ $song['artist'] }}
{{ number_format($song['plays']) }}
@endforeach
@if($userRole == 'Cover Creator')

Audience Geography

Indonesia 65%
Malaysia 15%
Singapore 10%
Other 10%

Geographic map will be displayed here

@elseif($userRole == 'Artist')

Top Cover Creators

@php $coverCreators = [ ['name' => 'John Smith', 'covers' => rand(5, 15), 'plays' => rand(5000, 15000)], ['name' => 'Maria Garcia', 'covers' => rand(3, 10), 'plays' => rand(4000, 10000)], ['name' => 'David Lee', 'covers' => rand(2, 8), 'plays' => rand(3000, 9000)], ['name' => 'Sarah Johnson', 'covers' => rand(1, 5), 'plays' => rand(2000, 8000)], ['name' => 'Michael Wong', 'covers' => rand(1, 3), 'plays' => rand(1000, 7000)] ]; @endphp @foreach($coverCreators as $index => $creator)
{{ $index + 1 }}
{{ $creator['name'] }}
{{ $creator['covers'] }} covers
{{ number_format($creator['plays']) }}
@endforeach
@else

Revenue Breakdown

License Sales
Rp 1,250,000 (51%)
Streaming Royalties
Rp 750,000 (31%)
Cover Royalties
Rp 350,000 (14%)
Other
Rp 100,000 (4%)

Monthly Revenue Trend

Revenue chart will be displayed here

@endif
@if($userRole != 'Cover Creator')
@if($userRole == 'Composer')

License Sales

Song License Type Quantity Revenue
Sunset Dreams Cover License 12 Rp 600,000
Ocean Waves Cover License 8 Rp 400,000
Mountain High Commercial Use 2 Rp 1,000,000
City Lights Cover License 5 Rp 250,000
Midnight Memories Cover License 4 Rp 200,000

Top Cover Creators

@php $coverCreators = [ ['name' => 'John Smith', 'covers' => rand(5, 15), 'plays' => rand(5000, 15000), 'revenue' => rand(200, 600) * 1000], ['name' => 'Maria Garcia', 'covers' => rand(3, 10), 'plays' => rand(4000, 10000), 'revenue' => rand(150, 500) * 1000], ['name' => 'David Lee', 'covers' => rand(2, 8), 'plays' => rand(3000, 9000), 'revenue' => rand(100, 400) * 1000], ['name' => 'Sarah Johnson', 'covers' => rand(1, 5), 'plays' => rand(2000, 8000), 'revenue' => rand(50, 300) * 1000], ['name' => 'Michael Wong', 'covers' => rand(1, 3), 'plays' => rand(1000, 7000), 'revenue' => rand(25, 200) * 1000] ]; @endphp @foreach($coverCreators as $index => $creator)
{{ $index + 1 }}
{{ $creator['name'] }}
{{ $creator['covers'] }} covers
{{ number_format($creator['plays']) }} Rp {{ number_format($creator['revenue']) }}
@endforeach
@else

Song Performance

Song performance chart will be displayed here

Audience Demographics

Age Groups

18-24
35%
25-34
42%
35-44
15%
45+
8%

Gender

58% Male
42% Female
@endif
@endif

Recent Activity

@if($userRole != 'Cover Creator') @endif @if($userRole == 'Composer') @endif @php if($userRole == 'Cover Creator') { $activities = [ ['event' => 'Play', 'song' => 'Sunset Dreams (Cover)', 'location' => 'Jakarta, ID', 'time' => '2 minutes ago'], ['event' => 'Play', 'song' => 'Ocean Waves (Cover)', 'location' => 'Bandung, ID', 'time' => '15 minutes ago'], ['event' => 'Play', 'song' => 'Mountain High (Cover)', 'location' => 'Surabaya, ID', 'time' => '1 hour ago'], ['event' => 'Play', 'song' => 'City Lights (Cover)', 'location' => 'Singapore, SG', 'time' => '2 hours ago'], ['event' => 'Play', 'song' => 'Midnight Memories (Cover)', 'location' => 'Kuala Lumpur, MY', 'time' => '3 hours ago'] ]; } elseif($userRole == 'Artist') { $activities = [ ['event' => 'Play', 'song' => 'Sunset Dreams', 'user' => 'Anonymous', 'location' => 'Jakarta, ID', 'time' => '2 minutes ago'], ['event' => 'Cover Created', 'song' => 'Ocean Waves', 'user' => 'johndoe', 'location' => 'Bandung, ID', 'time' => '15 minutes ago'], ['event' => 'Play', 'song' => 'Mountain High', 'user' => 'Anonymous', 'location' => 'Surabaya, ID', 'time' => '1 hour ago'], ['event' => 'Cover Created', 'song' => 'City Lights', 'user' => 'janesmith', 'location' => 'Singapore, SG', 'time' => '2 hours ago'], ['event' => 'Play', 'song' => 'Midnight Memories', 'user' => 'Anonymous', 'location' => 'Kuala Lumpur, MY', 'time' => '3 hours ago'] ]; } else { $activities = [ ['event' => 'Play', 'song' => 'Sunset Dreams', 'user' => 'Anonymous', 'location' => 'Jakarta, ID', 'time' => '2 minutes ago', 'value' => 'Rp 500'], ['event' => 'License Purchase', 'song' => 'Ocean Waves', 'user' => 'johndoe', 'location' => 'Bandung, ID', 'time' => '15 minutes ago', 'value' => 'Rp 50,000'], ['event' => 'Play', 'song' => 'Mountain High', 'user' => 'Anonymous', 'location' => 'Surabaya, ID', 'time' => '1 hour ago', 'value' => 'Rp 500'], ['event' => 'Cover License', 'song' => 'City Lights', 'user' => 'janesmith', 'location' => 'Singapore, SG', 'time' => '2 hours ago', 'value' => 'Rp 75,000'], ['event' => 'Commercial License', 'song' => 'Urban Collection', 'user' => 'musiclover', 'location' => 'Kuala Lumpur, MY', 'time' => '3 hours ago', 'value' => 'Rp 500,000'] ]; } @endphp @foreach($activities as $activity) @if($userRole != 'Cover Creator') @endif @if($userRole == 'Composer') @endif @endforeach
Event Song/AlbumUserLocation Date/TimeValue
{{ $activity['event'] }} {{ $activity['song'] }}{{ $activity['user'] }}{{ $activity['location'] }} {{ $activity['time'] }}{{ $activity['value'] ?? '-' }}
@endsection @section('scripts') @endsection