From 037a8366375f1ffe0485fd87c90d8ff40363ff48 Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Wed, 4 Feb 2026 13:39:09 +0700 Subject: [PATCH] update --- app/Helpers/custom.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 5a69dd1..7d85a0c 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -1754,6 +1754,34 @@ if (!function_exists('formKriteria')) { $html .= ''; $html .= ''; + $checkFile = PenilaianFile::where('page_number',$page_number) + ->where('ms_sekolah_id',$idSekolah) + ->where('tahun',$kuesioner->tahun) + ->where('key',$page_number) + ->first(); + $extension = explode('.',@$checkFile->value); + + if(@$checkFile){ + $html .= '
+ + +
+
+ +
+ +
+ Ukuran Maksimal File : 10MB, Ekstension File : .pdf,.png,.jpeg,.jpg +
'; + }else{ + $html .='
+ + + + Ukuran Maksimal File : 10MB, Ekstension File : .pdf,.png,.jpeg,.jpg +
'; + } + $html .= '
'; $html .= ''; $html .= '
';