update
							parent
							
								
									627b0925da
								
							
						
					
					
						commit
						070227b920
					
				|  | @ -220,10 +220,14 @@ if (!function_exists('kuesionerLogStatus')) { | ||||||
|      * |      * | ||||||
|      * @return string |      * @return string | ||||||
|      */ |      */ | ||||||
|     function kuesionerLogStatus($KuesionerId) |     function kuesionerLogStatus($KuesionerId,$plain = null) | ||||||
|     { |     { | ||||||
|         $log  = KuesionerLog::where('kuesioner_id',$KuesionerId)->orderBy('KuesionerLogId','DESC')->first(); |         $log  = KuesionerLog::where('kuesioner_id',$KuesionerId)->orderBy('KuesionerLogId','DESC')->first(); | ||||||
|         $progress = '<span class="badge bg-warning-light text-warning">'.str_replace('_',' ',\Str::title($log->step)).'</span>'; |         if($plain == 'plain'){ | ||||||
|  |             $progress = str_replace('_',' ',\Str::title($log->step)); | ||||||
|  |         }else{ | ||||||
|  |             $progress = '<span class="badge bg-warning-light text-warning">'.str_replace('_',' ',\Str::title($log->step)).'</span>'; | ||||||
|  |         } | ||||||
|         return $progress; |         return $progress; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -52,7 +52,7 @@ | ||||||
|                 <div class="d-flex flex-row  justify-content-between align-items-center"> |                 <div class="d-flex flex-row  justify-content-between align-items-center"> | ||||||
|                     <div> |                     <div> | ||||||
|                         <span class="m-0 l-h-n text-white">Penghargaan Terakhir</span> <br><br> |                         <span class="m-0 l-h-n text-white">Penghargaan Terakhir</span> <br><br> | ||||||
|                         <h3 class="f20 fw-700 text-white">{{@$total_usulan_nasional}} <span class="f12 fw-500">Belum Pernah</span> </h3> |                         <h3 class="f20 fw-700 text-white"><span class="f12 fw-500">{{getPenghargaanTerakhir(session('sekolah_id'))}}</span> </h3> | ||||||
|                     </div> |                     </div> | ||||||
|                     <div> |                     <div> | ||||||
|                         <div class="p-2 bg-white rounded-circle"> |                         <div class="p-2 bg-white rounded-circle"> | ||||||
|  | @ -69,7 +69,7 @@ | ||||||
|                 <div class="d-flex flex-row  justify-content-between align-items-center"> |                 <div class="d-flex flex-row  justify-content-between align-items-center"> | ||||||
|                     <div> |                     <div> | ||||||
|                         <span class="m-0 l-h-n text-white">Proses Usulan</span> <br><br> |                         <span class="m-0 l-h-n text-white">Proses Usulan</span> <br><br> | ||||||
|                         <h3 class="f20 fw-700 text-white">{{@$total_usulan_mandiri}} <span class="f12 fw-500">-</span> </h3> |                         <h3 class="f20 fw-700 text-white"><span class="f12 fw-500">{!!kuesionerLogStatus(@$kuesioner->KuesionerId,'plain')!!}</span> </h3> | ||||||
|                     </div> |                     </div> | ||||||
|                     <div> |                     <div> | ||||||
|                         <div class="p-2 bg-white rounded-circle"> |                         <div class="p-2 bg-white rounded-circle"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue