@if ($errors->any())
<div class="alert alert-danger alert-dismissible bg-danger text-white border-0 fade show"
    role="alert">
    <button type="button" class="close" data-dismiss="alert"
        aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
    @foreach ($errors->all() as $error)
          <li>{!! $error !!}</li>
    @endforeach
</div>
@endif

@if (Session::has('admin-error') || Session::has('admin-sucsess') || Session::has('success_message') || Session::has('error_message'))

@yield('name')
    <div class="row">

        <div class="col-xl-6">


            <div class="tab-content">
                <div class="tab-pane show active" id="dismissing-alerts-preview">
                    @if (Session::has('admin-sucsess'))
                    <div class="alert alert-success bg-success text-white border-0 fade show" role="alert">
                        <strong>{{ Session::get('admin-sucsess') }}</strong>
                    </div>
                    @endif

                    @if (Session::has('admin-error'))
                    <div class="alert alert-danger bg-danger text-white border-0 fade show" role="alert">
                        {{ Session::get('admin-error')}}
                    </div>
                    @endif
                </div> <!-- end preview-->

                @if(Session::has('success_message'))
                <div style="text-align: center" class="alert alert-success notification-alert">
                  {{ Session::get('success_message') }}
                </div>
                @elseif(Session::has('error_message'))
                <div style="text-align: center" class="alert alert-danger notification-alert">
                  {{ Session::get('error_message') }}
                </div>
                @endif


            </div> <!-- end tab-content-->


        </div> <!-- end col-->

    </div>

@endif