@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@php $stats = [ ['label' => 'Total Pelamar', 'value' => $total_pelamar, 'icon' => 'users', 'color' => 'primary'], ['label' => 'Menunggu Review', 'value' => $total_active, 'icon' => 'clock', 'color' => 'warning'], ['label' => 'Dalam Proses', 'value' => $total_process, 'icon' => 'spinner', 'color' => 'info'], ['label' => 'Diterima', 'value' => $total_accepted, 'icon' => 'check-circle', 'color' => 'success'], ]; @endphp @foreach ($stats as $s)
{{ $s['label'] }}
{{ number_format($s['value']) }}
@endforeach
Departemen dengan Pelamar Terbanyak
Ringkasan Status
@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
Pelamar Terbaru
Lihat Semua
@forelse($recent_applicants as $app) @php $statusColors = [ 'active' => 'primary', 'test' => 'secondary', 'interview' => 'info', 'accepted' => 'success', 'rejected' => 'danger', ]; $statusLabels = [ 'active' => 'Active', 'test' => 'Test', 'interview' => 'Interview', 'accepted' => 'Accepted', 'rejected' => 'Rejected', ]; @endphp
{{ $app->nama }}
{{ $app->posisi }}
{{ $statusLabels[$app->status] ?? $app->status }}
Tanggal Apply {{ \Carbon\Carbon::parse($app->created_at)->format('d M Y H:i:s') }}
@empty
Belum ada data pelamar.
@endforelse
@endsection @push('js') @endpush