@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')
@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