@php if (Ui::keyset($attributes, 'layout') == null || (Ui::keyset($attributes, 'layout') != null && $attributes['layout'] == 'h')) { $horizental = true; $row = ' row'; $labelClass = 'col-2 col-form-label'; } else { $horizental = false; $row = ''; $labelClass = 'col-form-label'; } $with_page_builder = isset($attributes['with_page_builder']) && $attributes['with_page_builder'] == true ?? false; if (request()->id != '' && $with_page_builder) { $page_builder_data = [ 'field' => $name, 'id' => request()->id ?? '', 'modelName' => $attributes['modelName'], ]; $page_builder_data = json_encode($page_builder_data); $page_builder_data = base64_encode($page_builder_data); $page_builder_link = route('admin.page-builder', $page_builder_data); } $value = str_replace('{base_url}', '../../../', $value); $without_label = false; if (Ui::keyset($attributes, 'without_label') != null) { $without_label = $attributes['without_label']; } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp
@if (!$without_label) {{ Form::label($name, Ui::prettify(__('ui.' . $name)), ['class' => $labelClass]) }} @endif @if ($horizental)
@endif @if (isset($page_builder_link) && $page_builder_link != '') Edit With Page Builder @endif {{ Form::textarea($name, $value, array_merge(['class' => 'form-control tinymce_editor'], $attributes)) }} @if ($horizental)
@endif