⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.220
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
4abe924a99a68736d4e978273010235d.php
<?php echo e(Form::open(['route' => 'category.store','enctype'=>'multipart/form-data','class' => 'needs-validation', 'novalidate'])); ?> <div class="modal-body"> <div class="row"> <div class="form-group col-md-12"> <?php echo e(Form::label('name', __('Category Name'), ['class' => '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; ?> <?php echo e(Form::text('name', '', ['class' => 'form-control', 'required' => 'required','placeholder'=>'Enter Category Name'])); ?> </div> <div class=""> <input type="hidden" value="<?php echo e($types); ?>" name="type"> </div> <?php if($types != 0): ?> <div class="form-group col-md-12"> <?php echo e(Form::label('chart_account_id', __('Account'),['class'=>'form-label'])); ?> <select name="chart_account_id" class="form-control" required="required"> <?php $__currentLoopData = $chartAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $chartAccount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" class="subAccount"><?php echo e($chartAccount); ?></option> <?php $__currentLoopData = $subAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subAccount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($key == $subAccount['account']): ?> <option value="<?php echo e($subAccount['id']); ?>" class="ms-5"> <?php echo e($subAccount['code']); ?> - <?php echo e($subAccount['name']); ?></option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php endif; ?> <div class="form-group col-md-12"> <?php echo e(Form::label('color', __('Category Color'), ['class' => 'form-label'])); ?> <?php echo e(Form::color('color', '', ['class' => 'form-control jscolor'])); ?> <small><?php echo e(__('For chart representation')); ?></small> </div> <?php echo $__env->yieldPushContent('items_image'); ?> </div> </div> <div class="modal-footer"> <input type="button" value="<?php echo e(__('Cancel')); ?>" class="btn btn-light" data-bs-dismiss="modal"> <input type="submit" value="<?php echo e(__('Create')); ?>" class="btn btn-primary"> </div> <?php echo e(Form::close()); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).on('change', '#type', function () { var type = $(this).val(); console.log(type) $.ajax({ url: '<?php echo e(route('category.getaccount')); ?>', type: 'POST', data: { "type": type, "_token": "<?php echo e(csrf_token()); ?>", }, success: function (data) { $('#chart_account').empty(); $.each(data.chart_accounts, function (key, value) { $('#chart_account').append('<option value="' + key + '" class="subAccount">' + value + '</option>'); $.each(data.sub_accounts, function (subkey, subvalue) { if(key == subvalue.account) { $('#chart_account').append('<option value="' + subvalue.id + '">' + ' ' + subvalue.name + '</option>'); } }); }); } }); }); </script> <?php $__env->stopPush(); ?> <?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/ProductService/src/Providers/../Resources/views/category/create.blade.php ENDPATH**/ ?>