@php
$statuses = [
['label' => 'Active', 'value' => $total_active, 'color' => 'primary'],
['label' => 'Dalam Proses', 'value' => $total_process, 'color' => 'info'],
['label' => 'Diterima', 'value' => $total_accepted, 'color' => 'success'],
['label' => 'Ditolak', 'value' => $total_rejected, 'color' => 'danger'],
];
@endphp
@foreach ($statuses as $s)
@php
$pct = $total_pelamar > 0 ? round(($s['value'] / $total_pelamar) * 100) : 0;
@endphp
{{ $s['label'] }}
{{ $s['value'] }}
@endforeach