HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/be.naniguide.com/storage/framework/views/d298121cfce357d474273cd7871ad720.php
<?php if(count($notifications)): ?>
    <div class="mt-4">
        <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php echo $__env->make('elements._notification', [
                'level' => $n->level,
                'title' => $n->title,
                'message' => strip_tags($n->message),
                'debug' => $n->debug,
                'params' => ['id' => $n->uid, 'data-type' => 'admin-notification']
            ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php endif; ?>

<script>
    $('div[data-type="admin-notification"]').click(function() {
        var confirmed = confirm('<?php echo e(trans('messages.admin.dashboard.notification_delete_confirm'), false); ?>');
        if (confirmed) {
            var element = $(this);
            element.fadeOut(4000);
            $.ajax("<?php echo e(url("notifications"), false); ?>/" + this.id + "/hide", {
                method: 'POST',
                data: {_token: CSRF_TOKEN}
            }).done(function(data, textStatus, jqXHR) { // jqXHR.status == 200
                element.stop(); // stop fading, then fade again faster!
                element.fadeOut(200);
            }).fail(function(jqXHR, textStatus, errorThrown) { // jqXHR.status = 5xx hoac 4xx
                alert('Something went wrong, cannot delete notification');
                element.stop();
                element.show();
            });
        }
    });
</script><?php /**PATH /home/xedaptot/be.naniguide.com/resources/views/admin/notifications/_top.blade.php ENDPATH**/ ?>