@extends('dashboard.layouts.app') @section('content') @include('components.alert') @php $rows = $applicants ?? collect(); $statusVariant = fn ($status) => match ($status) { 'new' => 'neutral', 'rejected' => 'danger', 'hired' => 'success', default => 'neutral', }; $offerVariant = fn ($status) => match ($status) { 'accepted' => 'success', 'pending' => 'warn', 'rejected' => 'danger', default => 'neutral', }; $formatValue = function ($value) { return filled($value) ? ucfirst(str_replace('_', ' ', $value)) : 'N/A'; }; $totalApplicants = $stats['total'] ?? 0; $newApplicants = $stats['new'] ?? 0; $hiredApplicants = $stats['hired'] ?? 0; $rejectedApplicants = $stats['rejected'] ?? 0; $pendingOffers = $stats['pending_offers'] ?? 0; @endphp
This page displays every applicant in the system, allowing you to track who created each record and who is currently responsible for it.