@extends('layouts.app') @section('title', 'Dashboard Consumer Insight Admin') @section('content') {{-- Global Stats --}}
Total Consumer Contact
{{ $totalProducts }}
Consumer Contact Plan
{{ $totalTests }}
Total User Consumer Insight
{{ $totalUsers }}
Total Responden
{{ $totalRespondents }}
{{-- Statistik per Area Office --}} @php $areaColors = ['primary','success','warning','danger','info','secondary']; @endphp
@forelse($regionStats as $i => $stat) @php $color = $areaColors[$i % count($areaColors)]; @endphp
{{ $stat['area_office'] }}
{{ $stat['total_spg'] }}
SPG
{{ $stat['total_tests'] }}
Tests
{{ $stat['respondents'] }}
Responden
@empty
Belum ada data area office.
@endforelse
{{-- Chart & Recent Tests --}}
Responden per Area Office
Consumer Contact Plan Terbaru
@forelse($recentTests as $test) @empty @endforelse
Judul Area Office Status Responden
{{ Str::limit($test->title, 30) }}
{{ $test->product->name ?? '-' }}
{{ $test->area_office ?? '-' }} {{ ucfirst($test->status) }} {{ $test->testSessions->where('status', 'completed')->count() }}
Belum ada panel test marketing
{{-- Quick Actions --}}
@endsection @push('scripts') @endpush