@extends('layouts.app') @section('content')
@php $avatarUrl = app(\App\Services\UserServices::class)->getAvatar( auth()->user(), 'md', ); @endphp

{{ auth()->user()->name }}

{{ auth()->user()->email }}
{{ auth()->user()->phone ?? 'Not set' }} Joined {{ auth()->user()->created_at->format('M d, Y') }}
@php $verification = \App\Models\Verification::where('user_id', auth()->id()) ->where('status', 'approved') ->latest() ->first(); @endphp @if ($verification) {{ ucfirst($verification->type) }} Terverifikasi @endif
My Music Assets @if (session('user_active_role') === 'Artist') Artist Dashboard @else Book Artist @endif

Cari Lagu


@if (isset($results) && count($results) > 0)

Search Results for "{{ $query }}"

@foreach ($results as $song)
{{ $song->title }}
{{ $song->artist ? $song->artist->name : 'Unknown Artist' }} - {{ $song->album->title ?? 'Single' }}
@endforeach
@elseif (isset($query))

No results found

No results found for "{{ $query }}". Try using different keywords.

@else @if (session('user_active_role') === 'Artist')

Booking Statistics

12
Total Bookings
3
Pending
8
Approved
Rp 4.2M
Total Earnings
@else

My Bookings

2
Pending Bookings
3
Confirmed Bookings
5
Total Bookings
@endif

Semua Lagu

@foreach ($allSongs as $song) @php // Ambil composer $composer = ''; foreach ($song->songContributors as $contributor) { if ($contributor->role == 'Composer') { $composer = $contributor->user->name ?? ''; break; } } // Proses cover image $imageUrl = app( \App\Services\SongServices::class, )->getCoverImageS3($song, 'md'); @endphp
{{ $song->created_at->format('j M Y H:i') }}
{{ $song->title }}
cipt. {{ $composer }}
{{ $song->status }} @php $bgTypes = 'text-bg-danger'; if ($song->types == 'sudah release') { $bgTypes = 'text-bg-dark'; } @endphp {{ $song->types }}
@endforeach
{{--
@foreach ($allSongs ?? [] as $index => $song) @php $coverImages = explode(',', $song->cover_image ?? ''); $smallCoverFile = $coverImages[2] ?? null; $filename = $smallCoverFile ? basename($smallCoverFile) : null; $imageUrl = $filename ? route('user.songs.image', ['filename' => $filename]) : 'https://via.placeholder.com/40'; @endphp @endforeach
# Title Artist Albums
{{ $index + 1 }}
{{ $song->title }}
{{ $song->artist ? $song->artist->name : 'Unknown Artist' }} {{ $song->album->title ?? 'Single' }}
--}}
{{ $allSongs->links() }} {{-- --}}
@endif

Transaksi Anda

@forelse ($orders as $item) @php $payment_status = $item->payment_status; $bgClass = 'text-bg-success'; $resultCode = '01'; if ( $payment_status == 'pending' || $payment_status == 'unpaid' || $payment_status == 'failed' ) { $payment_status = $payment_status == 'pending' || $payment_status == 'unpaid' ? 'unpaid' : $payment_status; $resultCode = '01'; if ($payment_status == 'failed') { $resultCode = '02'; } $bgClass = 'text-bg-danger'; } else { $resultCode = '00'; } @endphp @foreach ($item->orderItem as $orderItem) @php $lcsPrice = $orderItem->price; $songId = $orderItem->songLicense->song_id; $license_type = $orderItem->songLicense->license_type; $payment_type = $orderItem->songLicense->payment_type; $time_amount = $orderItem->songLicense->time_amount; $time_amount = $time_amount && $time_amount !== 'null' && $time_amount !== 0 ? $time_amount : ''; $time_type = $orderItem->songLicense->time_type; $time_type = $time_type && $time_type !== 'null' ? $time_type : ''; $zone = $orderItem->songLicense->zone; $songTitle = $orderItem->songLicense->song->title; $coverImage = app(\App\Services\SongServices::class)->getCoverImageS3( $orderItem->songLicense->song, 'sm', ); $composerNames = $orderItem->songLicense->song->songContributors ->pluck('user.name') ->implode(', '); @endphp @endforeach
{{ $songTitle }}
{{ $item->order_no }}
{{ $item->created_at->format('d-m-Y H:i') }}
Lisensi {{ trim($license_type . ' ' . $time_amount . ' ' . $time_type . '(' . $zone . ')') }}
{{ $songTitle }}
Cipt. {{ $composerNames }}
@if ($payment_type == 'Beli Harga')
Rp.{{ number_format($lcsPrice) }}
@else
{{ number_format($lcsPrice) }}%
@endif
{{ $payment_status }}
@empty @endforelse
{{ $orders->links() }}
2,845
Conversion rate
7%
70% Complete
Playlists
8
Growth
9%
75% Complete
Followers
1,253
Growth
12%
60% Complete
Downloads
452
Growth
-2%
40% Complete

Popular Songs

@foreach ($popularSongs ?? [] as $song)
{{ $loop->iteration }}
{{ $song->title }}
{{ $song->artist ? $song->artist->name : 'Unknown Artist' }}
{{ $song->stream_count ?? rand(1000, 9999) }}
@endforeach

Popular Artists

@foreach ($popularArtists ?? [] as $artist)
{{ $loop->iteration }}
{{ $artist->stream_count ?? rand(10000, 99999) }}
@endforeach

Popular Composers

@foreach ($popularComposers ?? [] as $composer)
{{ $loop->iteration }}
{{ $composer->stream_count ?? rand(10000, 99999) }}
@endforeach

Popular Cover Creators

@foreach ($popularCoverCreators ?? [] as $coverCreator)
{{ $loop->iteration }}
{{ $coverCreator->stream_count ?? rand(10000, 99999) }}
@endforeach

Your Playlists

Playlist
My Favorites
15 songs
Playlist
Workout Mix
12 songs
Playlist
Chill Vibes
8 songs

Recently Played

@foreach ($allSongs ?? [] as $index => $song) @php $coverImages = explode(',', $song->cover_image ?? ''); $smallCoverFile = $coverImages[2] ?? null; $filename = $smallCoverFile ? basename($smallCoverFile) : null; $imageUrl = $filename ? route('user.songs.image', ['filename' => $filename]) : 'https://via.placeholder.com/40'; @endphp @endforeach
# Title Artist Album Duration Played
{{ $index + 1 }}
{{ $song->title }}
{{ $song->artist ? $song->artist->name : 'Unknown Artist' }} {{ $song->album->title ?? 'Single' }} 3:45 {{ now()->subHours(rand(1, 24))->diffForHumans() }}
@endsection @push('styles') @endpush @section('scripts') @endsection