<?php if(count($errors) > 0): ?>
<div class="alert alert-danger alert-dismissible fade show" role="alert"><button class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php echo e($error); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div>
<?php endif; ?>

<?php if(!empty(Session::get('success'))): ?>
    <div class="alert alert-primary alert-success fade show" role="alert"><button class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
    <?php
        $message= Session::get('success');
        if($message){
            echo $message;
            Session::put('success',null);
        }
    ?>
    </div>
 <?php endif; ?>

<?php if(!empty(Session::get('failed'))): ?>
    <div class="alert alert-danger alert-dismissible fade show" role="alert"><button class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
        <?php
            $message_failed= Session::get('failed');
            if($message_failed){
                echo $message_failed;
                Session::put('failed',null);
                }
        ?>
    </div>
 <?php endif; ?><?php /**PATH C:\xampp\htdocs\TGP-hospital-site\resources\views/components/alert.blade.php ENDPATH**/ ?>