<?php
/**
* status.blade.php
* Ruta:              /transito/app/views/messages/status.blade.php
* Fecha Creación:    17/Dic/2014
*
* Interfaz que muestra los posibles mensajes de notificacion en las vistas
* del aplicativo
*
* @author           Michael Ortiz <michael.ortiz@turrisystem.com>
* @copyright        2014 Michael Ortiz
* @license          GPL 2 or later
* @version          2014-12-17
*
*/
?>

        <?php if(Session::has('message')): ?>
            <div class="alert alert-success alert-dismissible" role="alert">
              <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <strong>Notificación!</strong> <?php echo Session::get('message'); ?>

            </div>
        <?php endif; ?>

        <?php if(Session::has('alert')): ?>
            <div class='alert alert-danger alert-dismissable'>
            <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>
            <strong>Alerta: <?php echo Session::get('alert'); ?></strong>
            </div>
        <?php endif; ?>
        
        <?php if(isset($errors) && count($errors->all())>0): ?>
            <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss='alert' aria-hidden='true'>&times;</button>
            <stron>Error:</stron>
            <ul>
            <?php foreach($errors->all('<li>:message</li>') as $message): ?>
            <?php echo $message; ?>

            <?php endforeach; ?>
            </ul>
            </div>
        <?php endif; ?>

        <!-- -->
        <?php if(Session::has('error')): ?>
            <div class="alert alert-danger alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">
                        Close
                    </span>
                </button>
                <?php echo Session::get('error'); ?>

            </div>
        <?php endif; ?>

