Edit File: b4cb2738b8bbac8c73911a4e9654bee3d3b467cc.php
<?php $__env->startSection('css'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css')); ?>"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/index_page.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if (isset($component)) { $__componentOriginalcd3d56d807712dee9d45093831508c7c3364ab65 = $component; } ?> <?php $component = App\View\Components\Admin\Filter::resolve(['datefilter' => 'true','order' => 'true','searchArray' => [ 'amount' => [ 'input_type' => 'text' , 'input_name' => __('admin.the_amount') , ] , ]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.filter'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Admin\Filter::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcd3d56d807712dee9d45093831508c7c3364ab65)): ?> <?php $component = $__componentOriginalcd3d56d807712dee9d45093831508c7c3364ab65; ?> <?php unset($__componentOriginalcd3d56d807712dee9d45093831508c7c3364ab65); ?> <?php endif; ?> <div class="table_content_append"> </div> <?php echo $__env->make('admin.settlements.accept_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.settlements.cancel_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script src="<?php echo e(asset('admin/app-assets/vendors/js/extensions/sweetalert2.all.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/extensions/sweet-alerts.js')); ?>"></script> <?php echo $__env->make('admin.shared.deleteAll', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.shared.deleteOne', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.shared.addImage', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script> $(document).on('click', '.accept-btn', function() { var id = $(this).data('id'), amount = $(this).data('amount') $('.settlement_id').val(id) $('#amount').val(amount) }); $(document).on('click', '.cancel-btn', function() { var id = $(this).data('id') $('.settlement_id').val(id) }); </script> <script> $(document).ready(function() { $(document).on('submit', '.store', function(e) { e.preventDefault(); var url = $(this).attr('action') $.ajax({ url: url, method: 'post', data: new FormData($(this)[0]), dataType: 'json', processData: false, contentType: false, beforeSend: function() { $(".submit_button").html( '<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>' ).attr('disable', true) }, success: function(response) { $(".text-danger").remove() $('.store input').removeClass('border-danger') $(".submit_button").html("<?php echo e(__('admin.confirm')); ?>").attr( 'disable', false) Swal.fire({ position: 'top-start', type: 'success', title: '<?php echo e(__('admin.settlement_request_completed_successfully')); ?>', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) setTimeout(function() { window.location.replace(response.url) }, 1000); }, error: function(xhr) { $(".submit_button").html("<?php echo e(__('admin.confirm')); ?>").attr( 'disable', false) $(".text-danger").remove() $('.store input').removeClass('border-danger') $.each(xhr.responseJSON.errors, function(key, value) { $('.store input[name=' + key + ']').addClass('border-danger') if (key == 'image') { $('.store .imageBlock').append(`<span class="mt-5 text-danger">${value}</span>`); }else { $('.store input[name=' + key + ']').after(`<span class="mt-5 text-danger">${value}</span>`); } $('.store select[name=' + key + ']').after( `<span class="mt-5 text-danger">${value}</span>`); }); }, }); }); }); </script> <?php echo $__env->make('admin.shared.filter_js' , [ 'index_route' => url('admin/settlements')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/thunderw/public_html/resources/views/admin/settlements/index.blade.php ENDPATH**/ ?>
Back to File Manager