<?php require 'salary_advance_request_script.php'; ?>

<!DOCTYPE html>
<html>
<head>

<title>Salary Advance Request</title>

<script src="https://cdn.tailwindcss.com"></script>

</head>
<body class="flex bg-gray-100">

<?php include '../sidebar.php'; ?>

<div class="flex-1 p-8" id="main-content">

<h1 class="text-3xl font-bold mb-6">

Salary Advance Request

</h1>

<?php if(isset($_GET['saved'])): ?>

<div class="bg-green-100 p-4 rounded-lg mb-5">

Request submitted successfully.

</div>

<?php endif; ?>

<div class="bg-white p-6 rounded-xl shadow">

<form method="POST">

<div>

<label class="block mb-2">

Amount

</label>

<input
type="number"
step="0.01"
required
name="amount"
class="w-full border p-3 rounded-lg">

</div>

<div class="mt-4">

<label class="block mb-2">

Reason

</label>

<textarea
name="reason"
required
rows="4"
class="w-full border p-3 rounded-lg"></textarea>

</div>

<button
class="mt-6 bg-blue-600 text-white px-8 py-3 rounded-lg">

Submit Request

</button>

</form>

</div>

</div>

</body>
</html>