@if (session('status'))
    @php
        $sessStatuses = session()->get('status');
        $statuses = is_array($sessStatuses) ? $sessStatuses : [$sessStatuses];
    @endphp
    <div class="alert alert-block alert-success">
        <ul class="list-unstyled">
            @foreach ($statuses as $status)
                <li>{{ $status }}</li>
            @endforeach
        </ul>
    </div>
@endif

@if (count($errors) > 0)
    @php
        $errors = is_array($errors) ? $errors : $errors->all();
    @endphp
    <div class="alert alert-block alert-danger">
        <ul class="list-unstyled">
            @foreach($errors as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
