@extends('layouts.app') @section('title', 'Dashboard Super Admin') @section('content')
Total Produk
{{ $totalProducts }}
Total Panel Test
{{ $totalTests }}
Total Users
{{ $totalUsers }}
Total Responden
{{ $totalRespondents }}
@php $areaColors = ['primary','success','warning','danger','info','secondary']; @endphp
@foreach($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
@endforeach
Responden per Area Office
Panel Test Terbaru
Semua
@forelse($recentTests as $test) @empty @endforelse
Judul Area Office Status Peserta
{{ Str::limit($test->title, 30) }}
{{ $test->product->name ?? '-' }}
{{ $test->area_office ?? $test->division ?? '-' }} {{ ucfirst($test->status) }} {{ $test->testSessions->where('status','completed')->count() }}
Belum ada data
@endsection @push('scripts') @endpush