File: /var/www/ipsremont-demo/storage/framework/views/f0dc048ad234a3f1b5ebeb0dd8b78354281fcefd.php
<?php
use App\Models\ActTc;
use App\Models\ActTcAttachment;
/**
* @var ActTc $model
*/
?>
<?php $__env->startSection('title'); ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => 'acttc.titleModify']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'acttc.titleModify']); ?> <?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"=> "acttc.modify", 'extraTitle' => ' ' . $repair->getNumber()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-lg-6 сol-sm-12">
<form class="form" method="POST" action="<?php echo e(route('acttc.store')); ?>">
<div class="card card-custom gutter-b">
<div class="card-header">
<h3 class="card-title"><?php echo app('translator')->get('acttc.titleModify'); ?></h3>
</div>
<div class="card-body">
<?php echo csrf_field(); ?>
<input type="hidden" name="acttc_id" value="<?php echo e($model->id); ?>">
<input type="hidden" name="repair_id" value="<?php echo e($repair->id); ?>">
<?php echo $__env->make('components.select', [
"name"=>"breakdown_cause",
"options"=>$breakdown_causes,
"value"=>old('breakdown_cause') ?: $model->breakdown_cause,
"placeholder"=>__('acttc.selectBreakdownCause'),
"search"=>false,
"class"=>"select-two",
"error"=>"<?php echo e($errors->first('breakdown_cause')); ?>",
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e($model->getLabel('reason_description')).'','name' => 'reason_description','value' => ''.e((old('reason_description')) ?: $model->reason_description).'','required' => ''.e($validate->isRequired('reason_description')).'','error' => ''.e($errors->first('reason_description')).'','icon' => '','divId' => '_reason_description']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e($model->getLabel('reason_description')).'','name' => 'reason_description','value' => ''.e((old('reason_description')) ?: $model->reason_description).'','required' => ''.e($validate->isRequired('reason_description')).'','error' => ''.e($errors->first('reason_description')).'','icon' => '','divId' => '_reason_description']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e($model->getLabel('trading_organization')).'','name' => 'trading_organization','value' => ''.old('trading_organization') ?: $model->getTradingOrganization().'','required' => ''.e($validate->isRequired('trading_organization')).'','error' => ''.e($errors->first('trading_organization')).'','icon' => '']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e($model->getLabel('trading_organization')).'','name' => 'trading_organization','value' => ''.old('trading_organization') ?: $model->getTradingOrganization().'','required' => ''.e($validate->isRequired('trading_organization')).'','error' => ''.e($errors->first('trading_organization')).'','icon' => '']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e($model->getLabel('fault_detected')).'','name' => 'fault_detected','value' => ''.e((old('fault_detected')) ?: $model->getFaultDetected()).'','required' => ''.e($validate->isRequired('fault_detected')).'','error' => ''.e($errors->first('fault_detected')).'','icon' => '']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e($model->getLabel('fault_detected')).'','name' => 'fault_detected','value' => ''.e((old('fault_detected')) ?: $model->getFaultDetected()).'','required' => ''.e($validate->isRequired('fault_detected')).'','error' => ''.e($errors->first('fault_detected')).'','icon' => '']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.input.form.checkbox','data' => ['label' => ''.e($model->getLabel('warranty_terms_violated')).'','name' => 'warranty_terms_violated','value' => '1','checked' => ''.e(old('warranty_terms_violated')?: $model->warranty_terms_violated).'','error' => ''.e($errors->first('warranty_terms_violated')).'','icon' => '']]); ?>
<?php $component->withName('input.form.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e($model->getLabel('warranty_terms_violated')).'','name' => 'warranty_terms_violated','value' => '1','checked' => ''.e(old('warranty_terms_violated')?: $model->warranty_terms_violated).'','error' => ''.e($errors->first('warranty_terms_violated')).'','icon' => '']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e($model->getLabel('warranty_violations')).'','name' => 'warranty_violations','value' => ''.e((old('warranty_violations')) ?: $model->getWarrantyViolations()).'','required' => ''.e($validate->isRequired('warranty_violations')).'','error' => ''.e($errors->first('warranty_violations')).'','icon' => '','divId' => '_warranty_violations']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e($model->getLabel('warranty_violations')).'','name' => 'warranty_violations','value' => ''.e((old('warranty_violations')) ?: $model->getWarrantyViolations()).'','required' => ''.e($validate->isRequired('warranty_violations')).'','error' => ''.e($errors->first('warranty_violations')).'','icon' => '','divId' => '_warranty_violations']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php $__currentLoopData = $model->attachments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attachment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php /** @var ActTcAttachment $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('acttc.file'); ?>:</span><?php echo e($attachment->getName()); ?>
<div>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button.action','data' => ['title' => 'acttc.delete','link' => 'acttc.delete_attachment','icon' => 'fas fa-trash','params' => ['id' => $attachment->id, 'backUrl' =>'acttc.edit_source']]]); ?>
<?php $component->withName('button.action'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'acttc.delete','link' => 'acttc.delete_attachment','icon' => 'fas fa-trash','params' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['id' => $attachment->id, 'backUrl' =>'acttc.edit_source'])]); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button.action','data' => ['title' => 'acttc.download','link' => 'acttc.download','icon' => 'fas fa-download','params' => ['id' => $attachment->id]]]); ?>
<?php $component->withName('button.action'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'acttc.download','link' => 'acttc.download','icon' => 'fas fa-download','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 if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.upload-by-id','data' => ['route' => 'acttc.import.upload','routeId' => ''.e($model->id).'','size' => '50','maxFiles' => '','acceptedFiles' => '','addRemoveLinks' => '0']]); ?>
<?php $component->withName('fields.upload-by-id'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['route' => 'acttc.import.upload','routeId' => ''.e($model->id).'','size' => '50','maxFiles' => '','acceptedFiles' => '','addRemoveLinks' => '0']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
</div>
<div class="card-footer">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button','data' => ['id' => 'form-submit']]); ?>
<?php $component->withName('button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['id' => 'form-submit']); ?><i class="fas fa-check-circle"></i><?php echo app('translator')->get('admins.btnSave'); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button-cancel','data' => ['class' => 'btn-secondary float-right','href' => ''.e(route('acttc.index')).'']]); ?>
<?php $component->withName('button-cancel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['class' => 'btn-secondary float-right','href' => ''.e(route('acttc.index')).'']); ?><?php echo app('translator')->get('admins.btnBack'); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
</div>
</div>
</form>
</div>
<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('acttc.repair'); ?></h3>
</div>
</div>
<div class="card-body">
<?php echo $__env->make('repairs._repair_data', ['model' => $repair], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?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/acttc/edit-source.blade.php ENDPATH**/ ?>