From f0d337a3ebd9c98b34ad3e05f0c5d17975a8bbf8 Mon Sep 17 00:00:00 2001 From: Bro Date: Fri, 24 Jul 2026 18:05:29 +0700 Subject: [PATCH] fix: tampilkan 'E-Jurnal (Sinkron Otomatis)' di Dicatat Oleh Jika violation dari sync E-Jurnal (recorded_by=null), sekarang tampilkan ikon sync + label E-Jurnal, bukan '?' atau '-' seperti sebelumnya. --- resources/views/violations/show.blade.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/views/violations/show.blade.php b/resources/views/violations/show.blade.php index 95c7fbe..1533bb9 100644 --- a/resources/views/violations/show.blade.php +++ b/resources/views/violations/show.blade.php @@ -243,10 +243,17 @@ Dicatat Oleh
-
- {{ strtoupper(substr($violation->recorder->name ?? '?', 0, 1)) }} -
-

{{ $violation->recorder->name ?? '—' }}

+ @if($violation->recorder) +
+ {{ strtoupper(substr($violation->recorder->name, 0, 1)) }} +
+

{{ $violation->recorder->name }}

+ @else +
+ +
+

E-Jurnal (Sinkron Otomatis)

+ @endif