{{ __('Dealer Provisioning Summary') }}
@php $counts = $summary['counts'] ?? null; $users = $summary['users'] ?? $summary; $created = $users['created'] ?? []; $existing = $users['existing'] ?? []; $runType = $summary['run_type'] ?? null; $showPasswords = $runType !== 'reprovision' && !empty($created) && isset($created[0]['temp_password']); @endphp

Provisioning Summary for {{ $dealer->name }}

Domain: {{ $dealer->domain ?? 'n/a' }}

@if ($runType === 'reprovision') This summary reflects the latest re-provisioning run. Existing user passwords are never reset and are not displayed here. @else These details are shown once after provisioning. Temporary passwords will not be displayed again. @endif

@if (! $summary)

No recent provisioning summary available for this dealer. Temporary passwords are only shown immediately after initial provisioning.

@else @if ($counts)

Provisioning Counts

Departments created
{{ $counts['departments_created'] ?? 0 }}
Roles created
{{ $counts['roles_created'] ?? 0 }}
Permissions created
{{ $counts['permissions_created'] ?? 0 }}
Users created
{{ $counts['users_created'] ?? 0 }}
Existing users aligned
{{ $counts['users_existing'] ?? 0 }}
@endif @if (!empty($created))

Newly Created Users

@if ($showPasswords)

Share these temporary passwords securely with each user and ask them to change on first login.

@else

Temporary passwords are not displayed for this run.

@endif
@if ($showPasswords) @endif @foreach ($created as $user) @if ($showPasswords) @endif @endforeach
Name Email RoleTemporary Password
{{ $user['name'] }} {{ $user['email'] }} {{ $user['role'] }} {{ $user['temp_password'] }}
@endif @if (!empty($existing))

Existing Users (updated)

These users already existed. Their roles and departments were aligned with the dealer baseline.

@foreach ($existing as $user) @endforeach
Name Email Role
{{ $user['name'] }} {{ $user['email'] }} {{ $user['role'] }}
@endif @endif