@extends('emails.layouts.farm')
@section('content')
{{ $alertIcon ?? '⚠️' }} {{ $title }}
@if(isset($urgency))
{{ ucfirst($urgency) }} Priority
@endif
🌤️ Current Weather Conditions
@if(isset($temperature))
Temperature
{{ $temperature }}°F
@endif
@if(isset($humidity))
Humidity
{{ $humidity }}%
@endif
@if(isset($windSpeed))
Wind Speed
{{ $windSpeed }} mph
@endif
@if(isset($precipitation))
Precipitation
{{ $precipitation }}%
@endif
📋 Alert Details
{{ $message }}
@if(isset($recommendations) && count($recommendations) > 0)
💡 Recommended Actions
@foreach($recommendations as $recommendation)
- {{ $recommendation }}
@endforeach
@endif
@if(isset($impactedPlants) && count($impactedPlants) > 0)
🫐 Affected Plants
@foreach($impactedPlants as $plant)
{{ $plant['variety'] ?? 'Plant' }} - {{ $plant['field_location'] ?? 'Unknown Location' }}
Age: {{ $plant['age_months'] ?? 'Unknown' }} months | Status: {{ $plant['status'] ?? 'Unknown' }}
@endforeach
@endif
@if(isset($forecast) && count($forecast) > 0)
📅 Weather Forecast
@foreach($forecast as $day)
{{ $day['date'] }}: {{ $day['description'] ?? '' }}
High: {{ $day['high'] ?? 'N/A' }}°F | Low: {{ $day['low'] ?? 'N/A' }}°F
@if(isset($day['precipitation']))
| Rain: {{ $day['precipitation'] }}%
@endif
@endforeach
@endif
📧 Notification Info:
Sent at {{ $sentAt ?? now()->format('M j, Y g:i A') }} |
Alert Type: {{ $alertType ?? 'Weather Alert' }}
@if(isset($nextCheck))
| Next Check: {{ $nextCheck }}
@endif
@endsection