protected function renderTranslatedFields(array $locales, $value, $originalValue, array $errors)
    {
        // Render the inputs for all relevant locales
        $rendered = [];

        foreach ($locales as $locale) {

            $rendered[ $locale ] = $this->renderField(
                $this->getValueForLocale($locale, $value),
                $this->getValueForLocale($locale, $originalValue),
                $this->getErrorsForLocale($locale, $errors),
                $locale
            );
        }

        return view(static::FORM_FIELD_TRANSLATED_VIEW, [
            'field'          => $this->field,
            'locales'        => $locales,
            'value'          => $value,
            'errors'         => $errors,
            'localeRendered' => $rendered,
        ]);
    }
protected function renderTranslatedFields(array $locales, $value, $originalValue, array $errors)
    {
        // Render the inputs for all relevant locales
        $rendered = [];

        foreach ($locales as $locale) {

            $rendered[ $locale ] = $this->renderField(
                $this->getValueForLocale($locale, $value),
                $this->getValueForLocale($locale, $originalValue),
                $this->getErrorsForLocale($locale, $errors),
                $locale
            );
        }

        return view(static::FORM_FIELD_TRANSLATED_VIEW, [
            'field'          => $this->field,
            'locales'        => $locales,
            'value'          => $value,
            'errors'         => $errors,
            'localeRendered' => $rendered,
        ]);
    }
protected function renderTranslatedFields ( array $ locales , $ value , $ originalValue , array $ errors ) { // Render the inputs for all relevant locales $ rendered = [ ] ; foreach ( $ locales as $ locale ) { $ rendered [ $ locale ] = $ this -> renderField ( $ this -> getValueForLocale ( $ locale , $ value ) , $ this -> getValueForLocale ( $ locale , $ originalValue ) , $ this -> getErrorsForLocale ( $ locale , $ errors ) , $ locale ) ; } return view ( static :: FORM_FIELD_TRANSLATED_VIEW , [ 'field' => $ this -> field , 'locales' => $ locales , 'value' => $ value , 'errors' => $ errors , 'localeRendered' => $ rendered , ] ) ; }
Returns a rendered set of translated form fields.

@param array $locales
@param mixed $value
@param mixed $originalValue
@param array $errors
@return string|View
Returns a rendered set of translated form fields .