From 856f46c2879f418f6f64eb66479de4dac7716ef9 Mon Sep 17 00:00:00 2001
From: Bitha17 <16521076@mahasiswa.itb.ac.id>
Date: Sun, 8 Oct 2023 18:36:56 +0700
Subject: [PATCH] template edits

---
 app/Views/template/event.php   |  1 -
 app/Views/template/history.php | 10 ++++++++--
 app/Views/template/navbar.php  |  6 +++---
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/app/Views/template/event.php b/app/Views/template/event.php
index 09bb8f9..72e1355 100644
--- a/app/Views/template/event.php
+++ b/app/Views/template/event.php
@@ -17,5 +17,4 @@
             <button type="submit" id="updateEvent">Update Event</button>
         </form>
     </div>
-    <!-- <a href="#">Buy Tickets</a> -->
 </div>
\ No newline at end of file
diff --git a/app/Views/template/history.php b/app/Views/template/history.php
index 292c500..277348f 100644
--- a/app/Views/template/history.php
+++ b/app/Views/template/history.php
@@ -1,6 +1,12 @@
 <div class="history-container">
-    <h2><?php echo $pembelian['pembelian_id']; ?></h2>
-    <div class="row">
+    <!-- <h2><?php echo $pembelian['pembelian_id']; ?></h2> -->
+    <div class="row"><img src="<?php echo '../../../'.$pembelian['gambar']; ?>" alt="<?php echo $event['event_name']; ?>" width="200">
+        <div class="column">
+            <p><strong>Location:</strong> <?php echo $pembelian['event_location']; ?></p>
+            <p><strong>Date/Time:</strong> <?php echo $pembelian['event_date']; ?></p>
+            <p><strong>Ticket Price:</strong> <?php echo $pembelian['event_price']; ?></p>
+            <p><strong>Tickets Left:</strong> <?php echo $pembelian['event_stock']; ?></p>
+        </div>
         <div class="column">
             <p><strong>Ticket ID:</strong> <?php echo $pembelian['ticket_id']; ?></p>
             <p><strong>User ID:</strong> <?php echo $pembelian['user_id']; ?></p>
diff --git a/app/Views/template/navbar.php b/app/Views/template/navbar.php
index b50bfa8..2c0486b 100644
--- a/app/Views/template/navbar.php
+++ b/app/Views/template/navbar.php
@@ -2,9 +2,9 @@
     <div class="row">
         <div class="navbar-toggle" onclick="toggleMenu()">☰</div>
         <ul>
-            <li><a href="#">Home</a></li>
-            <li><a href="#">Events</a></li>
-            <li><a href="#">Profile</a></li>
+            <li><a href="../home/home.php">Home</a></li>
+            <li><a href="../home/home.php">Events</a></li>
+            <li><a href="../profile/view_profile.php">Profile</a></li>
             <li><a href="../history/history.php">History</a></li>
             <!-- Logout Button -->
             <li>
-- 
GitLab