{{-- Pending data points line, styled like the other status lines on the application page (bold label + value), so it stays neutral and takes a single row. Expected variables: $alert_title - label shown before the data points $alert_points - array of data point labels, or a comma separated string --}} @php // Callers pass either an array of labels or a pre-joined comma separated string. $points = is_array($alert_points) ? $alert_points : preg_split('/\s*,\s*/', (string) $alert_points, -1, PREG_SPLIT_NO_EMPTY); $points = array_values(array_filter(array_map('trim', $points), function ($point) { return $point !== ''; })); @endphp @if(count($points) > 0)
{{ $alert_title }} ({{ count($points) }}): {{ implode(', ', $points) }}
@endif