@push('css') @endpush @php function getNewsTypeColor($type) { $colors = [ 'general' => 'secondary', 'security_alert' => 'danger', 'market_trend' => 'success', 'claims_update' => 'info', 'legal_update' => 'warning', 'technical_update' => 'primary', 'guidance' => 'dark', 'event' => 'purple' ]; return $colors[$type] ?? 'secondary'; } function truncateText($text, $length) { if (strlen($text) <= $length) return $text; return substr($text, 0, $length) . '...'; } @endphp
{{ truncateText(strip_tags($item['description']), 80) }}
{{ __('labels.no_news_available') }}