<div class="validation_messages">
    <?php if(Session::has('error')): ?>


    <?php if(Session::has('data')): ?>
    		<?php if(Session::get('data') == 'checkerror'): ?>
    			<div id="check">

            	<!-- <?php echo Session::get('success'); ?> -->
            </div>
    		<?php endif; ?>
    	<?php else: ?>
    		<div class="alert alert-danger alert-dismissable">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
				<?php echo e(Session::get('error')); ?>

			</div>
    	<?php endif; ?>

       <!--  <ul>
        <?php if(is_array(Session::get('error'))): ?>
            <?php foreach(Session::get('error') as $error): ?>
                <li class="error"><?php echo implode('</li><li class="error" >',$error); ?></li>
            <?php endforeach; ?>
        </ul>
        <?php else: ?>
            <div class="alert alert-danger alert-dismissable">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
				<?php echo e(Session::get('error')); ?>

			</div> -->
        <?php endif; ?>

    <?php endif; ?>
     <!-- check for flash notification message -->
    <?php if(Session::has('notice')): ?>

            <div class="alert alert-warning alert-dismissable">
            	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
            	<?php echo Session::get('notice'); ?>

           	</div>

    <?php endif; ?>

     <!-- check for flash notification message -->
    <?php if(Session::has('success')): ?>

    	<?php if(Session::has('data')): ?>
    		<?php if(Session::get('data') == 'Check'): ?>
    			<div id="check">

            	<!-- <?php echo Session::get('success'); ?> -->
            </div>
    		<?php endif; ?>
    	<?php else: ?>
    		<div class="alert alert-success alert-dismissable">
            	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
            	<?php echo Session::get('success'); ?>

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

</div>
