From fd780d1756ba570b7d95079ea308eb11cb5f144c Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 4 Dec 2024 18:05:37 +1100 Subject: [PATCH] Minor fixes to select component to render HTML helpers --- resources/views/components/form/base.blade.php | 2 +- resources/views/components/form/select.blade.php | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/resources/views/components/form/base.blade.php b/resources/views/components/form/base.blade.php index 6e9a379..7d333fa 100644 --- a/resources/views/components/form/base.blade.php +++ b/resources/views/components/form/base.blade.php @@ -22,6 +22,6 @@ @isset($helper) - {{ $helper }} + {!! html_entity_decode($helper) !!} @endif \ No newline at end of file diff --git a/resources/views/components/form/select.blade.php b/resources/views/components/form/select.blade.php index cf29001..8432c1e 100644 --- a/resources/views/components/form/select.blade.php +++ b/resources/views/components/form/select.blade.php @@ -1,6 +1,6 @@ - @if(empty($value) || isset($addnew) || isset($choose)) @isset($addnew) @@ -51,12 +51,9 @@ dropdownAutoWidth: true, width: 'style', allowClear: true, - placeholder: '', + placeholder: '{{ $placeholder ?? '' }}', @isset($addvalues) - tags: true, - @isset($placeholder) - placeholder: '{{ $placeholder }}', - @endisset + tags: true, @endisset }); });