diff --git a/views/index.ejs b/views/index.ejs
index 9cfea842a468d6b4d9c88016d1222a435e91a4a2..040be00136ebfe85a1a7e8f17ce34ba2a93b31c9 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -81,13 +81,17 @@
                             <td class="px-6 py-4">
                                 <!-- ฟอร์มยืมอุปกรณ์ -->
                                 <% if (item.status==='available' ) { %>
-                                    <form action="/borrow" method="POST">
+                                    <form action="/confirm-loan" method="POST" class="flex space-x-2">
                                         <input type="hidden" name="equipment_id" value="<%= item.id %>">
-                                        <input type="number" name="quantity" min="1" max="<%= item.quantity %>" required>
-                                        <button type="submit">ยืมอุปกรณ์</button>
+                                        <label for="quantity" class="text-sm text-gray-700">จำนวน:</label>
+                                        <input type="number" name="quantity" min="1" max="<%= item.quantity %>"
+                                          class="p-2 border border-gray-300 rounded-md" required>
+                                        <button type="submit"
+                                          class="bg-blue-600 text-white p-2 rounded-md hover:bg-blue-700">
+                                          ยืมอุปกรณ์
+                                        </button>
                                       </form>
                                       
-                                      
                                     <% } else { %>
                                         <span class="text-gray-400">ไม่สามารถยืมได้</span>
                                         <% } %>