@extends('layout.template') @section('css') @endsection @section('isi')
| No | No Pendaftaran | Program | @foreach ($jenis_ujian as $item){{$item->nama}} | @endforeachTotal Skor | Hasil | Aksi |
|---|---|---|---|---|---|---|
| {{ $no }} | {{ $items->no_pendaftaran }} | {{ $items->nama_program }} | @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{{$total_skor}} | @endforeach{{ number_format(array_sum($arr_skor),2) }} |
@if (SMUDESA::SudahMengikutiUjian($items->id))
{{-- @if (SMUDESA::GetStatusUjian($items->id, $items->id_user) == "LULUS")
LULUS @elseGAGAL @endif --}} @if(array_sum($arr_skor1) != 0) @if (in_array("GAGAL", $arr_statuses))GAGAL @else @if(count($arr_statuses) == 0)- @elseLULUS @endif @endif @else @if (in_array("GAGAL", $status_lain))GAGAL @else @if(count($status_lain) == 0)- @elseLULUS @endif @endif @endif @else- @endif |
@if (SMUDESA::SudahMengikutiUjian($items->id)) Lihat Hasil @else Ujian @endif |