@include('Partials.sidebar')
@include('Partials.header')
{{-- Success/Error --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @php $role = session('admin_role'); $editUrl = $role === 'platform_owner' ? '/platform/profile/edit' : '/' . $tenantSlug . '/admin/profile/edit'; $roleDisplay = match($role) { 'platform_owner' => 'Platform Owner', 'company_admin' => 'Company Admin', 'sales' => 'Sales', 'broker' => 'Broker', default => ucfirst(str_replace('_', ' ', $role)) }; @endphp
{{-- ── Profile Card ── --}}
{{-- Profile Photo --}} @if($admin->profile_photo)
@else
{{ strtoupper(substr($admin->name, 0, 1)) }}
@endif
{{ $admin->name }}

{{ $admin->email }}

{{-- Role Badge --}} @if($role === 'platform_owner') Platform Owner @elseif($role === 'company_admin') Company Admin @elseif($role === 'sales') Sales @elseif($role === 'broker') Broker @endif
{{-- ── Profile Details ── --}}
Profile Details
@if($admin->tenant_id) @endif
Name {{ $admin->name }}
Email {{ $admin->email }}
Phone {{ $admin->phone ?? '—' }}
Role {{ $roleDisplay }}
Status @if($admin->status === 'active') Active @else Inactive @endif
Tenant {{ $admin->tenant->name ?? 'N/A' }}
Member Since {{ $admin->created_at?->format('d M Y') }}
{{-- ── Change Password ── --}}
Change Password
@php $passwordAction = $role === 'platform_owner' ? '/platform/profile/password' : '/' . $tenantSlug . '/admin/profile/password'; @endphp
@csrf @method('PUT')
@error('current_password')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@include('Partials.footer')