File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/b8947f7ac6fc404209300632bfea8f9d.php
Back
<?php echo e(Form::open(['url' => 'product-category'])); ?> <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 echo e(Form::text('name', '', ['class' => 'form-control', 'required' => 'required'])); ?> </div> <div class="form-group col-md-12 d-block"> <?php echo e(Form::label('type', __('Category Type'),['class'=>'form-label'])); ?> <?php echo e(Form::select('type',$types,null, array('class' => 'form-control select cattype ','required'=>'required'))); ?> </div> <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', 'required' => 'required'])); ?> <small><?php echo e(__('For chart representation')); ?></small> </div> </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()); ?> <script> //hide & show chartofaccount $(document).on('click', '.cattype', function () { var type = $(this).val(); if (type != 'product & service') { $('.account').removeClass('d-none') $('.account').addClass('d-block'); } else { $('.account').addClass('d-none') $('.account').removeClass('d-block'); } }); $(document).on('change', '#type', function () { var type = $(this).val(); $.ajax({ url: '<?php echo e(route('productServiceCategory.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 /**PATH /var/www/payraty/accounting_main/resources/views/productServiceCategory/create.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings