mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Fix Toastr error display
This commit is contained in:
parent
c53e39ce71
commit
8bcec11817
@ -60,22 +60,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
<script>
|
||||
@if (Session::has('info'))
|
||||
toastr["info"](`{{session('info')}}`, "Info")
|
||||
toastr["info"]("{{session('info')}}", "Info")
|
||||
@endif
|
||||
@if (Session::has('error'))
|
||||
toastr["error"](`{{session('error')}}`, "Error")
|
||||
toastr["error"]("{{session('error')}}", "Error")
|
||||
@endif
|
||||
@if (Session::has('warning'))
|
||||
toastr["warning"](`{{session('warning')}}`, "Warning")
|
||||
toastr["warning"]("{{session('warning')}}", "Warning")
|
||||
@endif
|
||||
@if (Session::has('success'))
|
||||
toastr["success"](`{{session('success')}}`, "Success")
|
||||
toastr["success"]("{{session('success')}}", "Success")
|
||||
@endif
|
||||
|
||||
@if (count($errors) > 0)
|
||||
// Handle Lumen validation errors
|
||||
@foreach ($errors->all() as $error)
|
||||
toastr["error"](`{{$error}}`, "Error")
|
||||
toastr["error"]("{{$error}}", "Error")
|
||||
@endforeach
|
||||
@endif
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user