@if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif @if (isset($custom_errors)) <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <ul> @foreach ($custom_errors as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif @if(session()->has('custom_error')) <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <strong>Error!</strong> {{ session()->get('custom_error') }} {{--<button type="button" class="close" data-dismiss="modal">×</button>--}} </div> @endif