@extends('layouts.admin') @section('title', 'Detail Hasil MOORA') @section('page-title', 'Detail Perhitungan MOORA') @section('header-actions') ← Kembali @endsection @section('content')

Detail Perhitungan per Kriteria

@php $benefitSum = 0; $costSum = 0; @endphp @foreach($result->details as $detail) @php if ($detail->criteria->type->value === 'benefit') { $benefitSum += $detail->weighted_value; } else { $costSum += $detail->weighted_value; } @endphp @endforeach
Kriteria Tipe Nilai Awal Normalisasi Terbobot
{{ $detail->criteria->code }} {{ $detail->criteria->name }} @if($detail->criteria->type->value === 'benefit') Benefit @else Cost @endif {{ $detail->raw_value }} {{ number_format($detail->normalized_value, 6) }} {{ number_format($detail->weighted_value, 6) }}
Σ Benefit: {{ number_format($benefitSum, 6) }}
Σ Cost: {{ number_format($costSum, 6) }}
Yi (Benefit - Cost): {{ number_format($result->yi_score, 6) }}

Informasi Siswa

Nama {{ $result->submission->student->user->name ?? '-' }}
NIS {{ $result->submission->student->nis ?? '-' }}
Periode {{ $result->period }}

Hasil Akhir

{{ $result->rank }} Peringkat
Skor Yi {{ number_format($result->yi_score, 6) }}

Dihitung: {{ $result->calculated_at->format('d M Y H:i') }}

@push('styles') @endpush @endsection