@extends('layouts.app-admin') @section('title', 'Royalties Management') @section('content')

Royalty Payments

@php $statuses = ['Pending', 'Processed', 'Paid', 'Cancelled']; $roles = ['Artist', 'Composer', 'Cover Creator']; $contentTypes = ['Song', 'Album', 'Cover']; // Generate dummy data $royalties = []; for ($i = 1; $i <= 20; $i++) { $royalties[] = [ 'id' => 'ROY' . str_pad($i, 5, '0', STR_PAD_LEFT), 'user_name' => 'User ' . $i, 'user_avatar' => 'https://picsum.photos/seed/' . $i . '/200/200', 'role' => $roles[array_rand($roles)], 'content_type' => $contentTypes[array_rand($contentTypes)], 'content_name' => 'Content Title ' . $i, 'period' => 'Q' . rand(1, 4) . ' ' . rand(2022, 2023), 'streams' => rand(1000, 500000), 'amount' => rand(10, 5000) * 1000, 'status' => $statuses[array_rand($statuses)], 'date' => now()->subDays(rand(1, 60))->format('Y-m-d'), ]; } @endphp @foreach ($royalties as $royalty) @endforeach
ID User Role Content Period Streams Amount Status Date Actions
{{ $royalty['id'] }}
{{ $royalty['user_name'] }}
{{ $royalty['role'] }} {{ $royalty['content_type'] }} {{ $royalty['content_name'] }} {{ $royalty['period'] }} {{ number_format($royalty['streams']) }} Rp {{ number_format($royalty['amount']) }} @if ($royalty['status'] == 'Pending') Pending @elseif($royalty['status'] == 'Processed') Processed @elseif($royalty['status'] == 'Paid') Paid @else Cancelled @endif {{ $royalty['date'] }}
@endsection