@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
@endforeach