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

📊 ROI Scenario Analysis

@php $currentScenario = $roiData['scenarios'][$scenario] @endphp
{{ number_format($currentScenario['plants']) }}
Total Plants
{{ ucwords(str_replace('_', ' ', $scenario)) }}
${{ number_format($currentScenario['annual_revenue']) }}
Annual Revenue
${{ number_format($currentScenario['annual_revenue'] / $currentScenario['plants'], 2) }}/plant
${{ number_format($currentScenario['annual_costs']) }}
Annual Costs
${{ number_format($currentScenario['annual_costs'] / $currentScenario['plants'], 2) }}/plant
{{ $currentScenario['roi'] }}%
ROI Percentage
${{ number_format($currentScenario['profit']) }} profit

📈 ROI Scenario Comparison

💰 Revenue vs Costs by Scenario

📊 ROI Comparison

📈 Profit Scaling

🎯 Investment vs Returns

📋 Detailed Scenario Analysis

@foreach($roiData['scenarios'] as $scenarioName => $data) @endforeach
Scenario Plant Count Annual Revenue Annual Costs Annual Profit ROI % Revenue Multiple Profit/Plant
{{ ucwords(str_replace('_', ' ', $scenarioName)) }}
@if($scenarioName == $scenario)
← Current Analysis
@endif
{{ number_format($data['plants']) }}
${{ number_format($data['annual_revenue']) }}
${{ number_format($data['annual_costs']) }}
${{ number_format($data['profit']) }}
{{ $data['roi'] }}%
@if($scenarioName == 'current') 1.0x @elseif($scenarioName == 'expansion_1000') {{ $roiData['comparison']['revenue_multiplier_1000'] }}x @else {{ $roiData['comparison']['revenue_multiplier_10000'] }}x @endif
${{ number_format($data['profit'] / $data['plants'], 2) }}

💵 Investment Requirements

@if($scenario != 'current')
Initial Investment Required @if($scenario == 'expansion_1000') ${{ number_format($roiData['comparison']['investment_required_1000']) }} @else ${{ number_format($roiData['comparison']['investment_required_10000']) }} @endif
Payback Period @if($scenario == 'expansion_1000') {{ $roiData['comparison']['payback_period_1000'] }} years @else {{ $roiData['comparison']['payback_period_10000'] }} years @endif
@endif
Annual Profit ${{ number_format($currentScenario['profit']) }}
Revenue per Plant ${{ number_format($currentScenario['annual_revenue'] / $currentScenario['plants'], 2) }}

⚠️ Risk Assessment

@php $riskLevel = $scenario == 'current' ? 'Low' : ($scenario == 'expansion_1000' ? 'Medium' : 'High'); $riskColor = $scenario == 'current' ? 'var(--leaf-green)' : ($scenario == 'expansion_1000' ? '#FF8F00' : 'var(--berry-red)'); @endphp
{{ $riskLevel }}
Investment Risk Level
Key Risk Factors:
    @if($scenario == 'current')
  • Weather variability
  • Market price fluctuations
  • Pest/disease pressure
  • Labor availability
  • @elseif($scenario == 'expansion_1000')
  • High initial capital requirement
  • Market saturation risk
  • Operational complexity increase
  • Labor scaling challenges
  • Equipment investment needs
  • @else
  • Very high capital investment
  • Market demand uncertainty
  • Complex operations management
  • Significant labor force required
  • Infrastructure development needs
  • Regulatory compliance complexity
  • @endif
Mitigation Strategies:
  • Diversify variety portfolio
  • Implement IPM practices
  • Secure long-term contracts
  • Phase expansion gradually
  • @if($scenario != 'current')
  • Secure adequate financing
  • Invest in automation
  • Develop distribution channels
  • @endif

📊 5-Year Financial Projections

@php $multiplier = $scenario == 'current' ? 1 : ($scenario == 'expansion_1000' ? 25 : 250); $years = []; for($i = 1; $i <= 5; $i++) { $yearRevenue = $currentScenario['annual_revenue'] * (1 + ($i * 0.03)); // 3% annual growth $yearCosts = $currentScenario['annual_costs'] * (1 + ($i * 0.02)); // 2% annual cost increase $years[] = [ 'year' => $i, 'revenue' => $yearRevenue, 'costs' => $yearCosts, 'profit' => $yearRevenue - $yearCosts ]; } @endphp @foreach($years as $year)
Year {{ $year['year'] }} ${{ number_format($year['profit']) }}
Revenue: ${{ number_format($year['revenue']) }} Costs: ${{ number_format($year['costs']) }}
@endforeach
5-Year Total Profit ${{ number_format(array_sum(array_column($years, 'profit'))) }}

🧮 ROI Calculation Methodology

⚙️ Configure Parameters
Revenue Assumptions:
Cost Assumptions:
ROI Formula:
ROI % = ((Annual Revenue - Annual Costs) / Annual Costs) × 100

Important: These ROI calculations are based on current market conditions and historical performance. Actual returns may vary significantly due to weather events, market fluctuations, pest/disease pressure, and changes in operating costs. Consider these projections as planning guidelines rather than guaranteed outcomes.

@endsection @push('scripts') @endpush