<?php if(session()->has('RedeemNotFoundError')): ?>
<script>
    swal("This code was not found in the system", "Please try checking again", "warning");
    bulmaToast.toast({
        message: "This code was not found in the system or the code is incorrect.",
        type: "is-danger has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
    });
</script>
<?php endif; ?>

<?php if(session()->has('RedeemClaimedError')): ?>
<script>
    swal("You have already used this code", "Can only be redeemed once per account", "warning");
    bulmaToast.toast({
        message: "This code was not found in the system or the code is incorrect.",
        type: "is-danger has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
    });
</script>
<?php endif; ?>

<?php if(session()->has('RedeemClaimedCompleted')): ?>
<script>
    swal("<?php echo e(session()->get('RedeemClaimedCompleted')); ?> received!", "You can receive your packages in your inventory.", "success");
    bulmaToast.toast({
        message: "Successfully redeemed! <br>You can receive your purchased packages at <a href='<?php echo e(route('claim.index')); ?>'> Storage Bag</a>",
        type: "is-danger has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
    });
</script>
<?php endif; ?>

<?php if(session()->has('moneyNotEnough')): ?>
<script>
    swal("Error: You do not have enough points.", "You cannot purchase this package because there are not enough Points!", "warning");
    bulmaToast.toast({
        message: "You do not have enough Points to purchase this product.",
        type: "is-warning has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
    });
</script>
<?php endif; ?>

<?php if(session()->has('buyComplete')): ?>
<script>
    swal("Package added to inventory!", "You can receive your purchased packages in inventory.", "success");
    bulmaToast.toast({
        message: "Order completed! <br>You can receive your purchased packages at <a href='<?php echo e(route('claim.index')); ?>'> Storage Bag</a>",
        type: "is-warning has-text-left",
        dismissible: true,
        duration: 15000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
</script>
<?php endif; ?>

<?php if(session()->has('claimGetPackage')): ?>
<script>
    swal("Package received!", "Package has been sent to you in game", "success");
    bulmaToast.toast({
        message: "Package received! It will be sent to <?php echo e(Auth::user()->name); ?>",
        type: "is-danger has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
    });
</script>
<?php endif; ?>

<?php if(session()->has('serverError')): ?>
<script>
    swal("Error!", "Unable to connect to server", "error");
    bulmaToast.toast({
        message: "The server cannot connect! But don't worry, your packages are still safe on the system.</a>",
        type: "is-warning has-text-left",
        dismissible: true,
        duration: 15000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
</script>
<?php endif; ?>

<?php if(session()->has('somethingError')): ?>
<script>
    swal("Something is wrong!", "Something seems wrong", "warning");
    bulmaToast.toast({
        message: "Something isn't right! There seems to be some unusual activity.",
        type: "is-warning has-text-left",
        dismissible: true,
        duration: 5000,
        animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
</script>
<?php endif; ?>

<?php if(session()->has('managePackageAdded')): ?>
    <script>
        bulmaToast.toast({
            message: "New package successfully added!",
            type: "is-succcess has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>


<?php if(session()->has('managePackageRemoved')): ?>
    <script>
        bulmaToast.toast({
            message: "Package removed from store!",
            type: "is-danger has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('manageCategoryAdded')): ?>
    <script>
        bulmaToast.toast({
            message: "New package category added!",
            type: "is-success has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('manageCategoryRemoved')): ?>
    <script>
        bulmaToast.toast({
            message: "Successfully deleted package category!",
            type: "is-success has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('managePackageEdited')): ?>
    <script>
        bulmaToast.toast({
            message: "Successfully edited package information!",
            type: "is-success has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('manageCommandsenderSuccess')): ?>
    <script>
        bulmaToast.toast({
            message: "Command successfully sent to server!",
            type: "is-success has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>


<?php if(session()->has('noPermission')): ?>
    <script>
        swal("No permission!", "You do not have permission to use this feature.", "error");
        bulmaToast.toast({
            message: "You do not have permission to access this section!",
            type: "is-danger has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('successfullyUpdateData')): ?>
    <script>
        swal("Information updated successfully!", "Information has been updated", "success");
        bulmaToast.toast({
            message: "Information updated!",
            type: "is-success has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('successfullyTopup')): ?>
    <script>
        swal("Thank you for your support!", "The system has added <?php echo e(number_format(session()->get('successfullyTopup'))); ?> Point to your account.", "success");
        bulmaToast.toast({
            message: "<p><b>[TOPUP]</b> <br> Receive <?php echo e(number_format(session()->get('successfullyTopup'))); ?> Points from top up</p>",
            type: "is-info has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?>

<?php if(session()->has('forumOwnerOnly')): ?>
    <script>
        bulmaToast.toast({
            message: "<p>Only the poster has access to this section</p>",
            type: "is-danger has-text-left",
            dismissible: true,
            duration: 5000,
            animate: { in: "fadeInUp", out: "fadeOutRight" }
        });
    </script>
<?php endif; ?><?php /**PATH C:\xampp8.2\htdocs\MCCMS\resources\views/elements/alert.blade.php ENDPATH**/ ?>