@foreach ($settings as $setting)
{{ Form::label($setting->name, trans('settings.legend.' . $setting->name), ['class' => 'col-sm-2 col-form-label' . (str_contains(config('constants.settings.rules.' . $setting->name), 'required') ? ' required' : '')]) }}
@if ($setting->name == 'default_language') {{ Form::select($setting->name, $languagesList, !!old() ? old('default_language') : $setting->value, ['class' => 'form-control']) }} @elseif ($setting->name == 'presentation')
@if (!old('presentation') && $setting->value) @lang('global.tip.attachment')
{{ trans('global.legend.presentation') }} {{ pathinfo(config('constants.paths.presentations') . $setting->value, PATHINFO_EXTENSION) }}
@endif @if (!!old() && old('presentation'))
{{ trans('global.legend.presentation') }} {{ pathinfo(config('constants.paths.temporary') . old('presentation'), PATHINFO_EXTENSION) }}
@endif
@else {{ Form::text($setting->name, !!old() ? old($setting->name) : $setting->value, ['class' => 'form-control', 'maxlength' => '255']) }} @endif @if (Lang::has('settings.tip.' . $setting->name)) {{ trans('settings.tip.' . $setting->name) }} @endif
@endforeach
{{ Form::submit($submitButtonText, ['class' => 'btn btn-primary']) }}
@push('scripts') @endpush