@php $placeholderImage = 'data:image/svg+xml;base64,'.base64_encode('?'); $emoteImageSrc = function ($image) use ($placeholderImage) { if (empty($image)) { return $placeholderImage; } $value = (string) $image; if (str_starts_with($value, 'data:image/')) { return $value; } $binary = base64_decode($value, true); if ($binary === false || $binary === '') { return $placeholderImage; } $mime = 'image/png'; if (str_starts_with($binary, 'GIF8')) { $mime = 'image/gif'; } elseif (substr($binary, 0, 2) === "\xFF\xD8") { $mime = 'image/jpeg'; } return 'data:'.$mime.';base64,'.base64_encode($binary); }; $chartPayload = [ 'usage_over_time' => [ 'labels' => data_get($stats, 'usage_over_time.labels', []), 'values' => data_get($stats, 'usage_over_time.values', []), ], ]; $customUsageTables = [ [ 'title' => 'Top 10 Static Emotes', 'list' => $stats['top_static'] ?? collect(), 'empty' => 'No static emote usage found.', ], [ 'title' => 'Top 10 Animated Emotes', 'list' => $stats['top_animated'] ?? collect(), 'empty' => 'No animated emote usage found.', ], [ 'title' => 'Bottom 10 Static Emotes', 'list' => $stats['bottom_static'] ?? collect(), 'empty' => 'No static emote usage found.', ], [ 'title' => 'Bottom 10 Animated Emotes', 'list' => $stats['bottom_animated'] ?? collect(), 'empty' => 'No animated emote usage found.', ], ]; @endphp

Emoji Stats

Clear
@if (!empty($validationErrors['user_id']))
{{ $validationErrors['user_id'] }}
@endif @if (!empty($stats['is_filtered']))

Showing stats for user ID: {{ $stats['filtered_user_id'] }}

@else

Showing stats for all users.

@endif

Total Emoji Usage

{{ $stats['total_usage'] ?? 0 }}

Unique Emotes

{{ $stats['unique_emotes'] ?? 0 }}

Users Included

{{ $stats['unique_users'] ?? 0 }}

Static Usage

{{ $stats['usage_by_type']['STATIC'] ?? 0 }}

Animated Usage

{{ $stats['usage_by_type']['ANIMATED'] ?? 0 }}

Unicode Usage

{{ $stats['usage_by_type']['UNICODE'] ?? 0 }}

Emote Usage Over Time (Last 30 Days)

Top Movers (Last 7 Days vs Previous 7 Days)

@forelse (($stats['top_movers'] ?? collect()) as $emote)
@if (($emote->type ?? null) === 'UNICODE') {{ $emote->emote_name }} @else {{ $emote->emote_name }} {{ $emote->emote_name }} @endif

{{ $emote->previous_count }} → {{ $emote->current_count }}

{{ $emote->delta >= 0 ? '+' : '' }}{{ $emote->delta }}

@empty

No mover data available yet.

@endforelse

Top 10 Unicode Emotes

@forelse (($stats['top_unicode'] ?? collect()) as $emote)
#{{ $loop->iteration }} {{ $emote->emote_name }}
{{ $emote->total_usage }}
@empty

No unicode emote usage found.

@endforelse

Custom Emote Usage (Top & Bottom)

@foreach ($customUsageTables as $table)

{{ $table['title'] }}

@forelse ($table['list'] as $emote)
#{{ $loop->iteration }} {{ $emote->emote_name }} {{ $emote->emote_name }}
{{ $emote->total_usage }}
@empty

{{ $table['empty'] }}

@endforelse
@endforeach
@once @endonce