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/637fac831fd4cdf208b80b3ac0a8035eaa89e95d.php
<?php

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

use App\Models\Permission;
use App\Models\Repair;
use App\User;

$canCreateAktTs = can(Permission::act_tc_create) && !isset($model->acttc) && ($user->isManager() || $model->orders->isEmpty());
$canOrderCreate = $canActions && $model->isAllowEdit() && ($user->isManager() || empty($model->acttc));
?>

<?php $__env->startSection('title'); ?>
     <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => ''.e($model ? $model->getNumber() : '').' '.e($model->status() ? $model->status()->getName() : '').'']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => ''.e($model ? $model->getNumber() : '').' '.e($model->status() ? $model->status()->getName() : '').'']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
        <?php echo $__env->make('layouts.subheader', ["pageTitle"=> $model->getNumber(), 'extraTitle' => $model->status() ? $model->status()->getColoredName() : ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="d-flex flex-column-fluid">
            <div class="container">
                <div class="row">
                    <?php if(count($parts)): ?>
                        <?php echo $__env->make('repairs._table', ["parts"=> $parts, 'columns' => $columns, 'type' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?>

                    <div class="col-lg-6 сol-sm-12">
                        <div class="card card-custom gutter-b">
                            <div class="card-header">
                                <div class="card-title">
                                    <h3 class="card-label"><?php echo app('translator')->get('repairs.titleShow'); ?></h3>
                                </div>
                            </div>
                            <div class="card-body">
                                <?php echo $__env->make('repairs._repair_data', compact('model', 'user', 'canOrderCreate'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                                <?php $__currentLoopData = $model->attachments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attachment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <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($attachment->getName()); ?>

                                        <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(); ?>
                            </div>
                            <?php if($canCreateAktTs): ?>
                                <div class="card-footer">
                                    <a class="btn mr-2 btn-primary font-weight-bolder" href="<?php echo e(route('acttc.create', $model->id)); ?>">
                                        <i class=" fas fa-file-invoice"></i> <?php echo app('translator')->get('acttc.createButton'); ?>
                                    </a>
                                </div>
                            <?php endif; ?>
                        </div>

                        <?php if(count($twins)): ?>
                            <div class="card card-custom  gutter-b">
                                <!--begin::Header-->
                                <div class="card-header">
                                    <div class="card-title">
                                        <h3 class="card-label"><?php echo app('translator')->get('repairs.Twins'); ?></h3>
                                    </div>
                                </div>
                                <!--end::Header-->
                                <!--begin::Body-->
                                <div class="card-body">
                                    <?php $__currentLoopData = $twins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $twin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="d-flex align-items-center mb-2">
                                            <a href="<?php echo e(route('repairs.show', $twin->id)); ?>"
                                               class="text-primary font-weight-bolder text-hover-primary font-size-lg"><?php echo e($twin->getNumber()); ?></a>, <?php echo e(Illuminate\Support\Str::lower(__('grid.createdAt'))); ?> <?php echo e($twin->created_at->format(config('crud.formatDate'))); ?>

                                        </div>

                                        <?php if($twin->getOrdersNumbers()): ?>
                                            <div class="d-flex align-items-center justify-content-between">
                                                <span class="font-weight-bold "><?php echo app('translator')->get('repairs.order_id'); ?>:</span>
                                                <span class="font-weight-bold">
                                                <?php $__currentLoopData = $twin->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 text-hover-primary"><?php echo e($name); ?></a>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </span>
                                            </div>
                                        <?php endif; ?>

                                        <div class="d-flex align-items-center justify-content-between ">
                                            <span class="font-weight-bold mt-4"><?php echo app('translator')->get($twin->getLabel('name')); ?>:</span>
                                            <span class="font-weight-bold"><?php echo e($twin->name); ?></span>
                                        </div>

                                        <div class="d-flex align-items-center justify-content-between ">
                                            <span class="font-weight-bold "><?php echo app('translator')->get($twin->getLabel('email')); ?>:</span>
                                            <span class="font-weight-bold"><?php echo e($twin->email); ?></span>
                                        </div>

                                        <div class="d-flex align-items-center justify-content-between ">
                                            <span class="font-weight-bold "><?php echo app('translator')->get($twin->getLabel('phone')); ?>:</span>
                                            <span class="font-weight-bold"><?php echo e($twin->phone); ?></span>
                                        </div>

                                        <div class="d-flex align-items-center justify-content-between ">
                                            <span class="font-weight-bold "><?php echo app('translator')->get($twin->getLabel('address')); ?>:</span>
                                            <span class="font-weight-bold"><?php echo e($twin->address); ?></span>
                                        </div>

                                        <div class="d-flex align-items-center justify-content-between  <?php if(!$loop->last): ?> mb-10 <?php endif; ?>">
                                            <span class="font-weight-bold "><?php echo app('translator')->get($twin->getLabel('serial_number')); ?>:</span>
                                            <span class="font-weight-bold"><?php echo e($twin->serial_number); ?></span>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>

                    <div class="col-lg-6 сol-sm-12">
                        <div class="card card-custom">
                            <!--begin::Header-->
                            <div class="card-header">
                                <div class="card-title">
                                    <h3 class="card-label"><?php echo app('translator')->get('repairs.statusUpdate'); ?>
                                    </h3>
                                </div>
                            </div>
                            <!--end::Header-->
                            <!--begin::Body-->
                            <div class="card-body">
                                <div class="timeline timeline-6 timeline-date">
                                    <?php $__currentLoopData = $model->repair_changes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $change): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <!--begin::Item-->
                                        <div class="timeline-item align-items-start">
                                            <!--begin::Label-->
                                            <div
                                                class="timeline-label font-weight-bolder text-dark-75 font-size-lg"><?php echo e($change->created_at->format(config('crud.formatDate'))); ?>

                                            </div>
                                            <!--end::Label-->
                                            <!--begin::Badge-->
                                            <div class="timeline-badge">
                                                <i class="fa fa-genderless <?php echo e($change->status()->getColor()); ?> icon-xl"></i>
                                            </div>
                                            <!--end::Badge-->
                                            <!--begin::Text-->
                                            <div class="font-size-lg pl-3">
                                                <?php echo e($change->status()->getName()); ?>, <?php echo e(isset($change->user) ? __('users.byUser') . ' ' . $change->user->getName() : __('users.userNotSpecified')); ?>

                                            </div>
                                            <!--end::Text-->
                                        </div>
                                        <!--end::Item-->
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div> <!-- container -->
        </div> <!-- flex-column-fluid -->


    </div> <!-- content -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ipsremont-demo/resources/views/repairs/show.blade.php ENDPATH**/ ?>