diff --git a/cp/app/Controllers/LogsController.php b/cp/app/Controllers/LogsController.php
new file mode 100644
index 0000000..45e43a1
--- /dev/null
+++ b/cp/app/Controllers/LogsController.php
@@ -0,0 +1,18 @@
+container->get('db'));
+ $logs = $logModel->getAllRegistryTransaction();
+ return view($response,'admin/logs/index.twig', compact('logs'));
+ }
+}
\ No newline at end of file
diff --git a/cp/app/Models/RegistryTransaction.php b/cp/app/Models/RegistryTransaction.php
new file mode 100644
index 0000000..5a58c0a
--- /dev/null
+++ b/cp/app/Models/RegistryTransaction.php
@@ -0,0 +1,25 @@
+db = $db;
+ }
+
+ public function getAllRegistryTransaction()
+ {
+ return $this->db->select('SELECT * FROM registryTransaction.transaction_identifier ORDER BY cldate DESC');
+ }
+
+ public function getRegistryTransactionById($id)
+ {
+ return $this->db->select('SELECT * FROM registryTransaction.transaction_identifier WHERE id = ?', [$id])->fetch();
+ }
+}
\ No newline at end of file
diff --git a/cp/phpunit.xml b/cp/phpunit.xml
deleted file mode 100644
index c2a680a..0000000
--- a/cp/phpunit.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- tests
-
-
-
-
- app/
-
-
-
diff --git a/cp/resources/views/admin/logs/index.twig b/cp/resources/views/admin/logs/index.twig
new file mode 100644
index 0000000..70e4b59
--- /dev/null
+++ b/cp/resources/views/admin/logs/index.twig
@@ -0,0 +1,109 @@
+{% extends "layouts/app.twig" %}
+
+{% block title %}Log History{% endblock %}
+
+{% block content %}
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ Actions |
+
+
+
+ {% for log in logs %}
+
+ {{ log.cldate }} |
+ {{ log.registrar_id }} |
+ {{ log.cmd }} |
+ {{ log.obj_id }} |
+ {{ log.code }} |
+ {{ log.msg }} |
+ {{ log.clmicrosecond }} |
+ {{ log.clTRID }} |
+
+
+
+
+
+ |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/cp/resources/views/layouts/app.twig b/cp/resources/views/layouts/app.twig
index d2cf81e..d0f0099 100644
--- a/cp/resources/views/layouts/app.twig
+++ b/cp/resources/views/layouts/app.twig
@@ -189,6 +189,15 @@
+
+
+
+
+
+ Logs
+
+
+
diff --git a/cp/routes/web.php b/cp/routes/web.php
index 6c36d0f..e0b7df2 100644
--- a/cp/routes/web.php
+++ b/cp/routes/web.php
@@ -5,6 +5,7 @@ use App\Controllers\HomeController;
use App\Controllers\DomainsController;
use App\Controllers\ContactsController;
use App\Controllers\HostsController;
+use App\Controllers\LogsController;
use App\Controllers\ProfileController;
use App\Middleware\AuthMiddleware;
use App\Middleware\GuestMiddleware;
@@ -37,6 +38,7 @@ $app->group('', function ($route) {
$route->get('/domains', DomainsController::class .':view')->setName('domains');
$route->get('/contacts', ContactsController::class .':view')->setName('contacts');
$route->get('/hosts', HostsController::class .':view')->setName('hosts');
+ $route->get('/logs', LogsController::class .':view')->setName('logs');
$route->get('/profile', ProfileController::class .':profile')->setName('profile');
$route->get('/profile/notifications', ProfileController::class .':notifications')->setName('notifications');
$route->get('/profile/security', ProfileController::class .':security')->setName('security');
diff --git a/cp/tests/unit/SampleTest.php b/cp/tests/unit/SampleTest.php
deleted file mode 100644
index 26f2be4..0000000
--- a/cp/tests/unit/SampleTest.php
+++ /dev/null
@@ -1,9 +0,0 @@
-assertTrue(true);
- }
-}
\ No newline at end of file
diff --git a/cp/tests/unit/UserTest.php b/cp/tests/unit/UserTest.php
deleted file mode 100644
index f078f03..0000000
--- a/cp/tests/unit/UserTest.php
+++ /dev/null
@@ -1,17 +0,0 @@
-user = new \App\Models\User;
- }
-
- public function testEmailVariablesContainCorrectValues()
- {
- $user = new \App\Models\User;
-
- }
-}