@if(session('status'))
    @php($st = session('status'))
    <div class="alert {{ is_array($st) && empty($st['success']) ? 'alert-danger' : 'alert-success' }}" style="margin-bottom:16px;">
        <i class="fa {{ is_array($st) && empty($st['success']) ? 'fa-exclamation-circle' : 'fa-check-circle' }}"></i>
        {{ is_array($st) ? ($st['msg'] ?? '') : $st }}
    </div>
@endif
@if($errors->any())
    <div class="alert alert-danger" style="margin-bottom:16px;">
        <i class="fa fa-exclamation-circle"></i>
        @foreach($errors->all() as $e) {{ $e }}<br>@endforeach
    </div>
@endif
