File: /var/www/ipsremont-demo/storage/framework/views/c46b3895f0c8d7c560454ed8b3b1d4f0c69eea9c.php
<?php if(!empty($repairs)): ?>
<div class="card card-custom card-transparent gutter-b">
<div class="card-body p-0">
<div class="card card-custom">
<div class="card-header">
<div class="card-title">
<h3 class="card-label"><?php echo app('translator')->get('dashboard.freshRepairs'); ?></h3>
</div>
</div>
<div class="card-body">
<table class="table table-hover">
<?php echo $__env->make('components.table-header', ['columns' => $repairsColumns], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<tbody>
<?php if(sizeof($repairs)>0): ?>
<?php $__currentLoopData = $repairs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<a href="<?php echo e(route('repairs.show', $d->id)); ?>" class="text-primary font-weight-bolder font-size-lg"><?php echo e($d->getNumber()); ?></a>
</td>
<?php if(\Illuminate\Support\Facades\Auth::user()->isService()): ?>
<td><?php echo e($d->getInnerNbr()); ?></td>
<?php endif; ?>
<td>
<?php $__currentLoopData = $d->getOrdersNumbers(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(route('orders.show', $key)); ?>" class="text-primary font-weight-bolder"><?php echo e($name); ?></a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<?php if(can(\App\Models\Permission::branchesAll)): ?>
<td><?php echo e($d->getBranch()); ?></td>
<?php endif; ?>
<?php if(\Illuminate\Support\Facades\Auth::user()->isManager()): ?>
<td><?php echo e($d->getService()); ?></td>
<?php endif; ?>
<td><?php echo e($d->getSerial()); ?></td>
<td><?php echo e($d->getDevice()->getSerialName()); ?></td>
<td><?php echo $d->status()->getColoredName(); ?></td>
<td><?php echo e($d->created_at->format(config('crud.formatDate'))); ?></td>
<td><?php echo e($d->closed_at?$d->closed_at->format(config('crud.formatDate')):''); ?></td>
<td class="d-flex justify-content-end">
<?php if($canActions && $d->isAllowEdit()): ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.edit-btn','data' => ['title' => 'repairs.titleBtnEdit','link' => 'repairs.edit','id' => ''.e($d->id).'']]); ?>
<?php $component->withName('edit-btn'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'repairs.titleBtnEdit','link' => 'repairs.edit','id' => ''.e($d->id).'']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php endif; ?>
<?php if(isset($d->acttc)): ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button.action','data' => ['title' => 'acttc.show','link' => 'acttc.show','icon' => 'fas fa-file-invoice','id' => ''.e($d->acttc->getId()).'']]); ?>
<?php $component->withName('button.action'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'acttc.show','link' => 'acttc.show','icon' => 'fas fa-file-invoice','id' => ''.e($d->acttc->getId()).'']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.btn-show','data' => ['title' => 'repairs.titleBtnShow','link' => 'repairs.show','id' => ''.e($d->id).'','class' => '']]); ?>
<?php $component->withName('btn-show'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'repairs.titleBtnShow','link' => 'repairs.show','id' => ''.e($d->id).'','class' => '']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<tr>
<td align="center" colspan="<?php echo e(sizeof($repairsColumns['fields'])); ?>">
<?php echo app('translator')->get('repairs.notFound'); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php /**PATH /var/www/ipsremont-demo/resources/views/dashboard/_repairs.blade.php ENDPATH**/ ?>