Viewing File: /home/ubuntu/route-and-root-backend-base/resources/views/notifications/notify.blade.php

@if(Session::has('flash_error'))

    <script type="text/javascript">

                $(document).ready(function() {

                    toastr.options = {
                        "closeButton": true,
                        "debug": false,
                        "newestOnTop": false,
                        "progressBar": true,
                        "positionClass": "toastr-top-right",
                        "preventDuplicates": false,
                        "onclick": null,
                        "showDuration": "300",
                        "hideDuration": "1000",
                        "timeOut": "5000",
                        "extendedTimeOut": "5000",
                        "showEasing": "swing",
                        "hideEasing": "linear",
                        "showMethod": "fadeIn",
                        "hideMethod": "fadeOut"
                        };

                    toastr.error("{{Session::get('flash_error')}}", "{{ Setting::get('site_name', 'Poshmarket') }}");
                });
    </script> 

@endif 

@if(Session::has('flash_success'))

    <script type="text/javascript">

                $(document).ready(function() {

                    toastr.options = {
                        "closeButton": true,
                        "debug": false,
                        "newestOnTop": false,
                        "progressBar": true,
                        "positionClass": "toastr-top-right",
                        "preventDuplicates": false,
                        "onclick": null,
                        "showDuration": "300",
                        "hideDuration": "1000",
                        "timeOut": "5000",
                        "extendedTimeOut": "5000",
                        "showEasing": "swing",
                        "hideEasing": "linear",
                        "showMethod": "fadeIn",
                        "hideMethod": "fadeOut"
                    };

                    toastr.success("{{Session::get('flash_success')}}", "{{ Setting::get('site_name', 'Poshmarket') }}");
                });
    </script> 

@endif 

@if($errors->any())

    <script type="text/javascript">

                $(document).ready(function() {

                    toastr.options = {
                        "closeButton": true,
                        "debug": false,
                        "newestOnTop": false,
                        "progressBar": true,
                        "positionClass": "toastr-top-right",
                        "preventDuplicates": false,
                        "onclick": null,
                        "showDuration": "300",
                        "hideDuration": "1000",
                        "timeOut": "5000",
                        "extendedTimeOut": "5000",
                        "showEasing": "swing",
                        "hideEasing": "linear",
                        "showMethod": "fadeIn",
                        "hideMethod": "fadeOut"
                    };

                @foreach($errors->all() as $error)
                    toastr.error("{{ $error }}", "{{ Setting::get('site_name') }}");
                @endforeach

            });
    </script> 

@endif
Back to Directory File Manager