@php
$defaultLocale = setting('locale', App::getLocale());
if (BaseHelper::hasDemoModeEnabled() && session('site-locale') && array_key_exists(session('site-locale'), \Botble\Base\Supports\Language::getAvailableLocales())) {
$defaultLocale = session('site-locale');
}
$locales = collect(\Botble\Base\Supports\Language::getAvailableLocales())->pluck('name', 'locale')->map(fn($item, $key) => $item . ' - ' . $key)->all();
$maxEmailCount = 4;
@endphp
@extends(BaseHelper::getAdminMasterLayoutTemplate())
@section('content')
{!! Form::open(['route' => ['settings.edit']]) !!}
+ {{ trans('core/setting::setting.email_add_more') }}
{{ Form::helper(trans('core/setting::setting.emails_warning', ['count' => $maxEmailCount])) }}
{!! Form::mediaImage('admin_logo', setting('admin_logo'), ['allow_thumb' => false, 'default_image' => url(config('core.base.general.logo'))]) !!}
{!! Form::mediaImage('admin_favicon', setting('admin_favicon'), ['allow_thumb' => false, 'default_image' => url(config('core.base.general.favicon'))]) !!}
{!! Form::mediaImages('login_screen_backgrounds[]', is_array(setting('login_screen_backgrounds', '')) ? setting('login_screen_backgrounds', '') : json_decode(setting('login_screen_backgrounds', ''), true)) !!}
@if(count(Assets::getThemes()) > 1)
@endif
! setting('enable_cache', false)])>
{!! apply_filters(BASE_FILTER_AFTER_SETTING_CONTENT, null) !!}
{!! Form::close() !!}
{!! $jsValidation !!}
@endsection