@extends('layouts.app') @section('title', 'Detail SP') @section('content')

Detail Surat Peringatan

{{ $spLetter->letter_number }}

No. Surat

{{ $spLetter->letter_number }}

Siswa

{{ $spLetter->student->full_name ?? '-' }}

{{ $spLetter->student->nisn ?? '' }} - {{ $spLetter->student->class_name ?? '' }}

Jenis SP

{{ $spLetter->spThreshold->name ?? '-' }}

Total Poin Saat Generate

{{ $spLetter->total_points_at_time }} poin

Status

{{ $spLetter->status }}

Dibuat Oleh

{{ $spLetter->generator->name ?? 'Sistem' }}

Dibuat Pada

{{ $spLetter->created_at->format('d F Y H:i') }}

@if($spLetter->violations_included)

Daftar Pelanggaran Terkait

@php $violations = is_array($spLetter->violations_included) ? $spLetter->violations_included : json_decode($spLetter->violations_included, true); @endphp @if($violations)
    @foreach($violations as $v)
  • • {{ $v['violation_date'] ?? '-' }} — {{ $v['description'] ?? '(deskripsi)' }} (+{{ $v['points'] ?? 0 }})
  • @endforeach
@else

Data tidak tersedia

@endif
@endif @if($school['kepala_sekolah'])

{{ $school['kepala_sekolah'] }}

Kepala {{ $school['name'] }}

@endif
@endsection