Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.6 kB
1
Indexable
Never
<!DOCTYPE html>
<html lang="en">

<head>
  <title>User Management</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="container">
  <h2 class="text-center">User Management | Add New User</h2>
  <br>

  @if ($errors->any())
  <div class="alert alert-danger">
  <ul>
         @foreach ($errors->all() as $error)
          <li>{{ $error }}</li>
          @endforeach
    </ul>
    </div>
  @endif

  <form action="{{ route('insertnewuser') }}" method="POST" enctype="multipart/form-data">

    <input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>"><input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>">

        <label>Name:</label>
        <input type="text" class="form-control" placeholder="Name" name="name">
        
        <label>Email:</label>
        <input type="text" class="form-control" placeholder="Enter Email" name="email">
        
        <label>Password:</label>
        <input type="text" class="form-control" placeholder="Password" name="password">

    <br>

    <button type="submit" class="btn btn-primary">Add New</button>
  </form>

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