@if($showModal)

Manage User Departure

@if($departingUser)

Departing User: {{ $departingUser->name }}

Role: {{ ucfirst($departingUser->role) }}

Email: {{ $departingUser->email }}

Status: {{ ucfirst($departingUser->status) }}

Contact Summary

Total Contacts

{{ $userStats['total_contacts'] ?? 0 }}

Created

{{ $userStats['created_contacts'] ?? 0 }}

Assigned

{{ $userStats['assigned_contacts'] ?? 0 }}

@if(count($userContacts) > 0)

Contacts to Transfer

@foreach($userContacts as $contact) @endforeach
Select Contact Company Owner Type
{{ $contact->name }}
{{ $contact->email ?: 'No email' }}
{{ $contact->company ?: 'N/A' }} @if($contact->assigned_to === $departingUser->id) Assigned @else Created @endif @if($contact->created_by === $departingUser->id) Creator @else Assigned @endif
@error('newOwnerId')

{{ $message }}

@enderror
@else

No contacts to transfer

This user has no contacts assigned to them.

@endif @endif
@endif