{{ __('View / Edit User') }}: {{ $user->name }}

@csrf @method('PATCH')

{{ __('User Activity Log (Most Recent First)') }}

@forelse($clicks as $click) @empty @endforelse
Time Action Competition / Site Details
{{ $click->created_at ? $click->created_at->format('d M H:i:s') : '-' }} @switch($click->click_type) @case('home_card') Homepage Card @break @case('search_result') Search Result @break @case('email_alert') Email Alert @break @case('external_cta') External CTA @break @case('disclaimer_link') Disclaimer Link @break @default {{ $click->click_type }} @endswitch @if($click->competition) {{ $click->competition->name }} @else Deleted/Inactive draw @endif
{{ $click->site->name ?? 'Unknown Site' }}
IP: {{ $click->ip_address ?? '-' }}
No click activity recorded yet.
@if($clicks->hasPages())
{{ $clicks->links() }}
@endif

{{ __('Competition Preferences') }}

{{ __('Draw Types') }}

{{ __('Interests & Categories') }}

@foreach ($categories as $category) @endforeach

{{ __('Click Analytics & Statistics') }}

🏠 {{ $user->clicks()->where('click_type', 'home_card')->count() }} Main Index Clicks
🔗 {{ $user->clicks()->where('click_type', 'external_cta')->count() }} Third Party Clicks
📊 {{ $user->clicks()->count() }} Total Clicks
Account Created: {{ $user->created_at ? $user->created_at->format('d M Y H:i (e)') : '-' }}
Last Seen/Accessed: @if($user->last_seen_at) {{ $user->last_seen_at->format('d M Y H:i (e)') }} ({{ $user->last_seen_at->diffForHumans() }}) @else Never @endif
@if(Auth::id() !== $user->id) {{ __('Delete User') }} @endif
Cancel {{ __('Update User') }}
@if(Auth::id() !== $user->id) @endif
@push('scripts') @endpush