96 lines
5.9 KiB
PHP
96 lines
5.9 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head><meta charset="utf-8"></head>
|
|
<body>
|
|
<table>
|
|
<!-- Header Info -->
|
|
<tr>
|
|
<td colspan="12" style="font-size: 14pt; font-weight: bold; color: #1E293B; height: 30px;">5. SIMULASI OPERATOR MUTASI & SMART REPAIR (KETERSEDIAAN B3 & KONSISTENSI B7)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="12" style="font-size: 10pt; color: #64748B;">Probabilitas Mutasi Pm = 0.1 (10%). Mengubah acak komponen gen yang terpilih dan menerapkan Smart Repair agar B3 (Ketersediaan) & B7 (Konsistensi Guru) 100% terpenuhi</td>
|
|
</tr>
|
|
<tr><td colspan="12" style="height: 10px;"> </td></tr>
|
|
|
|
<!-- Evaluasi Probabilitas Mutasi per Gen -->
|
|
<tr>
|
|
<td colspan="12" style="background-color: #1E293B; color: #FFFFFF; font-weight: bold;">A. EVALUASI PROBABILITAS MUTASI PER GEN (CHILD 1)</td>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
<th style="background-color: #334155; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 140px;">Tahap Gen</th>
|
|
@for($i = 1; $i <= 10; $i++)
|
|
<th style="background-color: #334155; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 110px;">
|
|
Gen {{ $i }} (K{{ sprintf('%02d', $i) }})
|
|
</th>
|
|
@endfor
|
|
<th style="background-color: #334155; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 120px;">Keterangan Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Random Value per Gen -->
|
|
@php
|
|
$rValues = [0.42, 0.78, 0.08, 0.55, 0.91, 0.34, 0.67, 0.82, 0.23, 0.61]; // Gen 3 r=0.08 <= Pm 0.1 (Ter-mutasi!)
|
|
@endphp
|
|
<tr>
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: #F8FAFC;">Nilai Acak r (0.0 - 1.0)</td>
|
|
@foreach($rValues as $idx => $r)
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: {{ $r <= 0.1 ? '#FCA5A5' : '#FFFFFF' }}; color: {{ $r <= 0.1 ? '#991B1B' : '#1E293B' }};">
|
|
r = {{ $r }}
|
|
</td>
|
|
@endforeach
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-size: 8.5pt;">Threshold Pm = 0.1</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: #F8FAFC;">Evaluasi Mutasi (r <= Pm)</td>
|
|
@foreach($rValues as $idx => $r)
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: {{ $r <= 0.1 ? '#FCA5A5' : '#FFFFFF' }}; color: {{ $r <= 0.1 ? '#991B1B' : '#64748B' }};">
|
|
{{ $r <= 0.1 ? 'MUTASI! (*)' : 'Tetap' }}
|
|
</td>
|
|
@endforeach
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-size: 8.5pt; font-weight: bold; color: #991B1B;">Gen 3 Ter-mutasi</td>
|
|
</tr>
|
|
</tbody>
|
|
<tr><td colspan="12" style="height: 15px;"> </td></tr>
|
|
|
|
<!-- Gen Sebelum vs Sesudah Mutasi & Smart Repair -->
|
|
<tr>
|
|
<td colspan="12" style="background-color: #991B1B; color: #FFFFFF; font-weight: bold;">B. PERBANDINGAN GEN SEBELUM VS SESUDAH MUTASI & SMART REPAIR B3/B7</td>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
<th style="background-color: #7F1D1D; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 140px;">Kromosom Child 1</th>
|
|
@for($i = 1; $i <= 10; $i++)
|
|
<th style="background-color: #7F1D1D; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 110px;">
|
|
Gen {{ $i }} (K{{ sprintf('%02d', $i) }})
|
|
</th>
|
|
@endfor
|
|
<th style="background-color: #7F1D1D; color: #FFFFFF; font-weight: bold; text-align: center; border: 1px solid #0F172A; width: 120px;">Dampak Evaluasi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Before Mutation -->
|
|
<tr>
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: #FEE2E2;">Sebelum Mutasi</td>
|
|
@foreach($sim['child1Genes'] as $idx => $g)
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-family: monospace; font-size: 8.5pt; background-color: {{ $idx == 2 ? '#FCA5A5' : '#FFFFFF' }}; font-weight: {{ $idx == 2 ? 'bold' : 'normal' }};">
|
|
[G{{ $g['guru_id'] }},R{{ $g['ruang_id'] }},S{{ $g['sesi_id'] }},H{{ $g['hari_id'] }}]
|
|
</td>
|
|
@endforeach
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; color: #DC2626; font-size: 8.5pt;">B3 Melanggar di Gen 3</td>
|
|
</tr>
|
|
<!-- After Mutation & Repair -->
|
|
<tr>
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-weight: bold; background-color: #DCFCE7;">Sesudah Mutasi & Repair</td>
|
|
@foreach($sim['child1MutatedGenes'] as $idx => $g)
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; font-family: monospace; font-size: 8.5pt; background-color: {{ $idx == 2 ? '#86EFAC' : '#FFFFFF' }}; font-weight: bold;">
|
|
[G{{ $g['guru_id'] }},R{{ $g['ruang_id'] }},S{{ $g['sesi_id'] }},H{{ $g['hari_id'] }}]
|
|
</td>
|
|
@endforeach
|
|
<td style="text-align: center; border: 1px solid #CBD5E1; color: #166534; font-weight: bold; font-size: 8.5pt;">B3 & B7 Terdapat Perbaikan!</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|