@extends('layouts.app') @section('title', $user->name) @section('page-title', $user->name) @section('content')
Back to Staff List
{{-- Left: Profile Card --}}
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}

{{ $user->email }}

@if($user->isAdmin()) Admin @else Staff @endif @if($user->is_active) Active @else Inactive @endif
Edit Profile @if($user->id !== auth()->id())
@csrf @method('PATCH')
@endif Full Activity Log
{{-- Details --}}
Account Details
{{ $user->mobile ? '+91 ' . $user->mobile : 'No mobile on record' }}
Joined {{ $user->created_at->format('d M Y') }}
Updated {{ $user->updated_at->diffForHumans() }}
{{-- Right: Activity + Client Assignment --}}
{{-- Recent Activity --}}
Recent Activity
View all
@forelse($activityLogs as $log)
{{ $log->description }}
{{ $log->created_at->diffForHumans() }}
{{ $log->action }}
@empty
No activity recorded yet.
@endforelse
{{-- Assigned Clients --}}
Assigned Clients {{ $assignedClients->count() }}
@if($assignedClients->isNotEmpty()) View all @endif
{{-- Assign / Reassign panel --}}
@csrf
@if($assignedClients->isEmpty())

No clients assigned to this staff member yet.

@else
@foreach($assignedClients as $client) @endforeach
Client Mobile Interest Active Req. Source
{{ $client->full_name }}
@if($client->email)
{{ $client->email }}
@endif
{{ $client->mobile }} {{ \App\Models\Client::INTEREST_TYPES[$client->interest_type] }} {{ $client->active_requirements_count ?? 0 }} {{ optional($client->sourcingChannel)->name ?? '—' }}
@endif
@endsection @push('scripts') @endpush