@csrf
  • 1

    {{ __('Agent Identification & Agreement') }}

  • 2

    {{ __('Experience & Work History (Agent-Specific)') }}

  • 3

    {{ __('Income Declaration & Conflict of Interest Check') }}

  • 4

    {{ __('Geographical Availability & Work Preference') }}

  • 5

    {{ __('Personal Background') }}

@php $oldInput = old(); $sessionStep4 = session('kua_agent.step4', []); @endphp @php $oldData = (!empty(array_filter($oldInput, function($v) { return $v !== null && $v !== ''; })) ? $oldInput : $sessionStep4); if (empty($oldData['region_of_work'] ?? '') && isset($kuaAgentProfile) && $kuaAgentProfile && !empty($kuaAgentProfile->regions_available)) { $regionVal = $kuaAgentProfile->regions_available; if (is_array($regionVal)) { $oldData['region_of_work'] = count($regionVal) ? $regionVal[0] : ''; } elseif (is_string($regionVal) && strpos($regionVal, '[') === 0) { $arr = json_decode($regionVal, true); $oldData['region_of_work'] = (is_array($arr) && count($arr)) ? $arr[0] : ''; } else { $oldData['region_of_work'] = $regionVal; } } if (empty($oldData['open_to_roaming'] ?? '') && isset($kuaAgentProfile) && $kuaAgentProfile && isset($kuaAgentProfile->open_to_roaming)) { $oldData['open_to_roaming'] = $kuaAgentProfile->open_to_roaming; } if (empty($oldData['has_smartphone'] ?? '') && isset($kuaAgentProfile) && $kuaAgentProfile && isset($kuaAgentProfile->has_smartphone)) { $oldData['has_smartphone'] = $kuaAgentProfile->has_smartphone; } if (empty($oldData['has_transport'] ?? '') && isset($kuaAgentProfile) && $kuaAgentProfile && isset($kuaAgentProfile->has_transport)) { $oldData['has_transport'] = $kuaAgentProfile->has_transport; } @endphp @include('front.modules.kua_agent.register.sections.geographical_availability_work_preference', [ 'regions' => $regions, 'oldData' => $oldData ])