@extends('layouts.main') @section('main-container')
WHS Snapshot: Quick Glance
Updated: {{ now()->format('d M, Y') }}
{{-- total --}}
Total Applications
{{ $total_master ?? 0 }}
{{-- approved --}}
Approved
{{ $approved_count ?? 0 }}
{{-- pending --}}
Pending
{{ $pending_count ?? 0 }}
{{-- rejected --}}
Rejected
{{ $rejected_count ?? 0 }}
{{-- needs correction --}}
Needs Correction
{{ $needs_correction_count ?? 0 }}
{{-- features --}} @php $featureColors = ['blue','green','yellow','purple','orange','red']; $compact = [ ['k'=>'pre_work_levels_count','t'=>'Pre Work Levels'], ['k'=>'post_levels_count','t'=>'Post Levels'], ['k'=>'quantity_calculations_count','t'=>'Quantity Calculations'], ['k'=>'measurement_books_count','t'=>'Measurement Books'], ['k'=>'billapprovals_count','t'=>'Bill Approvals'], ['k'=>'asset_handovers_count','t'=>'Asset Handovers'] ]; @endphp @if(isset($features) && is_array($features)) @foreach($features as $i => $f) @php $color = $featureColors[$i % count($featureColors)]; @endphp
{{ $f['title'] }}
{{ $f['count'] ?? 0 }}
@endforeach @else @foreach($compact as $i => $c) @php $color = $featureColors[$i % count($featureColors)]; $countVar = ${$c['k']} ?? 0; @endphp
{{ $c['t'] }}
{{ $countVar }}
@endforeach @endif
Unique Geography Counts
Summary of unique IDs
Units
{{ $unique_unit_count }}/{{ $total_unit }}
States
{{ $unique_state_count }}/{{ $total_state }}
Districts
{{ $unique_district_count }}/{{ $total_district }}
Blocks
{{ $unique_block_count }}/{{ $total_block }}
Panchayats
{{ $unique_panchayat_count }}
Villages
{{ $unique_village_count }}
{{-- Row 1: Land & Feasibility --}}
Total land area
{{ number_format($summary->total_land_area, 2) }}
units as stored
Avg technical feasibility
{{ number_format($summary->avg_technical_feasibility_score, 2) }}
average across records
WUG total land
{{ number_format($summary->total_wug_land, 2) }}
sum of water user groups land
{{-- Row 2: Demographics (Male / Female) --}}

Demographics — Male

Total: {{ number_format($summary->total_male) }}
0 - 5 yrs
{{ number_format($summary->total_age_male_0_5) }}
5 - 15 yrs
{{ number_format($summary->total_age_male_5_15) }}
15 - 16 yrs
{{ number_format($summary->total_age_male_15_16) }}

Demographics — Female

Total: {{ number_format($summary->total_female) }}
0 - 5 yrs
{{ number_format($summary->total_age_female_0_5) }}
5 - 15 yrs
{{ number_format($summary->total_age_female_5_15) }}
15 - 16 yrs
{{ number_format($summary->total_age_female_15_16) }}
{{-- Row 3: Landholding & WUG --}}

Landholding Categories

Households: {{ number_format($summary->total_records) }}
Landless
{{ number_format($summary->total_landless) }}
Marginal
{{ number_format($summary->total_marginal) }}
Small
{{ number_format($summary->total_small) }}
Medium
{{ number_format($summary->total_medium) }}
Big farmer
{{ number_format($summary->total_bigfarmer) }}
{{-- WUG & membership --}}

WUG & Membership

Total WUG members
{{ number_format($summary->total_wug_member) }}
Agri baseline entered
{{ number_format($summary->wug_member_agri_baseline_entered) }}
{{-- Row 4: Income & Livelihood --}}
Cropping income
₹{{ number_format($summary->total_cropping_income, 2) }}
Sum of croppings net income
Livestock income
₹{{ number_format($summary->total_livestock_income, 2) }}
Sum of livestock net income
Enterprises (count)
{{ number_format($summary->total_enterprise) }}
Wages (count)
{{ number_format($summary->total_daily_wage_families) }}
Micro-enterprise income
₹{{ number_format($summary->total_micro_enterprise_income, 2) }}
Daily-wage income
₹{{ number_format($summary->total_daily_wage_income, 2) }}
{{-- Final row: Total family income --}}
Total family income (sum)
₹{{ number_format($summary->total_family_income, 2) }}
Sum of reported family incomes across records
View master list
Export / filters available on master list
@endsection