@props(['links' => []]) @php $options = config('settings'); $currentAppSettings = \App\Models\Setting::all()->groupBy('env'); $currentOptions = $currentAppSettings->isNotEmpty() ? $currentAppSettings['web']->keyBy('key') : []; @endphp @push('styles') @endpush
@csrf
@foreach ($options as $groupKey => $group )
@foreach ($group as $input) @if(isset($input['divider'])) {{ $input['divider'] ?? '' }} @continue @endif
@switch($input['type']) @case('textarea') @if(isset($input['help'])) {{ __($input['help']) }} @endif @break @case('select') @if(isset($input['help'])) {{ __($input['help']) }} @endif @break @case('image') @if(isset($input['help'])) {{ __($input['help']) }} @endif @break @case('boolean') @break @default value ?? $input['default']) }}"> @if(isset($input['help'])) {{ __($input['help']) }} @endif @endswitch
@endforeach
@endforeach