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**/ ?>