bug fixes on activity log and array_key_first alt using reset

This commit is contained in:
Kwesi Banson
2024-02-16 19:46:38 +00:00
parent d4ab479e0c
commit 7b3a29ca53
25 changed files with 579 additions and 160 deletions

View File

@@ -10,29 +10,28 @@
</div>
<div class="modal-body">
<div class="">
<?php if ($showclient->progress_indicators !== null): ?>
<?php if ($showclient->onboarding_progress_stage !== null): ?>
<ul class="to_do">
<?php $current_indicators = json_decode($showclient->progress_indicators, true); ?>
@foreach($progress_indicators as $indirow)
<?php $current_indicators = json_decode($showclient->onboarding_progress_stage, true); ?>
@foreach($current_indicators as $key => $value)
<?php
$arr_check = in_array($indirow, $current_indicators);
$theCheck = ($arr_check == true) ? "fa-check-circle green" : "fa-question red";
$theCheck = ($value == "COMPLETED") ? "fa-check-circle green" : "fa-question red";
?>
<li>
<p>
<span class="fa {{ $theCheck }}"></span>
{{ $indirow }}
{{ $key }}
</p>
</li>
@endforeach
</ul>
<?php else: ?>
@foreach($progress_indicators as $indirow)
@foreach($current_indicators as $indkey => $indival)
<ul class="to_do">
<li>
<p>
<span class="fa fa-question red"></span>
{{ $indirow }}
{{ $indkey }}
</p>
</li>
</ul>