25 lines
509 B
PHP
25 lines
509 B
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Tambah User</title>
|
|
</head>
|
|
<body>
|
|
<h1>Tambah User</h1>
|
|
|
|
@if(session('success'))
|
|
<p style="color: green">{{ session('success') }}</p>
|
|
@endif
|
|
|
|
<form action="/users" method="POST">
|
|
@csrf
|
|
<label>Nama:</label>
|
|
<input type="text" name="name" required><br><br>
|
|
|
|
<label>Email:</label>
|
|
<input type="email" name="email" required><br><br>
|
|
|
|
<button type="submit">Simpan</button>
|
|
</form>
|
|
</body>
|
|
</html>
|