@extends('layout.main') @section('content')
Petani
{{ $petaniSummary->count('total') }} komoditas utama
Lahan
{{ $lahanSummary->count('total') }} komoditas utama
Tanaman Komoditas Utama
{{ $tanamanSummary->where('komoditas_id', $k->id)->sum('total') }} tanaman {{ $k->nama }}
@endforeachuntuk semua komoditas
Penggerak (4.0 - 5.0) |
{{ $skorSummary->where('segmen', 'Penggerak')->sum('total') }} petani | {{ number_format(($skorSummary->where('segmen', 'Penggerak')->sum('total') / $petaniSummary->sum('total')) * 100, 2) }}% |
Perintis (3.0 - 3.9) |
{{ $skorSummary->where('segmen', 'Perintis')->sum('total') }} petani | {{ number_format(($skorSummary->where('segmen', 'Perintis')->sum('total') / $petaniSummary->sum('total')) * 100, 2) }}% |
Pemerhati (2.0 - 2.9) |
{{ $skorSummary->where('segmen', 'Pemerhati')->sum('total') }} petani | {{ number_format(($skorSummary->where('segmen', 'Pemerhati')->sum('total') / $petaniSummary->sum('total')) * 100, 2) }}% |
Pemula (1.0 - 1.9) |
{{ $skorSummary->where('segmen', 'Pemula')->sum('total') }} petani | {{ number_format(($skorSummary->where('segmen', 'Pemula')->sum('total') / $petaniSummary->sum('total')) * 100, 2) }}% |
berdasarkan mayoritas segmentasi
{{ $k->nama }} |
@if(isset($max)) @if($max->segmen == 'Penggerak') Petani Penggerak @elseif($max->segmen == 'Perintis') Petani Perintis @elseif($max->segmen == 'Pemerhati') Petani Pemerhati @elseif($max->segmen == 'Pemula') Petani Pemula @else Belum Lengkap @endif @else Belum Tersegmentasi @endif | {{ isset($max) ? $max->total : 0 }} Petani | {{ isset($max) ? number_format(($max->total / $petaniSummary->sum('total')) * 100, 2) : 0 }}% |