diff --git a/resources/css/utilities.css b/resources/css/utilities.css
index f819280d5..f5d173204 100644
--- a/resources/css/utilities.css
+++ b/resources/css/utilities.css
@@ -124,7 +124,7 @@ @utility menu {
}
@utility menu-item {
- @apply flex gap-3 items-center px-2 py-1 w-full text-sm sm:pr-0 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300 min-w-fit sm:min-w-64;
+ @apply flex gap-3 items-center px-2 py-1 w-full text-sm sm:pr-0 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300 min-w-fit sm:min-w-64 text-black dark:text-neutral-400;
}
@utility menu-item-active {
@@ -220,7 +220,7 @@ @utility title {
}
@utility subtitle {
- @apply pt-2 pb-9;
+ @apply pt-2 pb-9 text-neutral-500 dark:text-neutral-400;
}
@utility fullscreen {
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 0a7909761..01a128bd2 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -9,15 +9,16 @@
@auth
+ open: false,
+ init() {
+ this.pageWidth = localStorage.getItem('pageWidth');
+ if (!this.pageWidth) {
+ this.pageWidth = 'full';
+ localStorage.setItem('pageWidth', 'full');
+ }
+ }
+ }" x-cloak class="mx-auto text-neutral-800 dark:text-white"
+ :class="pageWidth === 'full' ? '' : 'max-w-7xl'">
-
@endauth
-@endsection
+@endsection
\ No newline at end of file
diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php
index a4c72a5d8..0bb7a3c34 100644
--- a/resources/views/layouts/base.blade.php
+++ b/resources/views/layouts/base.blade.php
@@ -2,17 +2,19 @@
+
-
+
@@ -73,102 +75,102 @@
@section('body')
-
-
-
-
+ }, timeout);
+ return;
+ } else {
+ window.location.reload();
+ }
+ })
+ window.Livewire.on('info', (message) => {
+ if (typeof message === 'string') {
+ window.toast('Info', {
+ type: 'info',
+ description: message,
+ })
+ return;
+ }
+ if (message.length == 1) {
+ window.toast('Info', {
+ type: 'info',
+ description: message[0],
+ })
+ } else if (message.length == 2) {
+ window.toast(message[0], {
+ type: 'info',
+ description: message[1],
+ })
+ }
+ })
+ window.Livewire.on('error', (message) => {
+ if (typeof message === 'string') {
+ window.toast('Error', {
+ type: 'danger',
+ description: message,
+ })
+ return;
+ }
+ if (message.length == 1) {
+ window.toast('Error', {
+ type: 'danger',
+ description: message[0],
+ })
+ } else if (message.length == 2) {
+ window.toast(message[0], {
+ type: 'danger',
+ description: message[1],
+ })
+ }
+ })
+ window.Livewire.on('warning', (message) => {
+ if (typeof message === 'string') {
+ window.toast('Warning', {
+ type: 'warning',
+ description: message,
+ })
+ return;
+ }
+ if (message.length == 1) {
+ window.toast('Warning', {
+ type: 'warning',
+ description: message[0],
+ })
+ } else if (message.length == 2) {
+ window.toast(message[0], {
+ type: 'warning',
+ description: message[1],
+ })
+ }
+ })
+ window.Livewire.on('success', (message) => {
+ if (typeof message === 'string') {
+ window.toast('Success', {
+ type: 'success',
+ description: message,
+ })
+ return;
+ }
+ if (message.length == 1) {
+ window.toast('Success', {
+ type: 'success',
+ description: message[0],
+ })
+ } else if (message.length == 2) {
+ window.toast(message[0], {
+ type: 'success',
+ description: message[1],
+ })
+ }
+ })
+ });
+
+
@show
-