<div class="">
    <?php if($message = Session::get('success')): ?>

    <div class="alert alert-success alert-block">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <i class="icon fa fa-check"></i> <?php echo e($message); ?>


    </div>

    <?php endif; ?>


    <?php if($message = Session::get('error')): ?>

    <div class="alert alert-danger alert-block">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <i class="icon fa fa-ban"></i> <?php echo e($message); ?>


    </div>

    <?php endif; ?>


    <?php if($message = Session::get('warning')): ?>

    <div class="alert alert-warning alert-block">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <i class="icon fa fa-exclamation-triangle"></i> <?php echo e($message); ?>


    </div>

    <?php endif; ?>


    <?php if($message = Session::get('info')): ?>

    <div class="alert alert-info alert-block">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <i class="icon fa fa-info"></i> <?php echo e($message); ?>


    </div>

    <?php endif; ?>

    <?php if($errors->any()): ?>

    <div class="alert alert-danger">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <i class="icon fa fa-ban"></i> Please check the form below for errors
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>

    </div>

    <?php endif; ?>


</div>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script>
    $(document).ready(function () {
        var successMessage = $(".alert-success");
        if (successMessage.length) {
            successMessage.fadeIn();
            setTimeout(function () {
                successMessage.fadeOut();
            }, 3000); // 3000 milliseconds = 3 seconds
        }
    });
</script>
<?php /**PATH /home/kart/retirement.creatorkart.com/retirement/resources/views/partials/alert.blade.php ENDPATH**/ ?>