@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getLayoutTop() as $item)
diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php
index a706e02..8e5b3d1 100644
--- a/resources/views/layouts/guest.blade.php
+++ b/resources/views/layouts/guest.blade.php
@@ -1,3 +1,19 @@
+
+
+ if(localStorage.getItem("splade") && typeof document !== undefined){
+ let spladeStorage = JSON.parse(localStorage.getItem("splade"));
+ let dark = spladeStorage?.admin?.dark;
+ document.body.classList[dark ? "add" : "remove"]("dark-scrollbars");
+ document.documentElement.classList[dark ? "add" : "remove"]("dark");
+ let htmlEl = document.querySelector("html");
+
+ if ("{{app()->getLocale()}}" === "ar") {
+ htmlEl.setAttribute("dir", "rtl");
+ } else {
+ htmlEl.setAttribute("dir", "ltr");
+ }
+ }
+
+
+
diff --git a/resources/views/layouts/includes/nav.blade.php b/resources/views/layouts/includes/nav.blade.php
index 5bc8941..1988426 100644
--- a/resources/views/layouts/includes/nav.blade.php
+++ b/resources/views/layouts/includes/nav.blade.php
@@ -16,6 +16,7 @@
">
+ @endif