@extends('layouts.admin') @section('title', 'Edit User') @section('content')

Edit User

{{ $user->name }} - {{ $user->email }}

View User Back to Users
User Details
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('role')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
Change Password (Optional)
Leave blank to keep current password @error('password')
{{ $message }}
@enderror
@error('password_confirmation')
{{ $message }}
@enderror
Cancel
Current Information
User ID:
{{ $user->id }}
Current Role:
{{ ucfirst($user->role) }}
Current Status:
@php $statusColors = [ 'active' => 'success', 'inactive' => 'secondary', 'suspended' => 'warning' ]; $statusColor = $statusColors[$user->status] ?? 'secondary'; @endphp {{ ucfirst($user->status) }}
Email Verified:
@if($user->email_verified_at) {{ $user->email_verified_at->format('M d, Y') }} @else Not verified @endif
Member Since:
{{ $user->created_at->format('M d, Y') }}
Last Updated:
{{ $user->updated_at->format('M d, Y H:i') }}
Important Notes
@if($user->role === 'admin')
Admin User: Be careful when modifying admin accounts.
@endif @if($user->applications()->count() > 0)
Has Applications: This user has {{ $user->applications()->count() }} application(s).
@endif
Password: Only fill in password fields if you want to change the password.
@if($user->role === 'applicant')
Application Statistics
{{ $user->applications()->count() }}
Total Applications
@if($user->applications()->count() > 0)
{{ $user->applications()->where('status', 'submitted')->count() }}
Submitted
{{ $user->applications()->where('status', 'draft')->count() }}
Draft
@endif
@endif
@endsection