<?php if(Session::has('message')): ?>
    <div class="alert <?php echo e(Session::get('alert-class', 'alert-info')); ?> alert-dismissible alert-fixed" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                    aria-hidden="true">&times;</span></button>
        <?php echo e(Session::get('message')); ?>

    </div>
<?php endif; ?>

<?php if(Session::has('notify')): ?>
    <?php
    $message = Session::get('notify.message');
    $position = (Session::get('notify.position') != null) ? Session::get('notify.position') : 'top-right';
    $alert = Session::get('notify.alert');
    ?>
    <script>
        $(function () {
            notifyAlert('<?php echo $message; ?>', '<?php echo e($position); ?>', '<?php echo e($alert); ?>');
        });
    </script>
<?php endif; ?>