<!DOCTYPE html>
<html lang="en">
  <head>
    <%- include('./partials/head.ejs') %>
  </head>
  <body class="overflow-x-hidden bg-gray-100">
    <%- include('./partials/navbar.ejs') %>

    <div class="container mx-auto p-4">
      <h2 class="text-2xl font-bold mb-4">Ubah Laporan Penjualan</h2>
      <form action="/sell/update/<%= data._id %>" method="POST" class="bg-white rounded-lg shadow-md p-6">
        <div class="mb-4">
          <label for="title" class="block text-gray-700 font-bold">Judul:</label>
          <input type="text" id="title" name="title" required value="<%= data.title %>" class="border border-gray-300 rounded-md px-3 py-2 w-full focus:outline-none focus:ring focus:border-blue-500">
        </div>
        <div class="mb-4">
          <label for="content" class="block text-gray-700 font-bold">Deskripsi:</label>
          <input type="text" id="content" name="content" required value="<%= data.content %>" class="border border-gray-300 rounded-md px-3 py-2 w-full focus:outline-none focus:ring focus:border-blue-500">
        </div>
        <div class="mb-4">
          <label for="content2" class="block text-gray-700 font-bold">Persediaan:</label>
          <textarea id="content2" name="content2" required class="border border-gray-300 rounded-md px-3 py-2 w-full h-24 resize-none focus:outline-none focus:ring focus:border-blue-500"><%= data.content2 %></textarea>
        </div>
        <button type="submit" class="bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600">Submit</button>
      </form>
    </div>
    <%- include('./partials/footer.ejs') %>
  </body>
</html>
