TKK_E32222628/hydrop_web/resources/views/pages/help.blade.php

178 lines
4.3 KiB
PHP

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Bantuan - IoT Dashboard</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
min-height: 100vh;
background: #f0f4f8;
}
.sidebar {
width: 250px;
background-color: #2e7d32;
color: white;
padding: 20px;
height: 100vh;
display: flex;
flex-direction: column;
}
.sidebar h2 {
margin-bottom: 30px;
font-size: 22px;
}
.sidebar a {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 15px;
padding: 16px 20px;
margin: 10px 0;
background-color: transparent;
color: white;
text-decoration: none;
border-radius: 10px;
font-size: 18px;
font-weight: 600;
transition: 0.3s ease;
}
.sidebar a:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.sidebar a.active {
background-color: rgba(255, 255, 255, 0.2);
}
.sidebar a i {
font-size: 20px;
}
.main-content {
flex: 1;
padding: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background-color: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
width: 400px;
text-align: center;
}
h2 {
margin-bottom: 20px;
color: #2e7d32;
}
input[type="text"],
input[type="email"],
textarea {
width: 90%;
padding: 10px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 6px;
font-family: 'Poppins', sans-serif;
}
textarea {
resize: none;
height: 100px;
}
button {
background-color: #2e7d32;
color: white;
padding: 10px 25px;
border: none;
border-radius: 6px;
cursor: pointer;
margin-top: 10px;
font-family: 'Poppins', sans-serif;
}
button:hover {
background-color: #1b5e20;
}
.back-link {
color: #2e7d32;
text-decoration: none;
margin-top: 15px;
display: inline-block;
}
.back-link:hover {
text-decoration: underline;
}
.error-message {
color: #d32f2f;
margin: 10px 0;
font-size: 14px;
}
</style>
</head>
<body>
<div class="sidebar">
<h2><i class="fas fa-seedling"></i> Hidroponik</h2>
<a href="{{ route('dashboard') }}"><i class="fas fa-tachometer-alt"></i> Dashboard</a>
<a href="{{ route('sensor') }}"><i class="fas fa-thermometer-half"></i> Sensor</a>
<a href="{{ route('actuator') }}"><i class="fas fa-microchip"></i> Aktuator</a>
<a href="{{ route('umur') }}"><i class="fas fa-leaf"></i> Umur Tanaman</a>
<a href="{{ route('report') }}"><i class="fas fa-download"></i> Report</a>
<a href="{{ route('help') }}" class="active"><i class="fas fa-question-circle"></i> Bantuan</a>
<form method="POST" action="{{ route('logout') }}" style="margin: 0;">
@csrf
<a href="#" onclick="this.closest('form').submit(); return false;"><i class="fas fa-sign-out-alt"></i> Logout</a>
</form>
</div>
<div class="main-content">
<div class="container">
<h2>Form Bantuan</h2>
@if ($errors->any())
<div class="error-message">
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
</div>
@endif
<form method="POST" action="{{ route('help.send') }}">
@csrf
<input type="text" name="nama" placeholder="Nama Anda" value="{{ old('nama') }}" required><br>
<input type="email" name="email" placeholder="Email Anda" value="{{ old('email') }}" required><br>
<textarea name="pesan" placeholder="Deskripsikan masalah atau pertanyaan Anda" required>{{ old('pesan') }}</textarea><br>
<button type="submit">Kirim via WhatsApp</button>
</form>
<a href="{{ route('dashboard') }}" class="back-link">Kembali ke Dashboard</a>
</div>
</div>
</body>
</html>