<script>

    $(document).ready(function() {

        let limitlessNotification = new LimitlessNotification();

        // Default Toasters
        @if(isset($errors)) @foreach($errors->all() as $data) limitlessNotification.set('', "{{ $data }}", 'error'); @endforeach @endif
        @if(isset($infos)) @foreach($infos as $data) limitlessNotification.set('', "{{ $data }}", 'info'); @endforeach @endif
        @if(isset($warnings)) @foreach($warnings as $data) limitlessNotification.set('', "{{ $data }}", 'warning'); @endforeach @endif
        @if(isset($successes)) @foreach($successes as $data) limitlessNotification.set('', "{{ $data }}", 'success'); @endforeach @endif
        @if(isset($hiddens)) @foreach($hiddens as $data) console.log("{{ $data }}"); @endforeach @endif
        @if(isset($error)) limitlessNotification.set('', "{{ $error }}", 'error'); @endif
        @if(isset($success)) limitlessNotification.set('', "{{ $success }}", 'success'); @endif
        @if(isset($warning)) limitlessNotification.set('', "{{ $warning }}", 'warning'); @endif
        @if(isset($info)) limitlessNotification.set('', "{{ $info }}", 'info'); @endif
        @if(isset($hidden)) console.log("{{ $hidden }}"); @endif

        // Session Toasters
        @if(Session::has('errors')) @foreach(Session::get('errors') as $data) limitlessNotification.set('', "{{ $data }}", 'error'); @endforeach @endif
        @if(Session::has('infos')) @foreach(Session::get('infos') as $data) limitlessNotification.set('', "{{ $data }}", 'info'); @endforeach @endif
        @if(Session::has('warnings')) @foreach(Session::get('warnings') as $data) limitlessNotification.set('', "{{ $data }}", 'warning'); @endforeach @endif
        @if(Session::has('successes')) @foreach(Session::get('successes') as $data) limitlessNotification.set('', "{{ $data }}", 'success'); @endforeach @endif
        @if(Session::has('hiddens')) @foreach(Session::get('hiddens') as $data) console.log("{{ $data }}"); @endforeach @endif
        @if(Session::has('error')) limitlessNotification.set('', "{{ Session::get('error') }}", 'error'); @endif
        @if(Session::has('success')) limitlessNotification.set('', "{{ Session::get('success') }}", 'success'); @endif
        @if(Session::has('warning')) limitlessNotification.set('', "{{ Session::get('warning') }}", 'warning'); @endif
        @if(Session::has('info')) limitlessNotification.set('', "{{ Session::get('info') }}", 'info'); @endif
        @if(Session::has('hidden')) console.log("{{ Session::get('hidden') }}"); @endif

    })

</script>
