@props([ 'type' => 'info', 'full' => $type === 'help' ? true : false, 'sync' => false, 'noIcon' => false, ]) @php($colorClasses = match($type) { 'error' => 'bg-red-extra-light border border-red-light text-navy', 'success' => 'bg-green-extra-light border border-green-light text-navy', 'info' => 'text-blue-dark font-medium', 'warning' => 'bg-orange-extra-light border border-orange-light text-navy', 'help' => 'bg-sky-extra-light text-navy border border-sky-light', default => '', }) @php($icon = match($type) { 'error' => 'heroicon-s-exclamation-circle', 'success' => 'heroicon-s-check-circle', 'info' => 'heroicon-s-information-circle', 'warning' => 'heroicon-s-exclamation-triangle', 'help' => 'heroicon-s-information-circle', default => '', }) @php($iconClass = match($type) { 'error' => 'text-red', 'success' => 'text-green', 'info' => 'text-blue-dark', 'warning' => 'text-orange', 'help' => 'text-blue-dark', default => '', })
except('class') }} > @unless($noIcon) @if ($sync) @else @endif @endunless