main
ilhamwara 2025-06-03 10:00:40 +07:00
parent 627b0925da
commit 070227b920
2 changed files with 8 additions and 4 deletions

View File

@ -220,10 +220,14 @@ if (!function_exists('kuesionerLogStatus')) {
*
* @return string
*/
function kuesionerLogStatus($KuesionerId)
function kuesionerLogStatus($KuesionerId,$plain = null)
{
$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;
}
}

View File

@ -52,7 +52,7 @@
<div class="d-flex flex-row justify-content-between align-items-center">
<div>
<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 class="p-2 bg-white rounded-circle">
@ -69,7 +69,7 @@
<div class="d-flex flex-row justify-content-between align-items-center">
<div>
<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 class="p-2 bg-white rounded-circle">