@if(Session::has('success'))
    <div class="myalert alert-float alert alert-success alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><span aria-hidden="true">&times;</span></button>
        {{Session::get('success')}}
    </div>
@endif
@if(Session::has('dismiss'))
    <div class="myalert alert-float alert alert-danger alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><span aria-hidden="true">&times;</span></button>
        {{Session::get('dismiss')}}
    </div>
@endif
@if(count($errors) > 0)
    <div class="myalert alert-float alert alert-danger alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><span aria-hidden="true">&times;</span></button>
        <ul class="list-unstyled">
            @foreach($errors->all() as $error)
                <li>
                    {{ $error }}
                </li>
            @endforeach
        </ul>
    </div>
@endif
