From d331b31db3e16381e811eb65eaf0623f6c8bf7a4 Mon Sep 17 00:00:00 2001 From: fifi97 <46933637+fifi97@users.noreply.github.com> Date: Tue, 22 Feb 2022 18:15:08 +0800 Subject: [PATCH] fix excel lelongan --- resources/views/khazanah/laporan/index.blade.php | 2 +- resources/views/print/laporan_lelongan_excel.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/khazanah/laporan/index.blade.php b/resources/views/khazanah/laporan/index.blade.php index fcd1baa..50d2ff4 100644 --- a/resources/views/khazanah/laporan/index.blade.php +++ b/resources/views/khazanah/laporan/index.blade.php @@ -26,7 +26,7 @@
Pelanggan Baru
-
+
Ringkasan Terkumpul
diff --git a/resources/views/print/laporan_lelongan_excel.blade.php b/resources/views/print/laporan_lelongan_excel.blade.php index 2508ce4..11dc8ae 100644 --- a/resources/views/print/laporan_lelongan_excel.blade.php +++ b/resources/views/print/laporan_lelongan_excel.blade.php @@ -218,8 +218,8 @@ {{ $loop->iteration }} {{ $item['nama'] }} {{ $item['norujukan'] }} - @php $telefon = str_replace("-","",$item['telefon1']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp - @php $telefon = str_replace("-","",$item['telefon2']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp + @php $telefon = str_replace("-","",$item['telefon1']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp + @php $telefon = str_replace("-","",$item['telefon2']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp {{ $item['JBG'] }} {{ substr($item['IC'],0,6) . '-' .substr($item['IC'],6,2) . '-' . substr($item['IC'],8) }} {{ $item['Pembiayaan'] }}