@extends('layouts.app-admin') @section('content')
Total Users
{{ $totalUsers }}
{{ $userGrowthPercentage }}% this month
Total Songs
{{ $totalSongs }}
{{ $songGrowthPercentage }}% this month
Revenue
Rp. {{ $totalRevenue }}
{{ $revenueGrowthPercentage }}% this month
Streams
{{ $totalStreams }}
{{ $streamGrowthPercentage }}% this month
@php $tab = request('tab'); @endphp

Informasi Lagu Belum Release

Show
entries
Cari:
@foreach ($songBeforeRelease as $song) @endforeach
Title Composer Status
@php $imageUrl = $imageUrl = app( \App\Services\SongServices::class, )->getCoverImageS3($song, 'sm'); @endphp
{{ $song->title }}
@php $genre = \App\Models\Genre::find( $song->genre_id, ); @endphp {{ $genre->name ?? '-' }}
{{ $song->songContributors->pluck('user.name')->filter()->implode(', ') }} @php $status = $song->status; $types = $song->types; @endphp {{ $status }} {{ $types }}

Informasi Lagu Release

Show
entries
Cari:
@foreach ($songRelease as $song) @endforeach
Title Composer Artist Status
@php $composerName = ''; $artistName = ''; @endphp @foreach ($song->songContributors as $itemctb) @php $role = $itemctb->role; if ($role == 'Composer') { $composerName = $itemctb->user->name; } if ( $role == 'Artist' || $role == 'Cover Creator' ) { $artistName = $itemctb->user->name; } @endphp @endforeach @php $imageUrl = $imageUrl = app( \App\Services\SongServices::class, )->getCoverImageS3($song, 'sm'); @endphp
{{ $song->title }}
{{ $composerName ?? '' }} {{ $artistName ?? '' }} @php $status = $song->status; $types = $song->types; @endphp {{ $status }} {{ $types }}

Informasi Transaksi

Show
entries
Cari:
@forelse ($orders as $item) @php $orderId = $item->id; $avatar = app('App\Services\UserServices')->getAvatar( $item->user, 'sm', ); $imgConfirm = app( 'App\Services\PaymentServices', )->getConfirmImageLocal($item, 'sm'); $coverImage = null; $fullName = $item->user->name; $phone = $item->user->phone; $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 ->filter(function ($contributor) { return $contributor->role === 'Composer'; }) ->pluck('user.name') ->implode(', '); @endphp @endforeach @empty @endforelse
Order Client Description Amount Status
{{ $item->order_no . ' ' }} {{ $item->created_at->format('d-m-Y H:i') }}
{{ $fullName }}
{{ $fullName }}
+{{ $phone }}
@if (!empty($item->confirm_file))
{{ str_limit($item->confirm_message, 250) }}
@endif
{{ isset($license_type) ? trim($license_type . ' ' . $time_amount . ' ' . $time_type . '(' . $zone . ')') : '' }}
{{ $songTitle ?? '' }}
Cipt. {{ $composerNames ?? '' }}
@if (isset($payment_type)) @if ($payment_type == 'Beli Harga')
Rp.{{ number_format($lcsPrice) }}
@else
{{ number_format($lcsPrice) }}%
@endif @endif
{{ $payment_status }} {{ strtolower($item->payment_method_name) }}
{{--

Recent Songs

Show
entries
Search:
@foreach ($recentSongs as $song) @endforeach
Title Artist Genre Uploaded Status
{{ $song->title }}
{{ $song->name }} {{ $song->genre }} {{ $song->uploaded }} @php $status = $song->status; $bgColor = 'bg-success'; if ($status == 'Active') { $bgColor = 'bg-success'; } elseif ($status == 'Inactive') { $bgColor = 'bg-danger'; } else { $bgColor = 'bg-warning'; } @endphp {{ $song->status }}
--}}

Recent Claims

@forelse($recentClaims ?? [] as $claim)
{{ $claim->song->title }}
Claimed by {{ $claim->user->name }}
@if ($claim->status == 'pending') Pending @elseif($claim->status == 'approved') Approved @elseif($claim->status == 'rejected') Rejected @endif
@empty
No recent claims
@endforelse
@if (isset($recentClaims) && count($recentClaims) > 0) @endif
Top Genres
@php $bgClasses = [ 'bg-primary', 'bg-warning', 'bg-success', 'bg-danger', 'bg-secondary', 'bg-info', 'bg-dark', ]; $number = 0; @endphp @foreach ($topGenres as $genreName => $genreData) @php $progressBg = $bgClasses[$number]; if ($number > 6) { $number = 0; } $number++; @endphp
{{ $genreName }} {{ $genreData['percentage'] }}%
@endforeach

Recent Activities

@foreach ($recentActivities as $activity)
{{ $activity->description }}
{{ $activity->created_at->diffForHumans() }}
@endforeach
@endsection @section('scripts') @endsection