@extends('layouts.master') @section('title', 'Lawyer Profile') @section('page-title', 'Profile') @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif
@if($user->profile_picture) Profile Picture @else 👨‍⚖️ @endif

{{ $user->name }}

{{ $userRole }} | {{ $userGroup }}
Employee ID: {{ $user->id ?? 'N/A' }} | Joined: {{ $user->created_at ? $user->created_at->format('M d, Y') : 'N/A' }}
Active

👤 Personal Information

Employee ID: {{ $user->id ?? 'N/A' }}
Email: {{ $user->email }}
Phone: {{ $userPhones->isNotEmpty() ? $userPhones->first()->phone_number : 'N/A' }}
Group: {{ $userGroup }}
Tier: {{ $userTier }}
Location: {{ $user->location ?? 'N/A' }}

🎯 Practice Areas & Specializations

General Law {{ $userGroup }}

🔐 Security Settings

Two-Factor Authentication: {{ $user->is_2fa_enabled ? 'Enabled' : 'Disabled' }}
SMS Verification: {{ $user->uses_sms ? 'Enabled' : 'Disabled' }}
@csrf
@csrf
@csrf
@csrf

🔑 Change Password

@csrf

💬 Chat Passcode

Set a 6-digit passcode to access the team chat room.

@csrf @php $hasChatPasscode = \App\Models\ChatPasscode::where('user_id', $user->id)->where('is_active', true)->exists(); @endphp @if($hasChatPasscode)
@error('chat_passcode_current') {{ $message }} @enderror
@endif
@error('chat_passcode') {{ $message }} @enderror
@error('chat_passcode_confirmation') {{ $message }} @enderror

⚙️ Actions

@csrf
@endsection