@php $allUsersData = $this->getUsersActivityData(); @endphp @forelse($allUsersData as $userId => $userData)
@php $hash = substr(md5($userData['user']->name), 0, 6); $r = hexdec(substr($hash, 0, 2)); $g = hexdec(substr($hash, 2, 2)); $b = hexdec(substr($hash, 4, 2)); $avatarColor = "rgb({$r}, {$g}, {$b})"; @endphp
{{ strtoupper(substr($userData['user']->name, 0, 2)) }}

{{ $userData['user']->name }}

{{ $this->getTimeRangeLabel() }} Activity

{{ number_format($userData['stats']['tickets_created']) }}

Tickets Created

{{ number_format($userData['stats']['status_changes']) }}

Status Changes

{{ number_format($userData['stats']['comments_made']) }}

Comments Made

{{ number_format($userData['stats']['active_days']) }}

Active Days

Daily Contributions

Less
More
Sun
Mon
Tue
Wed
Thu
Fri
Sat
@foreach($this->getWeeksData() as $weekIndex => $week)
@foreach($week as $day) @php $activityCount = $userData['activity'][$day['date']] ?? 0; $level = $this->getActivityLevel($activityCount); // GitHub-like green colors $colorStyle = match($level) { 'none' => 'background-color: #ebedf0', 'low' => 'background-color: #9be9a8', 'medium' => 'background-color: #40c463', 'high' => 'background-color: #30a14e', 'very-high' => 'background-color: #216e39', default => 'background-color: #ebedf0' }; // Dark mode colors $darkColorStyle = match($level) { 'none' => 'background-color: #161b22', 'low' => 'background-color: #0e4429', 'medium' => 'background-color: #006d32', 'high' => 'background-color: #26a641', 'very-high' => 'background-color: #39d353', default => 'background-color: #161b22' }; @endphp
@endforeach
@endforeach
@empty

No contributions found

There are no user contributions to display for the selected time period.

@endforelse
Loading contributions...