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/5b6c88476638878a6403f466cbe9a45d5af3ed32.php
<?php

use App\Models\Repair\Repair;
use App\Models\RepairAttachment;
use App\User;

/**
 * @var Repair $model
 * @var User $user
 */

?>
<?php $__currentLoopData = $model->attachments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attachment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php /** @var RepairAttachment $attachment */ ?>
    <div class="d-flex align-items-center justify-content-between mb-2 mt-8">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get('repairs.file'); ?>:</span><?php echo e(mb_strimwidth($attachment->getName(), 0, 40, '...')); ?>

        <?php if($user->isAdmin()): ?>
            <?php $filePath = storage_path($attachment->path); ?>
            <span><?php echo e(round(filesize($filePath) / 1024 / 1024, 2)); ?>Mb</span>
        <?php endif; ?>
        <div class="text-right">
             <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button.action','data' => ['title' => 'repairs.download','link' => 'repairs.download','icon' => 'fas fa-download','marginRight' => false,'params' => ['id' => $attachment->id]]]); ?>
<?php $component->withName('button.action'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'repairs.download','link' => 'repairs.download','icon' => 'fas fa-download','margin-right' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false),'params' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['id' => $attachment->id])]); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /var/www/ipsremont-demo/resources/views/repairs/_showAttachments.blade.php ENDPATH**/ ?>