From 5fbadf8063a1cee6fa0d64af8cd8d5556b268f32 Mon Sep 17 00:00:00 2001 From: cp6 Date: Mon, 31 Oct 2022 14:41:26 +1100 Subject: [PATCH] Updated text input component Updated text input component to include placeholder and error message output if exists --- resources/views/components/text-input.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/components/text-input.blade.php b/resources/views/components/text-input.blade.php index 4f94292..c8e7e90 100644 --- a/resources/views/components/text-input.blade.php +++ b/resources/views/components/text-input.blade.php @@ -1,5 +1,6 @@
{{$title}}
+ value="{{$value ?? ''}}" @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif {{(isset($required))? 'required': ''}}> + @error((string)$name){{ $message }}@enderror