Skip to content

Commit

Permalink
[resources/views]: Auth views now uses dark-mode config (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsmania authored Jan 11, 2025
1 parent 80ee0ad commit 76b776f
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions resources/views/auth/auth-page.blade.php
Original file line number Diff line number Diff line change
@@ -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">
Expand Down

0 comments on commit 76b776f

Please sign in to comment.