Create a helper function for easier access

parent 5c4e2cc1
@component($editor->getI18nComponentName(), compact('lang', 'fieldName', 'labelName'))
{!! $content !!}
@endcomponent
......@@ -33,3 +33,10 @@ if (! function_exists('is_core_module')) {
return in_array(strtolower($module), app('asgard.ModulesList'));
}
}
if (! function_exists('asgard_i18n_editor')) {
function asgard_i18n_editor($fieldName, $labelName, $content, $lang)
{
return view('core::components.i18n.textarea-wrapper', compact('fieldName','labelName', 'content', 'lang'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment