{!! html()->modelForm($setting_value, 'POST', route('settingUpdate'))->attribute('enctype', 'multipart/form-data')->open() !!} {!! html()->hidden('id', null) !!} {!! html()->hidden('page', $page) !!}
@foreach ($setting as $groupKey => $groupItems)

{{ str_replace('_', ' ', $groupKey) }}

@foreach ($groupItems as $fieldKey => $fieldValue) @php $fullKey = "{$groupKey}_{$fieldKey}"; $existingValue = collect($setting_value)->firstWhere('key', $fullKey); $inputValue = $existingValue->value ?? ''; $columnClass = $groupKey === 'FIREBASE' ? 'col-md-12' : 'col-md-6'; $inputType = $groupKey === 'COLOR' ? 'color' : 'number'; $tooltips = [ 'MAP_RED' => '🟥 Show zone as RED if available riders are less than this % of total orders.', 'MAP_ORANGE' => '🟧 Show zone as ORANGE if available riders are less than this % but more than red zone.', 'MAP_YELLOW' => '🟨 Show zone as YELLOW if available riders are less than this % but more than orange zone.', ]; $tooltip = $tooltips[$fullKey] ?? null; @endphp
{!! html()->hidden('type[]', $groupKey) !!}
@endforeach
@endforeach
{!! html()->submit(__('message.save'))->class('btn btn-primary float-right') !!} {!! html()->form()->close() !!}