@if(count($errors))
    <div class="col-md-12">
        <div class="alert alert-danger">
            @foreach($errors->all() as $error)
                <li>
                    {{$error}}
                </li>
            @endforeach
        </div>
    </div>

@endif

@if (session('error'))
    <div class="col-md-12">
        <div class="alert alert-danger">{{session('error')}}</div>
    </div>
@endif
