@extends('layouts.app-admin') @section('content')

{{ $user->name }}

{{ $user->email }}
@foreach ($user->roles as $role) @if ($role->name == 'Artist') Artist @elseif ($role->name == 'Composer') Composer @elseif ($role->name == 'Cover Creator') Cover Creator @else Regular User @endif @endforeach

User Information

Full Name
{{ $user->name }}
Email
user{{ $user->email }}
Phone
{{ $user->phone }}
Location
{{ $user->region }}
Member Since
{{ $user->created_at }}
Last Login
{{ $user->last_login }}

Account Statistics

{{ rand(10, 50) }}
Songs
{{ rand(5, 30) }}
Covers
{{ rand(100, 5000) }}
Streams
{{ rand(10, 500) }}
Followers

Verification Status

@if ($user->verification && $user->verification->status == 'pending')

Pending Verification

This user has a pending verification request as a @if ($user->roles->isNotEmpty()) {{ $user->roles->first()->name }}. @else User. @endif
@elseif ($user->verification && $user->verification->status == 'suspended')

Account Suspended

This account has been suspended due to policy violations.
@elseif ($user->verification && $user->verification->status == 'active')

Verified Account

This user has been verified as a @if ($user->roles->isNotEmpty()) {{ $user->roles->first()->name }}. @else User. @endif
@elseif(!$user->verification)

Not Verified Account

This user has not been verified yet.
@endif

User's Songs

@foreach ($songs as $song) @endforeach
Title Genre Duration Uploaded Status Actions
{{ $song->title }}
{{ $song->genre }} {{ $song->duration }} {{ $song->created_at }} {{ $song->status }}

User's Covers

Add Cover
@foreach ($covers as $cover)
Cover of "{{ $cover->title }}"
Original by {{ $cover->cover_version }}
{{ rand(100, 9999) }} {{ rand(10, 999) }}
@endforeach

Published Content

@foreach ($publishedSongs as $publish) @endforeach
Content Type Published Stats Actions
@if ($publish->artist_id == $user->id) {{ $publish->title }} @elseif ($publish->cover_creator_id == $user->id) {{ $publish->cover_version }}
Original by {{ $publish->title }} @elseif (in_array($publish->album_id, $albums->pluck('id')->toArray())) {{ $albums->where('id', $publish->album_id)->first()->title }} @else {{ $publish->title }} @endif
@if ($publish->artist_id == $user->id) Song @elseif ($publish->cover_creator_id == $user->id) Cover @elseif (in_array($publish->album_id, $albums->pluck('id')->toArray())) Album @endif {{ date('M d, Y', strtotime($publish->created_at)) }} {{ $publish->status }}
{{ number_format(rand(100, 50000)) }} {{ number_format(rand(10, 5000)) }}

Recent Activity

@forelse ($activities as $activity)
@php $iconMap = [ 'login' => [ 'icon' => 'ti ti-login', 'color' => 'bg-info-lt', ], 'logout' => [ 'icon' => 'ti ti-logout', 'color' => 'bg-warning-lt', ], 'created' => [ 'icon' => 'ti ti-plus', 'color' => 'bg-success-lt', ], 'updated' => [ 'icon' => 'ti ti-pencil', 'color' => 'bg-primary-lt', ], 'update_profile' => [ 'icon' => 'ti ti-pencil', 'color' => 'bg-primary-lt', ], 'update_profile_picture' => [ 'icon' => 'ti ti-pencil', 'color' => 'bg-primary-lt', ], 'deleted' => [ 'icon' => 'ti ti-trash', 'color' => 'bg-danger-lt', ], 'remove_profile_picture' => [ 'icon' => 'ti ti-trash', 'color' => 'bg-danger-lt', ], 'uploaded' => [ 'icon' => 'ti ti-upload', 'color' => 'bg-primary-lt', ], 'payment_processed' => [ 'icon' => 'ti ti-credit-card', 'color' => 'bg-warning-lt', ], 'suspend_user' => [ 'icon' => 'ti ti-user-x', 'color' => 'bg-warning-lt', ], 'suspend_verification' => [ 'icon' => 'ti ti-user-x', 'color' => 'bg-warning-lt', ], 'active_verification' => [ 'icon' => 'ti ti-user-check', 'color' => 'bg-success-lt', ], ]; $icon = $iconMap[$activity->event]['icon'] ?? 'ti ti-activity'; $bgColor = $iconMap[$activity->event]['color'] ?? 'bg-secondary-lt'; @endphp
{{ $activity->description }} @if ($activity->subjectUser) ({{ $activity->subjectUser->name }}) @endif
{{ $activity->created_at->diffForHumans() }}
@empty
No activity recorded.
@endforelse
{{-- Modal View Details --}} {{-- Modal Delete Confirmation --}} {{-- Email modal --}} @endsection @section('scripts') @endsection