bug fixes on activity log and array_key_first alt using reset
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user