<?php if(Session::has('success.message')): ?>
    <script>
        swal({   title: "<?php echo e(trans('updates.success')); ?>"  , text: "<?php echo e(Session::get('success.message')); ?>", type: "success",  html: true });
    </script>
    <?php elseif(Session::has('error.message')): ?>
    <script>
        swal({   title: "<?php echo e(trans('updates.error')); ?>", text: "<?php echo e(Session::get('error.message')); ?>", type: "error",  html: true });
    </script>
<?php endif; ?>