@extends('layouts.app') @section('title', 'Farmer Dashboard - AgroSmart Pro') @section('content')

👋 Welcome, {{ auth()->user()->name }}!

{{ auth()->user()->district ?? 'Bangladesh' }} • {{ auth()->user()->phone ?? 'No phone' }}

Active Crops

{{ $stats['active_crops'] }}

out of {{ $stats['total_crops'] }} total

Disease Scans

{{ $stats['total_scans'] }}

{{ $stats['disease_detected'] }} detected

Product Checks

{{ $stats['total_checks'] }}

{{ $stats['fake_products'] }} suspicious

Alerts

{{ $stats['unread_alerts'] }}

unread notifications

🔬

Disease Detection

Upload crop image for AI analysis

🛡️

Fake Product Check

Verify product authenticity

💬

Live Chat

Connect with officers

@if($stats['pending_chats'] > 0) {{ $stats['pending_chats'] }} @endif

Recent Crops

@forelse($recentActivity['crops'] as $crop)

{{ $crop->crop_name }}

{{ $crop->crop_name_bn }} • {{ $crop->land_size_decimal }} শতক

{{ ucfirst($crop->status) }} {{ $crop->created_at->diffForHumans() }}

৳{{ $crop->investment_cost ?? '0' }}

@empty

No crops added yet

@endforelse

Recent Alerts

@forelse($recentActivity['alerts'] as $alert)
@if($alert->severity_level === 'critical') 🚨 @elseif($alert->severity_level === 'high') ⚠️ @else ℹ️ @endif

{{ $alert->title }}

{{ $alert->message }}

{{ $alert->created_at->diffForHumans() }}

@empty

No alerts

@endforelse

🌦️ Weather Update

Loading...

Temperature: --°C
Humidity: --%
Condition: --
@endsection @push('scripts') @endpush