Adel-laravel/projek_pkl/resources/views/karyawan/show.blade.php

89 lines
2.3 KiB
PHP

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Detail Karyawan</title>
<style>
/* CSS tetap pakai yang sudah kamu buat sebelumnya */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(135deg, #b64fdb, #ACB6E5);
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;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
overflow: hidden;
border-radius: 15px;
}
th, td {
padding: 15px;
font-size: 16px;
border-bottom: 1px solid #e1e1e1;
text-align: left;
}
tr:nth-child(even) {
background-color: #f4f9fd;
}
.button {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
color: #ffffff;
background: #bd7dd4;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: background 0.3s ease;
}
.button:hover {
background: #ACB6E5;
}
</style>
</head>
<body>
<div class="container">
<h1>Detail Karyawan</h1>
<table>
<tr>
<th>Nama</th>
<td>{{ $karyawan['nama'] }}</td>
</tr>
<tr>
<th>Umur</th>
<td>{{ $karyawan['umur'] }}</td>
</tr>
<tr>
<th>jabatan</th>
<td>{{ $karyawan['jabatan'] }}</td>
</tr>
</table>
<a href="{{ url('/karyawan') }}" class="button"> Kembali</a>
</div>
</body>
</html>