@extends('layouts.app') @section('title','Score Applicant') @section('page-title','Recruitment') @section('content')
{{-- Applicant Card --}}
{{ strtoupper(substr($application->applicant->first_name,0,1)) }}
{{ $application->applicant->full_name }}
{{ $application->applicant->applicant_number }}
{{ ucfirst(str_replace('_',' ',$application->stage)) }}
@if($application->weighted_score !== null)
{{ round($application->weighted_score) }}%
Current Weighted Score
@if($application->auto_recommended)
Auto-Recommended
@endif
@endif
Qualification: {{ $application->applicant->qualification_label }}
Experience: {{ $application->applicant->years_of_experience }} years
Current Role: {{ $application->applicant->current_position ?? '—' }}
Threshold: {{ $application->jobPosting->recommendation_threshold }}%
{{-- Scoring Form --}}
@csrf
@foreach($application->jobPosting->criteria as $criterion) @php $existing = $application->scores->where('criterion_id',$criterion->id)->first(); @endphp
{{ $criterion->name }}
{{ $criterion->category_label }} · Weight: {{ $criterion->weight }} @if($criterion->is_mandatory) · Mandatory@endif
@if($criterion->description)
{{ $criterion->description }}
@endif
Max Score
{{ $criterion->max_score }}
{{ $existing ? round(($existing->score/$criterion->max_score)*100).'%' : '—' }}
@endforeach
Cancel
@endsection @push('scripts') @endpush