@if(Session::has('message'))
<div id="infoList" class="alert alert-success alert-dismissible fade show" role="alert">
    <strong class="alert-heading"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 다음과 같이 알려드립니다.</strong>
    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    <ul>
        <li>{!! Session::get('message') !!}</li>
    </ul>
</div>
@endif
@if ($errors->any() || Session::has('error'))
<div id="errorList" class="alert alert-danger alert-dismissible fade show" role="alert">
    <strong class="alert-heading"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 다음과 같은 오류가 발생하였습니다.</strong>
    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    <ul>
        @if(Session::has('error'))
        <li>{{ Session::get('error') }}</li>
        @endisset
        @foreach ($errors->all() as $error)
            <li>{!! $error !!}</li>
        @endforeach
    </ul>
</div>
@endif
