@if ($message = Session::get('success'))
<script type="text/javascript">
new Notify({
    title: 'Success',
    text: "{{ $message }}",
    autoclose: true,
    autotimeout: 5000,
    status: 'success'
})
</script>
@endif

@if ($message = Session::get('error'))
<script type="text/javascript">
new Notify({
    title: 'Error',
    text: "{{ $message }}",
    autoclose: true,
    autotimeout: 5000,
    status: 'error'
})
</script>
@endif

@if ($message = Session::get('warning'))
<script type="text/javascript">
new Notify({
    title: 'Warning',
    text: "{{ $message }}",
    autoclose: true,
    autotimeout: 5000,
    status: 'warning'
})
</script>
@endif

@if ($message = Session::get('info'))
<script type="text/javascript">
new Notify({
    title: 'Warning',
    text: "{{ $message }}",
    autoclose: true,
    autotimeout: 5000,
    status: 'warning'
})
</script>
@endif

@if ($errors->any())
<script type="text/javascript">
new Notify({
    title: 'Error',
    text: "Please check the form below for errors",
    autoclose: true,
    autotimeout: 5000,
    status: 'error'
})
</script>
@endif