From 101e9ba205e9f34c3d0cedd4794b90cc4a349c7f Mon Sep 17 00:00:00 2001 From: Marsa Date: Fri, 5 Dec 2025 09:55:27 +0700 Subject: [PATCH] Bugs Fix Detail Realisasi Pendapatan --- .../views/realisasi_pendapatan/show.blade.php | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/resources/views/realisasi_pendapatan/show.blade.php b/resources/views/realisasi_pendapatan/show.blade.php index cc8b1ee..492ffcd 100644 --- a/resources/views/realisasi_pendapatan/show.blade.php +++ b/resources/views/realisasi_pendapatan/show.blade.php @@ -130,18 +130,32 @@ @stop @section('scripts2') + @php + $raw_string = $realisasi_pendapatan->kode_rekening_sps . '|' . $realisasi_pendapatan->nama_rekening_sps; + // Replace all types of newlines with a single space or just remove them + $clean_string = str_replace(array("\n", "\r", "\r\n"), ' ', $raw_string); + // NEW: Clean the uraian string too (HIGHLY RECOMMENDED) + $clean_uraian = str_replace(array("\n", "\r", "\r\n"), ' ', $realisasi_pendapatan->simtrad4_uraian); + // NEW: Clean the sp2d_bun string just in case + $clean_sp2d_bun = str_replace(array("\n", "\r", "\r\n"), ' ', $realisasi_pendapatan->simtrad4_sp2d_bun); + @endphp