2024-08-26 22:13:00 -05:00
|
|
|
<span
|
|
|
|
|
class=""
|
|
|
|
|
style="width:90em;overflow: hidden; white-space: nowrap;"
|
2024-08-27 18:12:51 -05:00
|
|
|
title="{{ Number::currency($low ?? 0) }} - {{ Number::currency($high ?? 0) }}"
|
2024-08-26 22:13:00 -05:00
|
|
|
>
|
2024-08-27 18:12:51 -05:00
|
|
|
|
|
|
|
|
@php
|
|
|
|
|
// 52-week low must be a non-zero
|
|
|
|
|
if (empty($low)) {
|
|
|
|
|
$low = 1;
|
|
|
|
|
}
|
|
|
|
|
@endphp
|
2024-08-26 22:13:00 -05:00
|
|
|
|
|
|
|
|
@for ($x = 0; $x < 10; $x++)
|
|
|
|
|
@if ((($current - $low) * 100) / ($high - $low) > ($x * 10))
|
|
|
|
|
|
|
|
|
|
●
|
|
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
|
|
○
|
|
|
|
|
@endif
|
|
|
|
|
@endfor
|
|
|
|
|
</span>
|