@push('styles') @endpush @php $profile = $user->profile; $address = $user->address; $roleNames = method_exists($user, 'getRoleNames') ? $user->getRoleNames() : collect(); $primaryRole = $roleNames->first() ?: 'Member'; $primaryRoleLabel = ucwords(str_replace(['-', '_'], ' ', (string) $primaryRole)); $publicUrl = $profile?->public_url; $publicLink = $publicUrl ? route('profile.public.show', ['public_url' => $publicUrl]) : null; $completionChecks = [ filled($user->name), filled($user->email), filled($user->profile_image), filled($profile?->mobile_number), filled($profile?->bio), filled($address?->city) && filled($address?->country), $user->educations->isNotEmpty(), $user->experiences->isNotEmpty(), $user->skills->isNotEmpty(), ]; $completedCount = collect($completionChecks)->filter()->count(); $completionPercent = (int) round(($completedCount / count($completionChecks)) * 100); $routePrefix = 'admin.users.profile'; $routeParams = ['user' => $user]; $profileSections = [ ['id' => 'account', 'label' => 'Account', 'icon' => 'fa-user'], ['id' => 'details', 'label' => 'Details', 'icon' => 'fa-id-card'], ['id' => 'address', 'label' => 'Address', 'icon' => 'fa-location-dot'], ['id' => 'education', 'label' => 'Education', 'icon' => 'fa-graduation-cap'], ['id' => 'experience', 'label' => 'Experience', 'icon' => 'fa-briefcase'], ['id' => 'skills', 'label' => 'Skills', 'icon' => 'fa-screwdriver-wrench'], ]; @endphp

Admin Profile

Edit user profile

@if($publicLink) Public profile @endif Users

{{ $user->name }}

{{ $primaryRoleLabel }}

{{ $user->email }}

{{ $user->email_verified_at ? 'Verified email' : 'Email not verified' }} @if($profile?->mobile_number) {{ $profile->mobile_number }} @endif
Profile completion {{ $completionPercent }}%
{{ $completedCount }} of {{ count($completionChecks) }} editable items complete
@include('profile.partials.update-profile-information-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, 'showVerification' => false, ])
@include('profile.partials.update-profile-details-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, ])
@include('profile.partials.update-address-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, ])
@include('profile.partials.manage-educations-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, ])
@include('profile.partials.manage-experiences-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, ])
@include('profile.partials.manage-skills-form', [ 'routePrefix' => $routePrefix, 'routeParams' => $routeParams, ])