HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ipsremont-demo/storage/framework/views/6eaba173173c7c65e2bc0531619cdd5c15b1b58b.php
<?php

/**
 * @var User $user
 * @var string $startShip
 * @var string $endShip
 * @var ?ViewErrorBag $errors
 */

use App\User;
use Illuminate\Support\ViewErrorBag;

if (!$user->isManager()) {
    return;
}
?>
<div class="col-lg-6">
    <div class="card card-custom gutter-b">
        <div class="card-header">
            <div class="card-title">
                <h3 class="card-label"><?php echo app('translator')->get('dashboard.statShipments'); ?>:
                    <span class="font-size-lg font-weight-bolder">
                        <?php if(isset($startShip) && isset($endShip)): ?>
                            <?php echo \Carbon\Carbon::parse($startShip)->format(config('crud.formatDate')) ?> - <?php echo \Carbon\Carbon::parse($endShip)->format(config('crud.formatDate')) ?>
                        <?php endif; ?>
                    </span>
                </h3>
            </div>
        </div>

        <div class="card-body">
             <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.input.date-range','data' => ['placeholder' => ''.e(__('dashboard.stats_date')).'','name' => 'shipment_date','value' => ''.e(request()->shipment_date).'','error' => ''.e($errors->first('shipment_date')).'','filter' => '1','required' => '0','class' => 'js-autosubmit-date']]); ?>
<?php $component->withName('input.date-range'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['placeholder' => ''.e(__('dashboard.stats_date')).'','name' => 'shipment_date','value' => ''.e(request()->shipment_date).'','error' => ''.e($errors->first('shipment_date')).'','filter' => '1','required' => '0','class' => 'js-autosubmit-date']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
            <br/>
            <div id="js-shipments-pie" style="position: relative;"></div>
        </div>
    </div>
</div>
<?php $__env->startPush('scripts'); ?>
    <script>
        const optionsShipment = {
            series: [<?php $__currentLoopData = $shipmentStats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($stat['total']); ?>, <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>],
            chart: {
                height: '250px',
                width: 420,
                type: 'pie',
            },
            labels: [<?php $__currentLoopData = $shipmentStats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> '<?php echo e($stat['name']); ?>', <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>],
            responsive: [{
                breakpoint: 480,
                options: {
                    chart: {
                        height: '180px',
                        width: 200
                    },
                    legend: {
                        position: 'bottom'
                    }
                }
            }]
        };

        const chartShipments = new ApexCharts(document.querySelector('#js-shipments-pie'), optionsShipment);
        chartShipments.render();
    </script>
<?php $__env->stopPush(); ?>
<?php /**PATH /var/www/ipsremont-demo/resources/views/dashboard/_shipmentStats.blade.php ENDPATH**/ ?>