<link rel="stylesheet" href="https://cdn.jsdelivr.net/sweetalert2/6.1.1/sweetalert2.min.css">
<script src="https://cdn.jsdelivr.net/sweetalert2/6.1.1/sweetalert2.min.js"></script>

<section class="scrollable padder">
    <?php if ($this->session->flashdata('error') != null) { ?>

		<script>
			swal("error!", '<?php echo $this->session->flashdata('error'); ?>', "error")
		</script>

        <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <?php echo $this->session->flashdata('error'); ?>
        </div>
    <?php } ?>

    <?php if ($this->session->flashdata('success') != null) { ?>
        <script>
            swal("Sucesso!", '<?php echo $this->session->flashdata('success'); ?>', "success")
        </script>

        <div class="alert alert-success">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
            <h3 class="text-success"><i class="fa fa-check-circle"></i> Sucesso</h3>
            <?php echo $this->session->flashdata('success'); ?>
        </div>
    <?php } ?>


</section>





