{{--error--}}
@if($errors->any())
    <div class="alert alert-dismissible alert-danger">
        <button class="close" type="button" data-dismiss="alert">×</button>
        <ul>
            @foreach($errors->all() as $error)
                <li>
                    {{$error}}
                </li>
            @endforeach

        </ul>
    </div>
@endif()

{{--save message--}}
@if(session('success'))
    <div class="alert alert-dismissible alert-success">
        <button class="close" type="button" data-dismiss="alert">×</button>
        {{session('success')}}
    </div>
@endif
@if(session('warning'))

    <div class="alert alert-dismissible alert-danger">
        <button class="close" type="button" data-dismiss="alert">×</button>
        یک خطا رخ داده است:{{session('warning')}}
    </div>
@endif
