@extends('layout.template') @section('css') @endsection @section('isi')

Rincian Ujian

Data Rincian Ujian

@foreach ($jenis_ujian as $item) @endforeach @php $no = 1 @endphp @foreach ($program as $items) @php $arr_skor = []; $arr_statuses = []; $status_lain = []; @endphp @foreach ($jenis_ujian as $item) @php $total_skor = SMUDESA::GetSkorProgramByJenisUjian($items->program->id, $item->id, $items->id); $arr_skor[] = $total_skor; $arr_skor1[] = 0; $arr_skor2[] = 0; if($item->id <= 3) { $arr_skor1[] = $total_skor; $arr_statuses[] = $total_skor >= $item->syarat_kelulusan ? "LULUS" : "GAGAL"; } else { $arr_skor2[] = $total_skor; $status_lain[] = $total_skor >= $item->syarat_kelulusan ? "LULUS" : "GAGAL"; } @endphp @endforeach @php $no++ @endphp @endforeach
No No Pendaftaran Program{{$item->nama}}Total Skor Hasil Aksi
{{ $no }} {{ $items->no_pendaftaran }} {{ $items->nama_program }}{{$total_skor}}{{ number_format(array_sum($arr_skor),2) }} @if (SMUDESA::SudahMengikutiUjian($items->id)) {{-- @if (SMUDESA::GetStatusUjian($items->id, $items->id_user) == "LULUS")

LULUS

@else

GAGAL

@endif --}} @if(array_sum($arr_skor1) != 0) @if (in_array("GAGAL", $arr_statuses))

GAGAL

@else @if(count($arr_statuses) == 0)

-

@else

LULUS

@endif @endif @else @if (in_array("GAGAL", $status_lain))

GAGAL

@else @if(count($status_lain) == 0)

-

@else

LULUS

@endif @endif @endif @else

-

@endif
@if (SMUDESA::SudahMengikutiUjian($items->id)) Lihat Hasil @else Ujian @endif
@endsection @section('js') @endsection