@props([
'variables' => [],
'functions' => [],
'value' => null,
'name' => null,
'mode' => 'html',
'helperText' => null,
])
@if (! empty($variables))
@foreach ($variables as $key => $label)
{{ $key }}: {{ trans($label) }}
@endforeach
@endif
@if (! empty($functions))
@foreach ($functions as $key => $function)
{{ $key }}: {{ trans($function['label']) }}
@endforeach
@endif
@if($helperText)
{{ $helperText }}
@else
{!! BaseHelper::clean(
__('Learn more about Twig template: :url', [
'url' => Html::link('https://twig.symfony.com/doc/3.x/', null, ['target' => '_blank']),
]),
) !!}
@endif