File: /var/www/ipsremont-demo/storage/framework/views/533e8368517c9f49aaf69c6b0c37ca546c19f4b3.php
<?php use App\Models\ActTc; ?>
<?php use App\Services\Status\StatusService; ?>
<?php
/**
* @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.titleEdit']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'acttc.titleEdit']); ?> <?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.titleEdit', 'extraTitle' => ' ' . $model->getNumber()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="d-flex flex-column-fluid">
<div class="container">
<form class="form" method="POST" action="<?php echo e(route('acttc.update')); ?>">
<div class="row">
<div class="col-lg-6 сol-sm-12">
<?php if(count($orders) > 0): ?>
<div class="card card-custom gutter-b">
<div class="card-header"><h3 class="card-title"><?php echo e(__('acttc.openedOrders')); ?></h3>
</div>
<div class="card-body">
<?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(route('orders.edit', $order->getId())); ?>" target="_blank"
class="text-primary font-weight-bolder font-size-lg">
<?php echo e(__('acttc.order_number')); ?> <?php echo e($order->getNumber()); ?>
</a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
<?php endif; ?>
<div class="card card-custom gutter-b">
<div class="card-header"><h3
class="card-title"><?php echo e(__('acttc.act_number')); ?> <?php echo e($model->getNumber()); ?></h3></div>
<div class="card-body">
<?php echo csrf_field(); ?>
<input type="hidden" name="id" value="<?php echo e($model->getId()); ?>">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e(__('acttc.reasonForConfirmation')).'','name' => 'reason_for_confirmation','value' => ''.e(old('reason_for_confirmation') ? old('reason_for_confirmation') : $model->getReasonForConfirmation()).'','required' => ''.e($validate->isRequired('reason_for_confirmation')).'','error' => ''.e($errors->first('reason_for_confirmation')).'','icon' => '']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e(__('acttc.reasonForConfirmation')).'','name' => 'reason_for_confirmation','value' => ''.e(old('reason_for_confirmation') ? old('reason_for_confirmation') : $model->getReasonForConfirmation()).'','required' => ''.e($validate->isRequired('reason_for_confirmation')).'','error' => ''.e($errors->first('reason_for_confirmation')).'','icon' => '']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<div class="form-group">
<label><?php echo e(__('acttc.status')); ?></label>
<div class="radio-list js-radio-list">
<?php $__currentLoopData = StatusService::getActtcAll(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($model->isAllowManager($key)): ?>
<label class="radio">
<input type="radio" name="status" value="<?php echo e($key); ?>" <?php echo e((old('status') == $key) ? "checked" : ""); ?>>
<span></span>
<?php echo e($status); ?>
</label>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<br/>
<?php if($errors->first('status')): ?>
<div class="text-danger"><?php echo e($errors->first('status')); ?></div>
<?php endif; ?>
</div>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.fields.textarea','data' => ['label' => ''.e(__('acttc.additional_info')).'','name' => 'additional_info','value' => ''.e((old('additional_info')) ? old('additional_info') : $model->getAdditionalInfo()).'','required' => ''.e($validate->isRequired('additional_info')).'','error' => ''.e($errors->first('additional_info')).'','icon' => '','divId' => '_additional_info']]); ?>
<?php $component->withName('fields.textarea'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => ''.e(__('acttc.additional_info')).'','name' => 'additional_info','value' => ''.e((old('additional_info')) ? old('additional_info') : $model->getAdditionalInfo()).'','required' => ''.e($validate->isRequired('additional_info')).'','error' => ''.e($errors->first('additional_info')).'','icon' => '','divId' => '_additional_info']); ?> <?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>
</div>
<div class="col-lg-6 сol-sm-12">
<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('acttc.actShow'); ?></h3>
</div>
</div>
<div class="card-body">
<?php echo $__env->make('acttc._act_info', ['model' => $model], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
</div>
</form>
</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.blade.php ENDPATH**/ ?>