<?php if ($message = Session::get('success')): ?>
<div class="alert alert-success alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <strong>Успех:</strong> <?php echo $message; ?>
</div>
<?php echo Session::forget('success'); ?>
<?php endif; ?>

<?php if ($message = Session::get('error')): ?>
<div class="alert alert-danger alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <strong>Ошибка:</strong> <?php echo $message; ?>
</div>
<?php echo Session::forget('error'); ?>
<?php endif; ?>

<?php if ($message = Session::get('warning')): ?>
<div class="alert alert-warning alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <strong>Внимание:</strong> <?php echo $message; ?>
</div>
<?php echo Session::forget('warning'); ?>
<?php endif; ?>

<?php if ($message = Session::get('info')): ?>
<div class="alert alert-info alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <strong>Информация:</strong> <?php echo $message; ?>
</div>
<?php echo Session::forget('info'); ?>
<?php endif; ?>
