@php $banners = [ ['show' => session('status'), 'text' => session('status'), 'icon' => 'check-circle', 'class' => 'border-leaf-200 bg-leaf-50 text-leaf-800', 'iconClass' => 'text-leaf-600'], ['show' => session('warning'), 'text' => session('warning'), 'icon' => 'alert', 'class' => 'border-amber-200 bg-amber-50 text-amber-800', 'iconClass' => 'text-amber-600'], ]; @endphp @foreach ($banners as $banner) @continue(! $banner['show'])

{{ $banner['text'] }}

@endforeach @if ($errors->any())
@if ($errors->count() === 1)

{{ $errors->first() }}

@else

Please correct the following:

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@endif