@extends('layouts.app') @section('title', 'Equipment & Infrastructure Planning - Blackberry Farm Analytics') @section('content')
← Analytics Dashboard 💰 Cash Flow Analysis ⚖️ Break-Even Analysis 🎯 Scenario Comparison

⚙️ Planning Parameters

{{ number_format($currentPlants) }}
Current Plants
Starting capacity
{{ number_format($targetPlants) }}
Target Plants
{{ $timelineYears }}-year goal
{{ number_format($equipmentData['expansion']['additional_plants']) }}
Growth Required
{{ number_format($equipmentData['expansion']['growth_percentage'], 1) }}% increase
${{ number_format($equipmentData['total_investment']) }}
Total Investment
Equipment & infrastructure

🛠️ Equipment Investment Breakdown

@foreach($equipmentData['categories'] as $category => $data) @php $categoryColors = [ 'Irrigation' => 'blue', 'Harvesting' => 'green', 'Processing' => 'orange', 'Infrastructure' => 'purple' ]; $color = $categoryColors[$category] ?? 'today'; @endphp

@if($category === 'Irrigation') 💧 @elseif($category === 'Harvesting') 🫐 @elseif($category === 'Processing') ⚙️ @elseif($category === 'Infrastructure') 🏗️ @endif {{ $category }}

Investment: ${{ number_format($data['cost']) }}
Capacity: {{ number_format($data['capacity']) }} plants
Annual Savings: ${{ number_format($data['annual_savings']) }}
Payback Period: {{ number_format($data['payback_years'], 1) }} years
Equipment Items:
    @foreach($data['items'] as $item)
  • {{ $item['name'] }} - ${{ number_format($item['cost']) }}
  • @endforeach
@php $priority = $data['payback_years'] <= 2 ? 'High' : ($data['payback_years'] <= 4 ? 'Medium' : 'Low'); $priorityColor = $priority === 'High' ? 'var(--berry-red)' : ($priority === 'Medium' ? 'var(--warning)' : 'var(--leaf-green)'); @endphp
{{ $priority }} Priority
@endforeach

📅 Recommended Investment Timeline

@foreach($equipmentData['timeline'] as $year => $data)

Year {{ $year }}

Investment: ${{ number_format($data['investment']) }}
Plant Capacity: {{ number_format($data['plant_capacity']) }}
Annual Savings: ${{ number_format($data['annual_savings']) }}
Focus Areas:
    @foreach($data['focus_areas'] as $area)
  • {{ $area }}
  • @endforeach
@endforeach

📊 Equipment ROI Analysis

💳 Financing Analysis

@foreach($equipmentData['financing_options'] as $option => $data) @php $optionColors = [ 'Cash Purchase' => 'green', 'Equipment Loan' => 'blue', 'Lease Option' => 'orange' ]; $color = $optionColors[$option] ?? 'today'; @endphp

@if($option === 'Cash Purchase') 💰 @elseif($option === 'Equipment Loan') 🏦 @elseif($option === 'Lease Option') 📋 @endif {{ $option }}

Initial Cost: ${{ number_format($data['initial_cost']) }}
Monthly Payment: ${{ number_format($data['monthly_payment']) }}
Total Cost: ${{ number_format($data['total_cost']) }}
Net ROI: {{ number_format($data['net_roi'], 1) }}%
Benefits:
{{ $data['benefits'] }}
Considerations:
{{ $data['considerations'] }}
@endforeach

💡 Implementation Recommendations

@php $recommendations = [ "Phase investments over {$timelineYears} years to manage cash flow and risk", "Prioritize equipment with payback periods under 3 years", "Consider used equipment for 20-30% cost savings on non-critical items", "Negotiate bulk purchase discounts for irrigation systems", "Plan equipment purchases during off-season for better pricing", "Maintain 15% contingency budget for unexpected costs", "Research available grants and subsidies for agricultural equipment", "Consider shared ownership or cooperative purchasing for expensive items" ]; $highPriorityCategories = collect($equipmentData['categories']) ->filter(fn($data) => $data['payback_years'] <= 2) ->keys() ->take(2); if ($highPriorityCategories->isNotEmpty()) { $recommendations[] = "Focus immediate investment on " . $highPriorityCategories->implode(' and ') . " equipment"; } if ($equipmentData['total_investment'] > 100000) { $recommendations[] = "Consider SBA loans or agricultural financing programs for large capital investments"; } @endphp
@foreach($recommendations as $index => $recommendation)

{{ $index + 1 }}. {{ $recommendation }}

@endforeach
🎯 Recommended Action Plan:
  1. Year 1: Invest in highest ROI equipment ({{ collect($equipmentData['categories'])->sortBy('payback_years')->keys()->first() }})
  2. Year 2-3: Scale irrigation and processing capacity
  3. Year {{ max(3, $timelineYears - 1) }}-{{ $timelineYears }}: Infrastructure expansion and automation
  4. Ongoing: Monitor ROI and adjust investment priorities

⚙️ Planning Assumptions

🔧 Modify Parameters
Growth Parameters:
  • Current: {{ number_format($currentPlants) }} plants
  • Target: {{ number_format($targetPlants) }} plants
  • Timeline: {{ $timelineYears }} years
Financial Assumptions:
  • Equipment depreciation: 7 years
  • Interest rate: 6.5% APR
  • Inflation: 3% annually
Operational Factors:
  • Labor efficiency: 20% improvement
  • Yield improvement: 15% with automation
  • Maintenance: 5% of equipment value
@endsection @push('scripts') @endpush