@extends('admin.layouts.app') @section('title', 'User Details') @section('content')
← Back to Users

User Details

{{ $user->statusLabel() }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ===== ACTION BAR (§11, §20) ===== --}}
✎ Edit User 🔑 Reset Password @if($user->id !== auth()->id())
@csrf
@endif @if($user->status !== 'active')
@csrf
@endif @if($user->status !== 'suspended' && $user->id !== auth()->id())
@csrf
@endif @if($user->status !== 'blocked' && $user->id !== auth()->id())
@csrf
@endif @if($user->id !== auth()->id())
@csrf @method('DELETE')
@endif
{{-- ===================== LEFT: PROFILE + PURPOSE ===================== --}}
{{-- PROFILE --}}
👤 Profile
@if($user->avatar)@else{{ substr($user->name, 0, 1) }}@endif
{{ $user->name }}
User ID: #{{ $user->id }}
Email{{ $user->email }}
Mobile{{ $user->mobile ?: '—' }}
City{{ $user->city ?: '—' }}
State{{ $user->state ?: '—' }}
Country{{ $user->country ?: '—' }}
{{-- PURPOSE & INTERESTS (§6) --}}
🎯 Purpose & Interests
Account Purpose {{ $user->purposeLabel() ?: '—' }}
Interests
@php $ints = $user->interests->where('type', 'interest'); @endphp @if($ints->isEmpty())
No interests saved.
@else
@foreach($ints as $i)✦ {{ $i->value }}@endforeach
@endif
Service Interests
@php $svcs = $user->interests->where('type', 'service'); @endphp @if($svcs->isEmpty())
—
@else
@foreach($svcs as $i)🤗 {{ $i->value }}@endforeach
@endif
Business Interest
@php $biz = $user->interests->where('type', 'business'); @endphp @if($biz->isEmpty())
—
@else
@foreach($biz as $i)🏢 {{ $i->value }}{{ optional($i->meta)['location'] ? ' · '.optional($i->meta)['location'] : '' }}@endforeach
@endif
@if($user->other_preferences)
Other Preferences
{{ $user->other_preferences }}
@endif
{{-- ===================== RIGHT: ACCOUNT + ACTIVITY ===================== --}}
{{-- ACCOUNT (§6) --}}
🔐 Account
User ID#{{ $user->id }}
Role @if($user->roles->isNotEmpty()) {{ $user->roles->pluck('label')->implode(', ') }} @else No role (frontend member) @endif
Teams @if($user->teams->isNotEmpty()) {{ $user->teams->pluck('name')->implode(', ') }} @else — @endif
Status{{ $user->statusLabel() }}
Joined{{ $user->created_at?->format('M j, Y') }}
Last Login{{ $activity['last_login'] ?: '—' }}
Email Verified{{ $user->email_verified_at ? 'Yes • '.$user->email_verified_at->format('M j, Y') : 'No' }}
Mobile Verified{{ $user->mobile_verified_at ? 'Yes' : 'No' }}
{{-- ACTIVITY (§14 — where the modules are) --}}
📈 Activity
Active Sessions{{ $activity['sessions'] }}
Trusted Devices (PIN){{ $activity['trusted_devices'] }}
Comments0 (Phase 2 module)
Ratings0 (Phase 2 module)
Business / Service Profile{{ $user->interests->where('type', 'business')->isNotEmpty() ? 'Interest saved' : '—' }} (Bazar Phase)
Comments / Ratings / Forms future modules will connect to this same User ID (One Person → One User ID).
@endsection