@php $typeColors = [ 'HORS_CRITERES' => 'danger', 'FAUX_NUMERO' => 'danger', 'INJOIGNABLE' => 'warning', 'DOUBLON' => 'gray', 'DONNEES_INCOMPLETES' => 'warning', 'DEJA_CLIENT' => 'gray', ]; $rejectionType = $value ?? $row->rejection_type; $color = $rejectionType ? ($typeColors[$rejectionType] ?? 'secondary') : null; @endphp @if($rejectionType) {{ $rejectionType }} @else - @endif