From 43ec3367f68c74965a29004d9afeaae1d9e12ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Tue, 2 Jan 2024 10:37:50 +0100 Subject: [PATCH] add alert --- resources/views/resources/form.blade.php | 68 ++++++++++++------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/resources/views/resources/form.blade.php b/resources/views/resources/form.blade.php index 5a173583..3f818719 100644 --- a/resources/views/resources/form.blade.php +++ b/resources/views/resources/form.blade.php @@ -5,45 +5,45 @@ {{-- Content --}} @section('content') -@if($errors->isNotEmpty()) - - {{ __('Some error occurred when submitting the form!') }} - -@endif + @if($errors->isNotEmpty()) + + {{ __('Some error occurred when submitting the form!') }} + + @endif -
- @csrf - @method($method) -
-
-
-
-

General

-
-
-
- @foreach($fields as $field) - @include($field['template'], $field) - @endforeach + + @csrf + @method($method) +
+
+
+
+

General

+
+
+
+ @foreach($fields as $field) + @include($field['template'], $field) + @endforeach +
-
- -
-
- - {{ __('Cancel') }} -
- @if($model->exists) + +
-
- @csrf - @method('DELETE') - -
+ + {{ __('Cancel') }}
- @endif -
+ @if($model->exists) +
+
+ @csrf + @method('DELETE') + +
+
+ @endif +
@endsection