@extends('layouts.app') @section('title', 'Dashboard') @section('content')

Welcome back, {{ auth()->user()->name }}

Here's where your crop plans stand today.

New Crop Plan
{{-- Risk indicator cards --}}
Suitable
{{ $riskCounts['suitable'] }}
Risky
{{ $riskCounts['risky'] }}
Not Suitable
{{ $riskCounts['not_suitable'] }}
Total Plans
{{ $riskCounts['total'] }}
{{-- Plans table --}}

Your Crop Plans

@if($plans->isEmpty())

No crop plans yet. Create one to get started.

Create your first plan
@else
@foreach($plans as $plan) @endforeach
Plan Crop Location Month Status
{{ $plan->name }} {{ $plan->crop }} {{ $plan->location }} {{ date('M', mktime(0,0,0,$plan->planting_month,1)) }} @if($plan->latest_feasibility_label === 'suitable') Suitable @elseif($plan->latest_feasibility_label === 'risky') Risky @elseif($plan->latest_feasibility_label === 'not_suitable') Not Suitable @else Not analyzed @endif View
@if($plans->count() >= 8) @endif @endif
@endsection