e6f38d9481
* docs: remove requirement for setting APP_KEY manually * optimize date picker * clean up modals * spot light working * reorganization * add lazy load * wip * remove filament * styling
24 lines
761 B
PHP
24 lines
761 B
PHP
<span
|
|
class=""
|
|
style="width:90em;overflow: hidden; white-space: nowrap;"
|
|
title="{{ Number::currency($marketData->fifty_two_week_low ?? 0, $marketData->currency) }} - {{ Number::currency($marketData->fifty_two_week_high ?? 0, $marketData->currency) }}"
|
|
>
|
|
|
|
@php
|
|
// 52-week low must be a non-zero
|
|
if (empty($marketData->fifty_two_week_low)) {
|
|
$marketData->fifty_two_week_low = 1;
|
|
}
|
|
@endphp
|
|
|
|
@for ($x = 0; $x < 10; $x++)
|
|
@if ((($marketData->market_value - $marketData->fifty_two_week_low) * 100) / ($marketData->fifty_two_week_high - $marketData->fifty_two_week_low) > ($x * 10))
|
|
|
|
●
|
|
|
|
@else
|
|
|
|
○
|
|
@endif
|
|
@endfor
|
|
</span> |