100 lines
2.5 KiB
PHP
100 lines
2.5 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Edit Data Siswa</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
body {
|
|
background: linear-gradient(135deg, #b64fdb, #c7f0e1);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #333;
|
|
}
|
|
.container {
|
|
width: 90%;
|
|
max-width: 600px;
|
|
background: #ffffff;
|
|
padding: 40px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
color: #2c3e50;
|
|
}
|
|
label {
|
|
font-weight: 600;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #34495e;
|
|
}
|
|
input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin-bottom: 20px;
|
|
border-radius: 12px;
|
|
border: 1px solid #ddd;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
input:focus {
|
|
outline: none;
|
|
border: 1px solid #b64fdb;
|
|
box-shadow: 0 0 8px rgba(52,152,219,0.5);
|
|
}
|
|
.button {
|
|
width: 100%;
|
|
padding: 14px;
|
|
background: #b64fdb;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.alert {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
border-left: 5px solid #f5c6cb;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<h1>Edit Data Karyawan</h1>
|
|
|
|
<form action="{{ route('karyawan.update', $karyawan->id) }}" method="POST">
|
|
@csrf
|
|
@method('PUT')
|
|
|
|
<label>Nama:</label>
|
|
<input type="text" name="nama" value="{{ $karyawan->nama }}" required>
|
|
|
|
<label>Umur:</label>
|
|
<input type="number" name="umur" value="{{ $karyawan->umur }}" required>
|
|
|
|
<label>Jabatan:</label>
|
|
<input type="text" name="jabatan" value="{{ $karyawan->jabatan }}" required>
|
|
|
|
<button type="submit" class="button">Update</button>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|