@if (Auth::user()->admin->getPermission("setting_general") == 'yes')

{{ trans('messages.admin.settings.edit_app_settings') }}

{{ trans('messages.general') }}

@foreach ($settings as $name => $setting) @if (isset($setting['cat']) && $setting['cat'] == 'general')
@if (in_array($name, ['site_logo_light','site_logo_dark','site_favicon'])) @include('admin.settings.general.' . $name) @else @if ($setting['type'] == 'checkbox')

{{ trans('messages.setting.' . $name . '.help') }}

@include('helpers.switch', [ 'name' => $name, 'option' => $setting['options'][1], 'unchecked_option' => (($setting['options'][0] == false) ? 0 : $setting['options'][0]), 'value' => $setting['value'], ])
@else @include('helpers.form_control', [ 'type' => $setting['type'], 'class' => (isset($setting['class']) ? $setting['class'] : "" ), 'name' => $name, 'value' => ($setting['type'] == 'image' ? (!empty($setting['value']) ? action('SettingController@file', $setting['value']) : '') : $setting['value']), 'label' => trans('messages.' . $name), 'help_class' => 'setting', 'options' => (isset($setting['options']) ? $setting['options'] : "" ), 'rules' => Acelle\Model\Setting::rules(), ]) @endif @endif
@if ($count%2 == 1)
@endif @endif @endforeach
@endif