Error and success messages from form builder

This commit is contained in:
2020-05-06 23:16:34 +01:00
parent 8d79345095
commit f52b249834
4 changed files with 65 additions and 7 deletions

View File

@@ -8,6 +8,28 @@
@stop
@section('js')
@if (session()->has('success'))
<script>
toastr.success("{{session('success')}}")
</script>
@elseif(session()->has('error'))
@foreach(session('error') as $error)
<script>
toastr.error("{{$error}}")
</script>
@endforeach
@endif
@stop
@section('content')
<div class="row">
@@ -41,6 +63,7 @@
<div class="card-footer text-center">
<button onclick="save()" type="button" class="btn btn-success">Save Form</button>
<button type="button" class="btn btn-info">Form List</button>
</div>