@php
$royalty = [
'id' => $id,
'user_name' => 'John Doe',
'user_email' => 'johndoe@example.com',
'user_avatar' => 'https://picsum.photos/seed/user1/200/200',
'role' => 'Artist',
'content_type' => 'Song',
'content_name' => 'Amazing Song Title',
'content_id' => 'SONG12345',
'period' => 'Q2 2023',
'streams' => 245789,
'amount' => 3500000,
'status' => 'Processed',
'date_created' => now()->subDays(15)->format('Y-m-d H:i:s'),
'date_processed' => now()->subDays(10)->format('Y-m-d H:i:s'),
'date_paid' => null,
'payment_method' => 'Bank Transfer',
'bank_name' => 'Bank Central Asia',
'account_number' => '1234567890',
'account_name' => 'John Doe',
'notes' => 'Royalty payment for Q2 2023 streaming revenue.',
'history' => [
[
'date' => now()->subDays(15)->format('Y-m-d H:i:s'),
'action' => 'Created',
'user' => 'System',
'notes' => 'Royalty payment automatically generated',
],
[
'date' => now()->subDays(12)->format('Y-m-d H:i:s'),
'action' => 'Updated',
'user' => 'Admin User',
'notes' => 'Adjusted stream count from 240,000 to 245,789',
],
[
'date' => now()->subDays(10)->format('Y-m-d H:i:s'),
'action' => 'Status Changed',
'user' => 'Admin User',
'notes' => 'Status changed from Pending to Processed',
],
],
'platform_breakdown' => [
['platform' => 'Spotify', 'streams' => 125000, 'amount' => 1750000],
['platform' => 'Apple Music', 'streams' => 75000, 'amount' => 1050000],
['platform' => 'YouTube Music', 'streams' => 35789, 'amount' => 500000],
['platform' => 'Others', 'streams' => 10000, 'amount' => 200000],
],
];
@endphp
Royalty Information
{{ $royalty['user_name'] }}
{{ $royalty['user_email'] }}
{{ $royalty['role'] }}
Status:
@if ($royalty['status'] == 'Pending')
Pending
@elseif($royalty['status'] == 'Processed')
Processed
@elseif($royalty['status'] == 'Paid')
Paid
@else
Cancelled
@endif
Period:
{{ $royalty['period'] }}
Created:
{{ $royalty['date_created'] }}
Processed:
{{ $royalty['date_processed'] }}
Paid:
{{ $royalty['date_paid'] ?? 'Not paid yet' }}
Payment Information
Method:
{{ $royalty['payment_method'] }}
Bank:
{{ $royalty['bank_name'] }}
Account:
{{ $royalty['account_number'] }}
Name:
{{ $royalty['account_name'] }}
Content Information
Content Type:
{{ $royalty['content_type'] }}
Content Name:
{{ $royalty['content_name'] }}
Content ID:
{{ $royalty['content_id'] }}
Total Streams:
{{ number_format($royalty['streams']) }}
Total Amount:
Rp {{ number_format($royalty['amount']) }}
Notes:
{{ $royalty['notes'] }}
| Platform |
Streams |
Amount |
Percentage |
@foreach ($royalty['platform_breakdown'] as $platform)
| {{ $platform['platform'] }} |
{{ number_format($platform['streams']) }} |
Rp {{ number_format($platform['amount']) }} |
{{ round(($platform['amount'] / $royalty['amount']) * 100, 2) }}%
|
@endforeach