@extends('layouts.app') @section('page_title', 'Edit User') @section('page_subtitle', 'Update details, role, or reset password for ' . $user->name) @section('page_actions') Back to Users @endsection @section('content')
{{-- Edit form --}}

Account Details

Modify the user's information and role.

@csrf @method('PUT')
Cancel
{{-- Reset password --}}

Reset Password

Leave blank to keep the current password.

@csrf @method('PUT') {{-- Re-send unchanged fields so the main update validation passes --}}
{{-- User meta --}}
Account Info
User ID#{{ $user->id }}
Last Login{{ $user->last_login_at ? $user->last_login_at->format('d M Y, H:i') : 'Never' }}
Last IP{{ $user->last_login_ip ?? '—' }}
Created{{ $user->created_at->format('d M Y') }}
@endsection