@if($sekolah->logo_kop) @else
@if($sekolah->logo_pemda) @endif

PEMERINTAH PROVINSI {{ strtoupper($sekolah->provinsi ?? 'JAWA TENGAH') }}

DINAS PENDIDIKAN DAN KEBUDAYAAN

{{ strtoupper($sekolah->nama_sekolah) }}

{{ $sekolah->alamat }}, {{ ucwords(strtolower($sekolah->desa_kelurahan)) }}, Kec. {{ ucwords(strtolower($sekolah->kecamatan)) }}, {{ ucwords(strtolower($sekolah->kabupaten_kota)) }}

Telp: {{ $sekolah->telepon ?? '-' }}, Email: {{ $sekolah->email ?? '-' }}, Website: {{ $sekolah->website ?? '-' }}

@if($sekolah->logo_sekolah) @endif
@endif

TRANSKRIP NILAI RAPOR {{ strtoupper($sekolah->nama_sekolah) }}

Tahun Pelajaran {{ $tahunAjarans[2] ?? '2025/2026' }}

Nama:{{ strtoupper($siswa->nama) }} Kelas:{{ $siswa->kelas ?? '-' }}
NIS/NISN:{{ $siswa->nis ?? '-' }} / {{ $siswa->nisn ?? '-' }} Tahun Pelajaran:{{ $tahunAjarans[2] ?? '-' }}
Nama Sekolah:{{ $sekolah->nama_sekolah }}
Alamat:{{ $siswa->alamat ?? '-' }}
@foreach($nilaiMapel as $kelompok => $mapels) @foreach($mapels as $mapel) @php $validGrades = array_filter($mapel['nilai'], function($n) { return is_numeric($n); }); $rata = count($validGrades) > 0 ? round(array_sum($validGrades) / count($validGrades)) : '-'; @endphp @endforeach @endforeach
NO MATA PELAJARAN {{ $tahunAjarans[0] }} {{ $tahunAjarans[1] }} {{ $tahunAjarans[2] }} Rata
Rata
Smt. 1Smt. 2 Smt. 1Smt. 2 Smt. 1Smt. 2
{{ $kelompok }}
{{ $mapel['no'] }} {{ $mapel['nama'] }} {{ $mapel['nilai'][0] ?? '-' }} {{ $mapel['nilai'][1] ?? '-' }} {{ $mapel['nilai'][2] ?? '-' }} {{ $mapel['nilai'][3] ?? '-' }} {{ $mapel['nilai'][4] ?? '-' }} {{ $mapel['nilai'][5] ?? '-' }} {{ $rata }}
@if($siswa->foto) @php $fotoPath = str_starts_with($siswa->foto, 'fotos/') ? $siswa->foto : 'fotos/' . $siswa->foto; @endphp @else

Pas Foto
3 x 4 @endif

{{ ucwords(strtolower($sekolah->kabupaten_kota ?? 'Gianyar')) }}, {{ date('d F Y') }}

Kepala Sekolah

@if(isset($isiTtd) && $isiTtd == 'Dengan Tanda Tangan' && $sekolah->ttd_stempel_ks)
@else



@endif

{{ $sekolah->nama_kepala_sekolah ?? 'Paramitha Nainggolan, M.Pd' }}

NIP. {{ $sekolah->nip_kepala_sekolah ?? '197508102008102008' }}