@foreach (['danger', 'warning', 'info', 'error'] as $msg)
@php
$class = $msg;
if ($msg == 'error') {
$class = 'danger';
}
@endphp
@if(Session::has('alert-' . $msg))
{{ trans('messages.' . $msg) }}
@endif
@endforeach
@yield('content')
{!! preg_replace('/[\r\n]+/', ' ', Session::get('alert-' . $msg)) !!}