@extends('layouts.app') @section('title', 'Edit Country | DYSON LATAM') @section('content')
{{-- HEADER --}}
DYSON LATAM / ADMINISTRATION / CATALOGS

Edit Country

Configure the NPD workflow for this country

← Back to Country
{{-- FORM CARD --}}
@csrf @method('PUT') {{-- COUNTRY INFORMATION --}}

Country Information

Country name used throughout the NPD project management system.

@error('name')
{{ $message }}
@enderror
{{-- PROJECT STAGES --}}

Project Stages

Select the stages that apply to projects created for this country.

@foreach ($availableStages as $stageKey => $stageName) @php $stageSelected = in_array($stageKey, old('stages', $configuredStages), true); @endphp

{{ $stageName }}

@endforeach
@error('stages')
{{ $message }}
@enderror @error('stages.*')
{{ $message }}
@enderror
{{-- CERTIFICATIONS --}}

Certifications

Select the certifications that apply. Mark a selected certification as Required when it is mandatory for the country.

Available Certifications

@foreach ($availableCertifications as $certification) @php $configured = array_key_exists($certification, $configuredCertifications); $selectedCertifications = old( 'certifications', array_keys($configuredCertifications), ); $selectedRequiredCertifications = old( 'required_certifications', array_keys( array_filter( $configuredCertifications, fn($required) => $required === true, ), ), ); $certificationSelected = in_array($certification, $selectedCertifications, true); $certificationRequired = in_array( $certification, $selectedRequiredCertifications, true, ); @endphp
{{ $certification }}
@endforeach
@error('certifications')
{{ $message }}
@enderror @error('certifications.*')
{{ $message }}
@enderror @error('required_certifications.*')
{{ $message }}
@enderror
{{-- ACTIONS --}}
Cancel
@push('scripts') @endpush @endsection