Changes for admin multi theme system

This commit is contained in:
jitendra 2020-08-12 13:17:34 +05:30
parent 9c0ec6f644
commit cd20e616b1
2 changed files with 6 additions and 6 deletions

View File

@ -143,9 +143,9 @@
<div class="control-group">
<label for="theme">{{ __('admin::app.settings.channels.theme') }}</label>
<select class="control" id="theme" name="theme">
@foreach (themes()->all() as $theme)
<option value="{{ $theme->code }}" {{ old('theme') == $theme->code ? 'selected' : '' }}>
{{ $theme->name }}
@foreach (config('themes.themes') as $themeCode => $theme)
<option value="{{ $themeCode }}" {{ old('theme') == $themeCode ? 'selected' : '' }}>
{{ $theme['name'] }}
</option>
@endforeach
</select>

View File

@ -154,9 +154,9 @@
<?php $selectedOption = old('theme') ?: $channel->theme ?>
<select class="control" id="theme" name="theme">
@foreach (themes()->all() as $theme)
<option value="{{ $theme->code }}" {{ $selectedOption == $theme->code ? 'selected' : '' }}>
{{ $theme->name }}
@foreach (config('themes.themes') as $themeCode => $theme)
<option value="{{ $themeCode }}" {{ $selectedOption == $themeCode ? 'selected' : '' }}>
{{ $theme['name'] }}
</option>
@endforeach
</select>