From 16f01451a0d055490adb8700345aefe75f6f5c4f Mon Sep 17 00:00:00 2001
From: Alexander Jason <alexanderjason526@gmail.com>
Date: Fri, 17 Nov 2023 09:37:28 +0700
Subject: [PATCH] feat: integrate PHP REST list of collection

---
 app/pages/premium/PremiumCollectionPage.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/pages/premium/PremiumCollectionPage.php b/app/pages/premium/PremiumCollectionPage.php
index 1ae4597..e888396 100644
--- a/app/pages/premium/PremiumCollectionPage.php
+++ b/app/pages/premium/PremiumCollectionPage.php
@@ -28,19 +28,21 @@
                     <th>Id</th>
                     <th>Curator Collection</th>
                     <th>Details</th>
+                    <th>Subscribe</th>
                 </tr>
             </thead>
             <?php
             $raw_data = file_get_contents('http://host.docker.internal:8040/api/curator-collection');
             $data = json_decode($raw_data, true);
-            echo var_dump($data);
+            // echo var_dump($data);
             $collections = $data['found'];
 
             foreach ($collections as $collection) {
                 echo "<tr>";
                 echo "<td>" . $collection['collectionId'] . "</td>";
                 echo "<td>" . $collection['createdBy'] . "</td>"; 
-                echo '<td><a href="/premium/detail/' . $collection['collectionId'] .'">Edit</a></td>';
+                echo '<td><a href="/premium/detail/' . $collection['collectionId'] .'">Details</a></td>';
+                echo '<td><a href="/premium/detail/' . $collection['collectionId'] .'">Subscribe</a></td>';
                 echo "</tr>";
             }
             ?>
-- 
GitLab