@php
$result = isset($data['user']['input'][0]) ? json_decode($data['user']['input'][0]['result'], true) : [];
$html = '';
$lulus = 0;
$gagal = 0;
@endphp
@foreach ($result as $key => $value)
@if (is_array($value))
@if ($value['status'] != 'lulus')
@php
$html .= '
' . $value['message'] . '';
$gagal++;
@endphp
@else
@php
$html .= '
' . $value['message'] . '';
$lulus++;
@endphp
@endif
@endif
@endforeach
@if ($html != '')
{{ $lulus }} Lulus
{{ $gagal }} Gagal
@else
Hasil
@endif
@if ($data['user']['status'] != 'lulus')
@else
Lulus
@endif