diff --git a/app/View/Form/Select.php b/app/View/Form/Select.php index 89db5bfd..45317eaf 100644 --- a/app/View/Form/Select.php +++ b/app/View/Form/Select.php @@ -47,6 +47,7 @@ class Select extends Component @endforeach + @if($hint) {{$hint}} @endif diff --git a/app/View/Form/Text.php b/app/View/Form/Text.php index 6a723534..3cacb3ad 100644 --- a/app/View/Form/Text.php +++ b/app/View/Form/Text.php @@ -44,6 +44,7 @@ class Text extends Component " {{ $attributes }} /> + @if($hint) {{$hint}} @endif diff --git a/app/View/Ui/Errors.php b/app/View/Ui/Errors.php new file mode 100644 index 00000000..998e9ba4 --- /dev/null +++ b/app/View/Ui/Errors.php @@ -0,0 +1,33 @@ +for); + } + + public function render() + { + return <<<'HTML' + @error($for) +
+
+
{{$message}}
+
+
+
+ @enderror + HTML; + } +}