Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.1 kB
1
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
  <title>User Management System</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</head>
<body>

<div class="row">
    <div class="col-sm-8 offset-sm-2">
        <h1 class="display-3">Update/Edit User Information</h1>
 
        @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
        <br /> 
        @endif

        <form action="{{ route('update-user',[$users->id]) }}" method="post" >
            @csrf

            <div class="form-group">
                <label for="id">ID:*</label>
                <input type="text" class="form-control" name="id" value="{{ $users->id }}" readonly/>
            </div>

            <div class="form-group">
                <label for="name">Name:*</label>
                <input type="text" class="form-control" name="name" value="{{ $users->name }}" />
            </div>
 
            <div class="form-group">
                <label for="email">Email:*</label>
                <input type="text" class="form-control" name="email" value="{{ $users->email }}" />
            </div>
 
            <div class="form-group">
                <label for="password">Password:*</label>
                <input type="text" class="form-control" name="password" value="{{ $users->password }}" />
            </div>
            <button type="submit" class="btn btn-primary">Update</button>
        </form>

    </div>
</div>
</body>
</html>