App\Services\Html\BlenderFormBuilder::seo PHP Метод

seo() публичный Метод

public seo ( ) : string
Результат string
    public function seo() : string
    {
        return locales()->map(function ($locale) {
            return collect($this->model->defaultSeoValues())->keys()->map(function ($attribute) use($locale) {
                $fieldName = translate_field_name("seo.{$attribute}", $locale);
                return $this->group([Form::label($fieldName, $this->getSeoLabel($attribute)), Form::text($fieldName, old($fieldName, $this->model->getTranslation('seo_values', $locale)[$attribute] ?? ''), ['placeholder' => $this->model->defaultSeoValues()[$attribute]])]);
            })->pipe(function (Collection $fields) use($locale) {
                return $this->languageFieldSet($locale, $fields->toArray());
            });
        })->implode('');
    }