2022-11-10 03:30:08 +08:00
|
|
|
<form action="{{ url('/preferences/toggle-dark-mode') }}" method="post">
|
2020-04-13 02:06:34 +08:00
|
|
|
{{ csrf_field() }}
|
|
|
|
{{ method_field('patch') }}
|
2023-12-10 20:37:21 +08:00
|
|
|
<input type="hidden" name="_return" value="{{ url()->current() }}">
|
2020-04-13 02:06:34 +08:00
|
|
|
@if(setting()->getForCurrentUser('dark-mode-enabled'))
|
|
|
|
<button class="{{ $classes ?? '' }}"><span>@icon('light-mode')</span><span>{{ trans('common.light_mode') }}</span></button>
|
|
|
|
@else
|
|
|
|
<button class="{{ $classes ?? '' }}"><span>@icon('dark-mode')</span><span>{{ trans('common.dark_mode') }}</span></button>
|
|
|
|
@endif
|
|
|
|
</form>
|