From 4a4cf3c5bf32f50dcdc8fdc6c3ff680d7f15d90d Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 25 Jul 2024 13:52:29 +1000 Subject: [PATCH] Added disabled to components, new components, button and modal --- resources/components/button/error.blade.php | 9 +++++ resources/components/button/success.blade.php | 10 +++++- resources/components/form/base.blade.php | 2 +- resources/components/form/checkbox.blade.php | 5 +++ resources/components/form/date.blade.php | 2 +- resources/components/form/email.blade.php | 2 +- resources/components/form/file.blade.php | 2 +- resources/components/form/password.blade.php | 2 +- resources/components/form/select.blade.php | 6 ++-- resources/components/form/text.blade.php | 2 +- resources/components/form/textarea.blade.php | 2 +- resources/components/form/toggle.blade.php | 2 +- resources/components/modal/delete.blade.php | 35 +++++++++++++++++++ 13 files changed, 69 insertions(+), 12 deletions(-) create mode 100644 resources/components/button/error.blade.php create mode 100644 resources/components/form/checkbox.blade.php create mode 100644 resources/components/modal/delete.blade.php diff --git a/resources/components/button/error.blade.php b/resources/components/button/error.blade.php new file mode 100644 index 0000000..631d1cc --- /dev/null +++ b/resources/components/button/error.blade.php @@ -0,0 +1,9 @@ +@if(isset($row) && $row) +
+
+@endif + @error($name)@enderror +@if(isset($row) && $row) +
+
+@endif \ No newline at end of file diff --git a/resources/components/button/success.blade.php b/resources/components/button/success.blade.php index 113de13..3c76c69 100644 --- a/resources/components/button/success.blade.php +++ b/resources/components/button/success.blade.php @@ -1 +1,9 @@ -@session('success')@endsession \ No newline at end of file +@if(isset($row) && $row) +
+
+@endif + @session('success')@endsession +@if(isset($row) && $row) +
+
+@endif \ No newline at end of file diff --git a/resources/components/form/base.blade.php b/resources/components/form/base.blade.php index c854c6e..6f4a2b1 100644 --- a/resources/components/form/base.blade.php +++ b/resources/components/form/base.blade.php @@ -1,5 +1,5 @@ @if(isset($label)) - + @endisset
diff --git a/resources/components/form/checkbox.blade.php b/resources/components/form/checkbox.blade.php new file mode 100644 index 0000000..4749341 --- /dev/null +++ b/resources/components/form/checkbox.blade.php @@ -0,0 +1,5 @@ + +
+ +
+
\ No newline at end of file diff --git a/resources/components/form/date.blade.php b/resources/components/form/date.blade.php index b5342e2..7dea1d4 100644 --- a/resources/components/form/date.blade.php +++ b/resources/components/form/date.blade.php @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/resources/components/form/email.blade.php b/resources/components/form/email.blade.php index bfe4f0d..33b638c 100644 --- a/resources/components/form/email.blade.php +++ b/resources/components/form/email.blade.php @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/resources/components/form/file.blade.php b/resources/components/form/file.blade.php index f850ef7..75f12f4 100644 --- a/resources/components/form/file.blade.php +++ b/resources/components/form/file.blade.php @@ -1,5 +1,5 @@ - + {{ $slot }} diff --git a/resources/components/form/password.blade.php b/resources/components/form/password.blade.php index 032cb55..4d26875 100644 --- a/resources/components/form/password.blade.php +++ b/resources/components/form/password.blade.php @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/resources/components/form/select.blade.php b/resources/components/form/select.blade.php index a2b7caa..a570f6b 100644 --- a/resources/components/form/select.blade.php +++ b/resources/components/form/select.blade.php @@ -1,6 +1,6 @@ - @if(isset($addvalues) && $addvalues) @endif @@ -29,7 +29,7 @@ +@append \ No newline at end of file