<?php 
$mSuccess = session()->getFlashdata('success'); 
$mError = session()->getFlashdata('error'); 
?>

<?php if ($mSuccess) { ?>
    <div class="alert alert-success alert-dismissible">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        <strong><?php echo $mSuccess; ?></strong>
    </div>
<?php } ?>

<?php if ($mError) { ?>
    <div class="alert alert-danger alert-dismissible">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        <strong><?php echo $mError; ?></strong>
    </div>
<?php } ?>
