@php($activeFormContext = $activeFormContext ?? null) @php($showEditErrors = $activeFormContext === 'edit-' . $source->id) @php($editAdvancedOpen = old('region_scope', $source->region_scope) || old('country_scope', $source->country_scope) || (old('handler', $source->handler) && old('handler', $source->handler) !== 'generic_list') || ($showEditErrors && ($errors->has('region_scope') || $errors->has('country_scope') || $errors->has('handler'))))