@extends('layouts.app')
@section('title', 'خط سير المتقدمين')
@section('content')
@push('styles')
@endpush
@foreach(['new'=>'جديد','screening'=>'فرز','interview'=>'مقابلة','offered'=>'عرض','hired'=>'تم التوظيف','rejected'=>'مرفوض'] as $status => $label)
{{ $label }} {{ count($applicants[$status] ?? []) }}
@forelse($applicants[$status] ?? [] as $a)
{{ $a->name ?? $a->first_name ?? ($a->email ?? 'متقدم #' . $a->id) }}
{{ $a->job_title ?? '' }}
@if(isset($a->rating) && $a->rating)
@for($s=1;$s<=5;$s++)
@endfor
@endif
@empty
لا يوجد
@endforelse
@endforeach
@endsection