![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/old.fdshops.com.ng/resources/views/vendor/charts/justgage/ |
@include('charts::_partials.container.div') <script type="text/javascript"> $(function() { var {{ $model->id }} = new JustGage({ id: "{{ $model->id }}", value: "{{ $model->values[0] }}", @if(count($model->values) >= 2 and $model->values[1] <= $model->values[0]) @php($min = $model->values[1]) min: {{ $min }}, @else @php($min = 0) @endif @if(count($model->values) >= 3 and $model->values[2] >= $model->values[0]) @php($max = $model->values[2]) max: {{ $max }}, @else @php($max = 100) @endif donut: true, gaugeWidthScale: 0.6, counter: true, @if($model->title) title: "{!! $model->title !!}", @endif @if(count($model->colors) > 0 and is_array($model->colors)) @php($colors = '["'.implode(array_slice(array_values($model->colors), 0, 3), '","').'"]') levelColors: {!! $colors !!}, @endif label: "{!! $model->element_label !!}", hideInnerShadow: true }) }); </script>