⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
11ef64628c7620161eb414f188a08fd0.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Create Ticket')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Tickets')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <link href="<?php echo e(asset('assets/js/plugins/summernote-0.8.18-dist/summernote-lite.min.css')); ?>" rel="stylesheet"> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <form action="<?php echo e(route('helpdesk.store')); ?>" class="mt-3 needs-validation" method="post" enctype="multipart/form-data" novalidate> <?php echo csrf_field(); ?> <div class="row"> <div class="col-md-12 col-xs-12"> <div class="card"> <div class="card-body"> <?php if(Auth::user()->type == 'super admin'): ?> <div class="row"> <?php $name = 'Customers'; ?> <div class="form-group col-md-6" id="customname"> <label class="require form-label"><?php echo e($name); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <select class="form-control select_person_email" name="name" <?php echo e(!empty($errors->first('name')) ? 'is-invalid' : ''); ?> required=""> <option value=""><?php echo e(__('Select User')); ?></option> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="invalid-feedback"> <?php echo e($errors->first('name')); ?> </div> </div> <div class="form-group col-md-6"> <label class="require form-label"><?php echo e(__('Email')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <input class="form-control emailAddressField <?php echo e(!empty($errors->first('email')) ? 'is-invalid' : ''); ?>" type="email" name="email" required="" placeholder="<?php echo e(__('Email')); ?>" readonly > <div class="invalid-feedback"> <?php echo e($errors->first('email')); ?> </div> </div> </div> <?php endif; ?> <div class="row"> <div class="form-group col-md-6"> <label class="require form-label"><?php echo e(__('Category')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <select class="form-control <?php echo e(!empty($errors->first('category')) ? 'is-invalid' : ''); ?>" name="category" required="" id="category"> <option value=""><?php echo e(__('Select Category')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="invalid-feedback"> <?php echo e($errors->first('category')); ?> </div> </div> <div class="form-group col-md-6"> <label class="require form-label"><?php echo e(__('Status')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <select class="form-control <?php echo e(!empty($errors->first('status')) ? 'is-invalid' : ''); ?>" name="status" required="" id="status"> <option value=""><?php echo e(__('Select Status')); ?></option> <option value="In Progress"><?php echo e(__('In Progress')); ?></option> <option value="On Hold"><?php echo e(__('On Hold')); ?></option> <option value="Closed"><?php echo e(__('Closed')); ?></option> </select> <div class="invalid-feedback"> <?php echo e($errors->first('status')); ?> </div> </div> <div class="form-group col-md-6"> <label class="require form-label"><?php echo e(__('Subject')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <input class="form-control <?php echo e(!empty($errors->first('subject')) ? 'is-invalid' : ''); ?>" type="text" name="subject" required="" placeholder="<?php echo e(__('Subject')); ?>"> <div class="invalid-feedback"> <?php echo e($errors->first('subject')); ?> </div> </div> <div class="form-group col-md-6"> <label class="require form-label"><?php echo e(__('Attachments')); ?> <small>(<?php echo e(__('You can select multiple files')); ?>)</small> </label> <div class="choose-file"> <label for="file" class="form-label d-block"> <input type="file" name="attachments[]" id="file" class="form-control <?php echo e($errors->has('attachments') ? ' is-invalid' : ''); ?>" multiple="" data-filename="multiple_file_selection" onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])"> <img src="" id="blah" width="20%" class="mt-3 d-none"/> <div class="invalid-feedback"> <?php echo e($errors->first('attachments.*')); ?> </div> </label> </div> <p class="multiple_file_selection mx-4"></p> </div> <div class="form-group col-md-12"> <label class="require form-label"><?php echo e(__('Description')); ?></label> <textarea name="description" class="form-control summernote <?php echo e(!empty($errors->first('description')) ? 'is-invalid' : ''); ?>" id="help-desc"></textarea> <div class="invalid-feedback"> <?php echo e($errors->first('description')); ?> </div> </div> </div> <div class="d-flex justify-content-end text-end"> <a class="btn btn-secondary btn-submit" href="<?php echo e(route('helpdesk.index')); ?>"><?php echo e(__('Cancel')); ?></a> <button class="btn btn-primary btn-submit ms-2" type="submit"><?php echo e(__('Create')); ?></button> </div> </div> </div> </div> </div> </form> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('assets/js/plugins/summernote-0.8.18-dist/summernote-lite.min.js')); ?>"></script> <script> $(document).on('click', '#file', function() { $('#blah').removeClass('d-none'); }); $(document).on('change', '.select_person_email', function() { var userId = $(this).val(); $.ajax({ url: '<?php echo e(route('helpdesk-tickets.getuser')); ?>', type: 'POST', data: { "user_id": userId, "_token": "<?php echo e(csrf_token()); ?>", }, success: function(data) { if(data.email) { $('.emailAddressField').val(data.email); $('.emailAddressField').prop('readonly', true); $('.emailAddressField').css('background-color', '#e9ecef'); }else{ $('.emailAddressField').val(''); $('.emailAddressField').prop('readonly', false); $('.emailAddressField').css('background-color', ''); } } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/resources/views/helpdesk_ticket/create.blade.php ENDPATH**/ ?>