@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('test.partials.test-styles') @include('layouts.navbars.auth.topnav', ['title' => ''])
@include('components.alert')
@if (!session('test4_code_submitted')) {{-- Rules Test 4 --}}
Rules Test 4
Peraturan
  • Test ini merupakan Tes Kemampuan Berpikir (WPT).
  • Soal terdiri dari berbagai tipe: gambar, teks, dan pilihan ganda.
  • Waktu mengerjakan adalah 60 menit.
  • Jika waktu habis, jawaban dikumpulkan secara otomatis.
Cara Mengerjakan
  • Baca soal dengan cermat sebelum menjawab.
  • Untuk soal pilihan ganda, klik salah satu opsi jawaban.
  • Untuk soal isian, ketik jawaban pada kolom yang tersedia.
  • Tekan tombol Selanjutnya untuk berpindah soal.
  • Tekan tombol Submit di soal terakhir untuk mengumpulkan.
{{-- Contoh Soal Test --}}
Contoh
Contoh tampilan soal test
Mulai Tes

Setelah siap, klik tombol di bawah untuk memulai tes.

@csrf
@if (empty($invitation_id))

Undangan tes tidak ditemukan. Silakan akses dari halaman Aktivitas Lamaran.

@endif
@else @php $currentQ = $questions->first(); $detail = $currentQ?->detail; $hasImage = $detail && $detail->image_url; $hasOptions = $detail && $detail->options; $optionsArr = $hasOptions ? (is_array($detail->options) ? $detail->options : json_decode($detail->options, true)) : []; // Question Type // type A: Gambar + Pilihan Ganda // type B: Text + Pilihan Ganda // type C: Text + Input $qType = 'C'; if ($hasOptions) { $qType = 'B'; } if ($hasImage && $hasOptions) { $qType = 'A'; } $existingAns = $currentQ ? \App\Models\ApplicantAnswer::where('test_session_id', $testSession->id) ->where('question_id', $currentQ->id) ->first() : null; $savedAnswer = $existingAns?->answer ?? ''; if ($hasImage) { $imgSrc = str_starts_with($detail->image_url, 'http') ? $detail->image_url : asset(\Illuminate\Support\Facades\Storage::url($detail->image_url)); } @endphp
{{-- Header --}}
{{ $title_menu ?? 'Test 4' }}
Petunjuk
{{ isset($remainingSeconds) ? sprintf('%02d:%02d:%02d', intdiv(max(0, $remainingSeconds), 3600), intdiv(max(0, $remainingSeconds) % 3600, 60), max(0, $remainingSeconds) % 60) : '01:00:00' }}
{{ $currentPage }}/{{ $totalPages }}
{{-- Progress Bar --}}
{{-- Nav Dots --}}
{{-- Question --}}
{{-- Soal Gambar --}} @if ($hasImage)
Soal {{ $currentPage }}
@endif {{-- soal & jawaban --}}
Soal {{ $currentPage }}
{{ $detail?->question ?? '-' }}
@if ($hasOptions && count($optionsArr) > 0) {{-- Pilihan Ganda --}}
    @foreach ($optionsArr as $optKey => $optText) @php $isSelected = ($savedAnswer === (string)$optKey); @endphp
  • {{ $optKey }}. {{ $optText }}
  • @endforeach
@else {{-- Input Teks --}} @endif
{{-- Navigation forms --}}
@if ($currentPage > 1) @endif
@if ($currentPage < $totalPages) @else @endif
@endif
@include('test.partials.hint') @endsection @push('js') @include('test.partials.test-scripts') @endpush