⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
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 :
9f42ff72a31b95bd8a7d2b5df0f22203.php
<?php echo e(Form::open(['method' => 'post', 'enctype' => 'multipart/form-data', 'id' => 'upload_form', 'class' => 'needs-validation', 'novalidate'])); ?> <div class="modal-body"> <div class="row"> <div class="col-md-12 mb-6"> <?php echo e(Form::label('file', __('Download Sample Project CSV File'), ['class' => 'col-form-label text-danger mx-1'])); ?> <?php if(check_file('uploads/sample/sample_project.csv')): ?> <a href="<?php echo e(asset('uploads/sample/sample_project.csv')); ?>" class="btn btn-sm btn-primary btn-icon-only"> <i class="fa fa-download"></i> </a> <?php endif; ?> </div> <div class="col-md-12 mt-1"> <?php echo e(Form::label('file', __('Select CSV File'), ['class' => 'col-form-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; ?> <div class="choose-file form-group"> <label for="file" class="col-form-label"> <input type="file" class="form-control" name="file" id="file" data-filename="upload_file" required> </label> <p class="upload_file"></p> </div> </div> </div> </div> <div class="modal-footer"> <input type="button" value="<?php echo e(__('Cancel')); ?>" class="btn btn-secondary btn-light" data-bs-dismiss="modal"> <button type="submit" value="<?php echo e(__('Upload')); ?>" class="btn btn-primary ms-2"> <?php echo e(__('Upload')); ?> </button> <a href="" data-url="<?php echo e(route('project.import.modal')); ?>" data-ajax-popup-over="true" title="<?php echo e(__('Create')); ?>" data-size="xl" data-title="<?php echo e(__('Import Project CSV Data')); ?>" class="d-none import_modal_show"></a> </div> <?php echo e(Form::close()); ?> <script> $('#upload_form').on('submit', function(event) { event.preventDefault(); let data = new FormData(this); data.append('_token', "<?php echo e(csrf_token()); ?>"); $.ajax({ url: "<?php echo e(route('project.import')); ?>", method: "POST", data: data, dataType: 'json', contentType: false, cache: false, processData: false, success: function(data) { if (data.error != '') { toastrs('Error',data.error, 'error'); } else { $('#commonModal').modal('hide'); $(".import_modal_show").trigger( "click" ); setTimeout(function() { SetData(data.output); }, 700); } } }); }); </script> <?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Taskly/src/Providers/../Resources/views/projects/import.blade.php ENDPATH**/ ?>