Repository: jeroennoten/Laravel-AdminLTE (language: php)

Issue:
[BUG] darkmode not working on auth pages
### Describe the bug
When toggeling Darkmode (/config/adminlte.php) the auth pages stay in light mode

### Steps To Reproduce
'layout_dark_mode' => true and then visit auth pages

### Expected behavior
auth pages sould be in darkmode too


Discussion / hints:
Thanks, I will review this soon...

**Self-Note:** On login page, **dark-mode** should only be based on the configuration value!

Fix patch:
diff --git a/resources/views/auth/auth-page.blade.php b/resources/views/auth/auth-page.blade.php
index 1faa152c..eb8357ea 100644
--- a/resources/views/auth/auth-page.blade.php
+++ b/resources/views/auth/auth-page.blade.php
@@ -1,19 +1,27 @@
 @extends('adminlte::master')
 
-@php( $dashboard_url = View::getSection('dashboard_url') ?? config('adminlte.dashboard_url', 'home') )
+@php
+    $dashboard_url = View::getSection('dashboard_url') ?? config('adminlte.dashboard_url', 'home');
 
-@if (config('adminlte.use_route_url', false))
-    @php( $dashboard_url = $dashboard_url ? route($dashboard_url) : '' )
-@else
-    @php( $dashboard_url = $dashboard_url ? url($dashboard_url) : '' )
-@endif
+    if (config('adminlte.use_route_url', false)) {
+        $dashboard_url = $dashboard_url ? route($dashboard_url) : '';
+    } else {
+        $dashboard_url = $dashboard_url ? url($dashboard_url) : '';
+    }
+
+    $bodyClasses = ($auth_type ?? 'login') . '-page';
+
+    if (! empty(config('adminlte.layout_dark_mode', null))) {
+        $bodyClasses .= ' dark-mode';
+    }
+@endphp
 
 @section('adminlte_css')
     @stack('css')
     @yield('css')
 @stop
 
-@section('classes_body'){{ ($auth_type ?? 'login') . '-page' }}@stop
+@section('classes_body'){{ $bodyClasses }}@stop
 
 @section('body')
     <div class="{{ $auth_type ?? 'login' }}-box">


Test patch: