Introduced a new Livewire component for statistics redirection and added a corresponding route to enhance navigation within the Proxmox extension. This update lays the groundwork for future statistics-related features.
71 lines
5.2 KiB
PHP
71 lines
5.2 KiB
PHP
|
|
<?php if (isset($component)) { $__componentOriginalb525200bfa976483b4eaa0b7685c6e24 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalb525200bfa976483b4eaa0b7685c6e24 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament-widgets::components.widget','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament-widgets::widget'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes([]); ?>
|
|
<?php if (isset($component)) { $__componentOriginalee08b1367eba38734199cf7829b1d1e9 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalee08b1367eba38734199cf7829b1d1e9 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.section.index','data' => ['heading' => 'Active Users ('.e($onlineCount).')']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::section'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['heading' => 'Active Users ('.e($onlineCount).')']); ?>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $sessions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $session): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$session->user): ?>
|
|
<?php continue; ?>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
<div class="flex flex-row justify-between w-full items-center space-x-4">
|
|
<a href="<?php echo e(\App\Admin\Resources\UserResource::getUrl('edit', ['record' => $session->user])); ?>" wire:navigate class="flex-grow">
|
|
<div>
|
|
<h2 class="font-bold"><?php echo e($session->user->name); ?></h2>
|
|
<div class="text-sm mb-2">
|
|
<?php echo e($session->user->email); ?>
|
|
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="text-right min-w-[140px]">
|
|
<p class="text-sm text-base"><?php echo e($session->last_activity->diffForHumans()); ?></p>
|
|
<p
|
|
class="text-xs text-gray-400 dark:text-gray-500 cursor-pointer hover:text-primary-500 transition-colors select-none"
|
|
x-data="{ copied: false }"
|
|
x-on:click="
|
|
navigator.clipboard.writeText('<?php echo e($session->ip_address); ?>');
|
|
copied = true;
|
|
setTimeout(() => copied = false, 2000);
|
|
"
|
|
x-text="copied ? 'Copied!' : '<?php echo e($session->ip_address); ?>'"
|
|
></p>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalee08b1367eba38734199cf7829b1d1e9)): ?>
|
|
<?php $attributes = $__attributesOriginalee08b1367eba38734199cf7829b1d1e9; ?>
|
|
<?php unset($__attributesOriginalee08b1367eba38734199cf7829b1d1e9); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalee08b1367eba38734199cf7829b1d1e9)): ?>
|
|
<?php $component = $__componentOriginalee08b1367eba38734199cf7829b1d1e9; ?>
|
|
<?php unset($__componentOriginalee08b1367eba38734199cf7829b1d1e9); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalb525200bfa976483b4eaa0b7685c6e24)): ?>
|
|
<?php $attributes = $__attributesOriginalb525200bfa976483b4eaa0b7685c6e24; ?>
|
|
<?php unset($__attributesOriginalb525200bfa976483b4eaa0b7685c6e24); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalb525200bfa976483b4eaa0b7685c6e24)): ?>
|
|
<?php $component = $__componentOriginalb525200bfa976483b4eaa0b7685c6e24; ?>
|
|
<?php unset($__componentOriginalb525200bfa976483b4eaa0b7685c6e24); ?>
|
|
<?php endif; ?>
|
|
<?php /**PATH C:\Users\Owner\Virtnet.bond\resources\views\admin\widgets\active-users.blade.php ENDPATH**/ ?>
|