diff --git a/app/View/Components/Alert.php b/app/View/Components/Alert.php index be75644..8206119 100644 --- a/app/View/Components/Alert.php +++ b/app/View/Components/Alert.php @@ -7,16 +7,6 @@ class Alert extends Component { - /** - * Create a new component instance. - * - * @return void - */ - public function __construct() - { - // - } - /** * Get the view / contents that represent the component. * diff --git a/app/View/Components/AlertDanger.php b/app/View/Components/AlertDanger.php new file mode 100644 index 0000000..990a32e --- /dev/null +++ b/app/View/Components/AlertDanger.php @@ -0,0 +1,20 @@ + + + diff --git a/resources/views/components/alert-info.blade.php b/resources/views/components/alert-info.blade.php new file mode 100644 index 0000000..b5d5647 --- /dev/null +++ b/resources/views/components/alert-info.blade.php @@ -0,0 +1,11 @@ +
+ +
diff --git a/resources/views/components/alert-success.blade.php b/resources/views/components/alert-success.blade.php new file mode 100644 index 0000000..3250083 --- /dev/null +++ b/resources/views/components/alert-success.blade.php @@ -0,0 +1,11 @@ +
+ +
diff --git a/resources/views/components/alert-warning.blade.php b/resources/views/components/alert-warning.blade.php new file mode 100644 index 0000000..bcd9e98 --- /dev/null +++ b/resources/views/components/alert-warning.blade.php @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/resources/views/components/alert.blade.php b/resources/views/components/alert.blade.php index 9cc8f75..a8b5b96 100644 --- a/resources/views/components/alert.blade.php +++ b/resources/views/components/alert.blade.php @@ -14,63 +14,29 @@ @if (session('error')) -
- -
+ + {{ session('error') }} + @endif @if (session('status')) -
- -
+ + {{ session('status') }} + @endif @if (session('success')) -
- -
+ + {{ session('success') }} + @endif @if (isset($errors) && $errors->any()) -
- -
- + + + @endif