@foreach($predictions['alerts'] ?? [
['type' => 'warning', 'title' => 'Drought Stress Predicted', 'message' => 'ML model predicts 15 plants will experience drought stress in next 2 weeks', 'confidence' => 87, 'action' => 'Increase irrigation schedule'],
['type' => 'info', 'title' => 'Optimal Harvest Window', 'message' => 'Price and ripeness models suggest best harvest window: July 18-25', 'confidence' => 92, 'action' => 'Schedule harvest crew'],
['type' => 'success', 'title' => 'Resource Optimization', 'message' => 'ML suggests 23% efficiency gain with recommended resource adjustments', 'confidence' => 84, 'action' => 'Apply optimizations']
] as $alert)
{{ $alert['type'] === 'warning' ? 'â ī¸' : ($alert['type'] === 'info' ? 'âšī¸' : 'â
') }} {{ $alert['title'] }}
{{ $alert['confidence'] }}% confidence
{{ $alert['message'] }}
@endforeach