@extends('admin.admin_dashboard') @section('admin') <<<<<<< HEAD
Admin

{{ $profileData->name }}

{{ $profileData->username }}

{{ $profileData->email }}


@csrf
Name
Username
Email
Profile Image
Profile Image
Admin
@endsection ======= @php $photoUrl = $profileData->photo ? url('upload/admin_images/'.$profileData->photo) : url('upload/no_image.jpg'); $isActive = (string) $profileData->status === '1'; $isOnline = $profileData->UserOnline(); $roleLabel = ucfirst(str_replace('-', ' ', $profileData->role ?? 'user')); $themePref = $uiPreferences['theme'] ?? 'system'; $palettePref = ucfirst($uiPreferences['palette'] ?? 'slate'); $densityPref = ucfirst($uiPreferences['density'] ?? 'comfortable'); @endphp
Home My Profile @can('change_password.view') Change Password @endcan {{-- Activity snapshot --}}
@can('chatbox.view') @endcan
{{-- Performance & peer comparison --}}
{{ $insights['activity']['score'] }}

Activity score · last {{ 30 }} days

{{ $insights['activity']['score_label'] }}

Rank #{{ $insights['activity']['rank'] }} of {{ $insights['activity']['total_peers'] }} active users

Team percentile {{ $insights['activity']['percentile'] }}th

Last active {{ $insights['activity']['last_seen_human'] }}

@foreach($insights['benchmarks'] as $benchmark)
{{ $benchmark['label'] }}

{{ $benchmark['period'] }}

{{ $benchmark['percentile'] }}th
{{ $benchmark['you'] }}
You
vs
{{ $benchmark['team_avg'] }}
Team avg

{{ $benchmark['comparison'] }}

@endforeach
{{-- Activity trend & modules --}}
@foreach($insights['weekly']['values'] as $index => $value) @php $height = $insights['weekly']['max'] > 0 ? max(8, round(($value / $insights['weekly']['max']) * 100)) : 8; @endphp
{{ $value ?: '' }}
{{ $insights['weekly']['labels'][$index] }}
@endforeach

{{ $insights['weekly']['total'] }} total actions across the last 8 weeks.

@foreach(collect($insights['modules'])->take(8) as $module)
{{ $module['label'] }} {{ number_format($module['count']) }}
@endforeach
@if(!empty($insights['report_status']))

Your report pipeline

@foreach($insights['report_status'] as $status => $count) {{ ucfirst(str_replace('_', ' ', $status)) }}: {{ $count }} @endforeach
@endif
{{-- Recent work & navigation history --}}
@forelse($insights['recent_work'] as $item)
{{ $item['title'] }} {{ $item['meta'] }}
@empty @endforelse
Recent pages
Loading…
Pinned favorites
Loading…
{{-- Left column --}}
{{ $profileData->name }} @if($isOnline) @endif

{{ $profileData->name }}

{{ $profileData->username ? '@'.$profileData->username : 'No username' }}

@if($isOnline) @endif

{{ $profileData->email }}

Quick actions
@can('change_password.view') Change password @endcan @can('chatbox.view') Team messages @if($stats['messages'] > 0) {{ $stats['messages'] }} @endif @endcan Back to dashboard
Account summary
  • User ID #{{ $profileData->id }}
  • Member since {{ $profileData->created_at?->format('M j, Y') ?? '—' }}
  • Last updated {{ $profileData->updated_at?->diffForHumans() ?? '—' }}
  • Email verified {{ $profileData->email_verified_at ? $profileData->email_verified_at->format('M j, Y') : 'Not verified' }}
  • System role {{ $roleLabel }}
  • Activity rank #{{ $insights['activity']['rank'] }} / {{ $insights['activity']['total_peers'] }}
  • Last seen {{ $insights['activity']['last_seen_human'] }}
{{-- Right column --}}
@csrf
@error('name')
{{ $message }}
@enderror
@error('username')
{{ $message }}
@enderror
Contact an administrator to change your login email.
@error('phone')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
Preview
@error('photo')
{{ $message }}
@enderror
JPG or PNG, max 2 MB. Leave empty to keep your current photo.
@forelse($profileData->roles as $role) {{ $role->name }} @empty No additional roles assigned. @endforelse
@if($permissionGroups->isNotEmpty())
@foreach($permissionGroups->take(12) as $group => $count)
{{ $group ?: 'General' }} {{ $count }}
@endforeach
@if($permissionGroups->count() > 12)

+ {{ $permissionGroups->count() - 12 }} more groups

@endif @endif
  • Theme mode{{ ucfirst($themePref) }}
  • Color palette{{ $palettePref }}
  • Density{{ $densityPref }}
@forelse($recentNotifications as $notification)

{{ $notification->data['message'] ?? class_basename($notification->type) }}

@if(is_null($notification->read_at)) New @endif
@empty

No notifications yet.

@endforelse
Save profile Cancel
@push('scripts') @endpush @endsection >>>>>>> origin/main