@if (session()->has('success'))

{{ session('success') }}

@endif @if (session()->has('error'))

{{ session('error') }}

@endif @if (session()->has('info'))

{{ session('info') }}

@endif @if ($latestWeightsData)

Current Active Weights

Created by: {{ $latestWeightsData['creator_name'] }} on {{ $latestWeightsData['created_at'] }}

Consistency Ratio
{{ number_format($latestWeightsData['consistency_ratio'], 4) }}
@foreach (['course_match', 'preference_match', 'distance_score', 'workload_score'] as $criterion)
{{ ucfirst(str_replace('_', ' ', $criterion)) }}
{{ number_format(($latestWeightsData['weights'][$criterion] ?? 0) * 100, 1) }}%
@endforeach
@endif

Weight Configuration

Select the importance level for each factor. Weights will automatically normalize to 100%.

@foreach (['course_match' => 'Course Match', 'preference_match' => 'Preference Match', 'distance_score' => 'Distance Score', 'workload_score' => 'Workload Score'] as $key => $label)
{{ number_format($directWeights[$key] ?? 0, 1) }}%

@if ($key === 'course_match') How important is matching the student's program with the supervisor's program? @elseif($key === 'preference_match') How important is matching the supervisor's travel preference with the placement location? @elseif($key === 'distance_score') How important is the distance between supervisor and placement location? @elseif($key === 'workload_score') How important is the supervisor's current workload (availability)? @endif

@endforeach
Total Weight: {{ number_format(array_sum($directWeights), 1) }}%

Weights are automatically normalized to 100% total

Calculated Weights

@if (!empty($calculatedWeights))
@foreach (['course_match', 'preference_match', 'distance_score', 'workload_score'] as $criterion)
{{ ucfirst(str_replace('_', ' ', $criterion)) }} {{ $this->getWeightPercentage($criterion) }}
@endforeach

Weights automatically normalize to ensure consistency

@else

Enter pairwise comparisons to calculate weights

@endif

Instructions

  1. Select the importance level for each factor (Very High, High, Medium, Low)
  2. Weights automatically calculate and normalize to 100% total
  3. The system converts your selections to an AHP-compatible format
  4. View the calculated percentages in the right panel
  5. Click "Save Weights" to apply for supervisor assignments

💡 Tip: Start with "Medium" for all factors and adjust based on your priorities