@if(Auth::check())
    @push('scripts')
        <script>

            "use strict";

            $(function () {

                //prevents page from reloading, going back, or forward without a prompt if the page has been edited i.e. form filled out
                window.onbeforeunload = function () {

                    return true;
                };
            });
        </script>
    @endpush
@endif
