@extends('layouts.app') @section('title', 'Weather Correlation Analysis - Blackberry Farm Analytics') @section('content')
← Analytics Dashboard 📈 Growth Projections 🫐 Yield Forecasting 💰 ROI Analysis

📅 Analysis Period

🌤️ Weather Summary ({{ $startDate }} to {{ $endDate }})

{{ $correlations['weather_summary']['avg_temperature'] ?? 'N/A' }}°F
Average Temperature
Daily average
{{ $correlations['weather_summary']['total_rainfall'] ?? 'N/A' }}"
Total Rainfall
Precipitation period
{{ $correlations['weather_summary']['avg_humidity'] ?? 'N/A' }}%
Average Humidity
Relative humidity
{{ $correlations['weather_summary']['frost_days'] ?? 'N/A' }}
Frost Days
Below 32°F

🌱 Plant Growth Summary

{{ $correlations['growth_summary']['avg_growth_rate'] ?? 'N/A' }}"
Average Plant Height
Current average
{{ $correlations['growth_summary']['avg_health_score'] ?? 'N/A' }}/10
Average Health Score
Plant health rating
{{ $correlations['growth_summary']['measurements_count'] ?? 'N/A' }}
Total Measurements
Data points collected
@if(isset($correlations['growth_summary']['measurements_count']) && $correlations['growth_summary']['measurements_count'] > 0) {{ round($correlations['growth_summary']['measurements_count'] / max(1, \Carbon\Carbon::parse($startDate)->diffInDays(\Carbon\Carbon::parse($endDate))), 1) }} @else N/A @endif
Measurements per Day
Data collection rate

📊 Weather-Plant Correlation Analysis

🌡️ Temperature vs Growth

💧 Rainfall Impact

📈 Weather Trends

📊 Correlation Summary

📊 Weather-Plant Correlations Summary

🌡️ Temperature Impact

{{ isset($correlations['temperature_correlation']['correlation_coefficient']) ? round($correlations['temperature_correlation']['correlation_coefficient'], 2) : 'N/A' }}

Temperature vs Growth Correlation

{{ $correlations['temperature_correlation']['impact_on_yield'] ?? 'Analysis in development' }}

💧 Rainfall Impact

{{ isset($correlations['rainfall_correlation']['correlation_coefficient']) ? round($correlations['rainfall_correlation']['correlation_coefficient'], 2) : 'N/A' }}

Rainfall vs Growth Correlation

{{ $correlations['rainfall_correlation']['impact_on_yield'] ?? 'Analysis in development' }}

💨 Humidity Impact

{{ isset($correlations['humidity_correlation']['correlation_coefficient']) ? round($correlations['humidity_correlation']['correlation_coefficient'], 2) : 'N/A' }}

Humidity vs Health Correlation

@if(isset($correlations['humidity_correlation']['correlation_coefficient']) && is_numeric($correlations['humidity_correlation']['correlation_coefficient'])) @if($correlations['humidity_correlation']['correlation_coefficient'] > 0.7) Strong positive correlation @elseif($correlations['humidity_correlation']['correlation_coefficient'] > 0.3) Moderate correlation @elseif($correlations['humidity_correlation']['correlation_coefficient'] > -0.3) Weak correlation @else Negative correlation @endif @endif

🔍 Correlation Analysis Insights

Understanding the Data:
Correlation Interpretation:

Note: Weather correlation analysis is a developing feature. More sophisticated statistical correlations and predictive models will be added as more data is collected over time. Current analysis provides basic insights into weather-plant relationships.

@endsection @push('scripts') @endpush