Spamworldpro Mini Shell
Spamworldpro


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/progressbarjs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/old.fdshops.com.ng/resources/views/vendor/charts/progressbarjs/percentage.blade.php
@php($min = count($model->values) >= 2 ? $model->values[1] : 0)
@php($max = count($model->values) >= 3 ? $model->values[2] : 100)

@include('charts::_partials.container.div-titled')
@include('charts::_partials.dimension.svg')
<script type="text/javascript">
    $(function() {
        var {{ $model->id }} = new ProgressBar.Circle('#{{ $model->id }}', {
            @if($model->colors and count($model->colors) >= 2)
                color: "{{ $model->colors[1] }}",
            @else
                color: '#000',
            @endif

            // This has to be the same size as the maximum width to
            // prevent clipping
            strokeWidth: 4,
            trailWidth: 1,
            easing: 'easeInOut',
            duration: 1000,
            text: {
                autoStyleContainer: false
            },
            from: { color: '#aaa', width: 4 },
            to: { color: @if($model->colors)"{{ $model->colors[0] }}" @else '#333' @endif , width: 4 },
            // Set default step function for all animate calls
            step: function(state, circle) {
                circle.path.setAttribute('stroke', state.color)
                circle.path.setAttribute('stroke-width', state.width)
            }
        });
        {{ $model->id }}.animate({{ ($model->values[0] - $min) / ($max - $min) }});
    });
</script>

Spamworldpro Mini