[Back]
<!DOCTYPE html>
<html>
<head>
    <title>Edit Name</title>
</head>
<body>
    <h1>Edit Name</h1>

    @if(session('success'))
        <p>{{ session('success') }}</p>
    @endif

    <form method="post" action="{{ route('users.update', $user->id) }}">
        @csrf
        <label for="name">Name:</label>
        <input type="text" id="name" name="name" value="{{ $user->name }}" required>
        <button type="submit">Update</button>
    </form>
</body>
</html>