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.
205 lines
16 KiB
PHP
205 lines
16 KiB
PHP
<?php if (isset($component)) { $__componentOriginal166a02a7c5ef5a9331faf66fa665c256 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal166a02a7c5ef5a9331faf66fa665c256 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament-panels::components.page.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament-panels::page'); ?>
|
|
<?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([]); ?>
|
|
<div class="md:grid grid-cols-4 flex flex-col gap-4" wire:poll.5s>
|
|
<div class="md:col-span-3">
|
|
<div class="flex flex-col gap-4 max-h-[60vh] overflow-y-auto pr-4">
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $this->record->messages()->with('user')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div
|
|
class="bg-background-secondary hover:bg-background-secondary/80 border border-neutral p-4 rounded-lg w-full max-w-[80%] <?php echo e($message->user_id === $this->record->user_id ? 'ml-auto' : 'mr-auto'); ?>"
|
|
<?php if($loop->last): ?> x-data x-init="$el.scrollIntoView()" <?php endif; ?>>
|
|
<div class="flex justify-between">
|
|
<div>
|
|
<a class="text-lg font-semibold hover:underline"
|
|
href="<?php echo e(App\Admin\Resources\UserResource::getUrl('edit', ['record' => $message->user])); ?>">
|
|
<?php echo e($message->user->name); ?>
|
|
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete', $message)): ?>
|
|
<button wire:click="deleteMessage(<?php echo e($message->id); ?>)"
|
|
class="dark:text-danger-300 text-danger-600 p-0">
|
|
Delete
|
|
</button>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<p class="text-sm text-gray-500"><?php echo e($message->created_at->diffForHumans()); ?></p>
|
|
<div class="mt-2 prose dark:prose-invert" style="word-break: break-all;"><?php echo Str::markdown(e($message->message), [
|
|
'allow_unsafe_links' => false,
|
|
'renderer' => [
|
|
'soft_break' => "<br>"
|
|
]
|
|
]); ?></div>
|
|
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($message->attachments && count($message->attachments) > 0): ?>
|
|
<div class="mt-4 pt-4 border-t border-gray-200 dark:border-gray-700">
|
|
<p class="text-sm font-medium text-gray-500 dark:text-gray-400 mb-3 flex items-center gap-2">
|
|
<?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
|
|
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('heroicon-o-paper-clip'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['class' => 'w-4 h-4']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
Attachments (<?php echo e(count($message->attachments)); ?>)
|
|
</p>
|
|
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $message->attachments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attachment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="flex items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700">
|
|
|
|
<div class="flex-shrink-0 w-16 h-16 rounded-md overflow-hidden bg-gray-100 dark:bg-gray-700">
|
|
<img src="<?php echo e($attachment['url']); ?>" alt="<?php echo e($attachment['name']); ?>" class="w-full h-full object-cover">
|
|
</div>
|
|
|
|
|
|
<div class="flex-1 min-w-0">
|
|
<p class="text-sm font-medium text-gray-900 dark:text-gray-100 truncate" title="<?php echo e($attachment['name']); ?>">
|
|
<?php echo e($attachment['name']); ?>
|
|
|
|
</p>
|
|
<div class="mt-2 flex items-center gap-2">
|
|
<a href="<?php echo e($attachment['url']); ?>" target="_blank"
|
|
class="inline-flex items-center gap-1 text-xs font-medium text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300">
|
|
<?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
|
|
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('heroicon-o-eye'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['class' => 'w-4 h-4']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
View
|
|
</a>
|
|
<span class="text-gray-300 dark:text-gray-600">|</span>
|
|
<a href="<?php echo e($attachment['url']); ?>" download="<?php echo e($attachment['name']); ?>"
|
|
class="inline-flex items-center gap-1 text-xs font-medium text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300">
|
|
<?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
|
|
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('heroicon-o-arrow-down-tray'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['class' => 'w-4 h-4']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
|
|
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
|
|
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
|
|
<?php endif; ?>
|
|
Download
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
<!-- Reply Form -->
|
|
<div class="mt-4">
|
|
<?php if (isset($component)) { $__componentOriginald09a0ea6d62fc9155b01d885c3fdffb3 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginald09a0ea6d62fc9155b01d885c3fdffb3 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament-panels::components.form.index','data' => ['id' => 'form','wire:key' => $this->getId() . '.forms.' . $this->getFormStatePath(),'wire:submit' => 'save']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament-panels::form'); ?>
|
|
<?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(['id' => 'form','wire:key' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($this->getId() . '.forms.' . $this->getFormStatePath()),'wire:submit' => 'save']); ?>
|
|
|
|
<?php echo e($this->form); ?>
|
|
|
|
|
|
<?php if (isset($component)) { $__componentOriginal742ef35d02cb00943edd9ad8ebf61966 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal742ef35d02cb00943edd9ad8ebf61966 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament-panels::components.form.actions','data' => ['actions' => $this->getCachedFormActions(),'fullWidth' => $this->hasFullWidthFormActions()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament-panels::form.actions'); ?>
|
|
<?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(['actions' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($this->getCachedFormActions()),'full-width' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($this->hasFullWidthFormActions())]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal742ef35d02cb00943edd9ad8ebf61966)): ?>
|
|
<?php $attributes = $__attributesOriginal742ef35d02cb00943edd9ad8ebf61966; ?>
|
|
<?php unset($__attributesOriginal742ef35d02cb00943edd9ad8ebf61966); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal742ef35d02cb00943edd9ad8ebf61966)): ?>
|
|
<?php $component = $__componentOriginal742ef35d02cb00943edd9ad8ebf61966; ?>
|
|
<?php unset($__componentOriginal742ef35d02cb00943edd9ad8ebf61966); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginald09a0ea6d62fc9155b01d885c3fdffb3)): ?>
|
|
<?php $attributes = $__attributesOriginald09a0ea6d62fc9155b01d885c3fdffb3; ?>
|
|
<?php unset($__attributesOriginald09a0ea6d62fc9155b01d885c3fdffb3); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginald09a0ea6d62fc9155b01d885c3fdffb3)): ?>
|
|
<?php $component = $__componentOriginald09a0ea6d62fc9155b01d885c3fdffb3; ?>
|
|
<?php unset($__componentOriginald09a0ea6d62fc9155b01d885c3fdffb3); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="md:order-last order-first w-full col-span-3 sm:col-auto"><?php echo e($this->infolist); ?></div>
|
|
|
|
</div>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal166a02a7c5ef5a9331faf66fa665c256)): ?>
|
|
<?php $attributes = $__attributesOriginal166a02a7c5ef5a9331faf66fa665c256; ?>
|
|
<?php unset($__attributesOriginal166a02a7c5ef5a9331faf66fa665c256); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal166a02a7c5ef5a9331faf66fa665c256)): ?>
|
|
<?php $component = $__componentOriginal166a02a7c5ef5a9331faf66fa665c256; ?>
|
|
<?php unset($__componentOriginal166a02a7c5ef5a9331faf66fa665c256); ?>
|
|
<?php endif; ?>
|
|
<?php /**PATH C:\Users\Owner\Virtnet.bond\resources\views\admin\resources\ticket-resource\pages\edit-ticket.blade.php ENDPATH**/ ?>
|