
<?php $__env->startSection('title'); ?>
    <?php echo e(__('Pending Manual Payments')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('deposit_content'); ?>
    <div class="col-xl-12 col-md-12">
        <div class="site-card">
            <div class="site-card-body table-responsive">
                <div class="site-table table-responsive">
                    <?php echo $__env->make('backend.payment.include.__filter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <table class="table">
                        <thead>
                            <tr>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'Date', 'field' => 'created_at'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'User', 'field' => 'user'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', [
                                    'label' => 'Transaction ID',
                                    'field' => 'tnx',
                                ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'Amount', 'field' => 'amount'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'Charge', 'field' => 'charge'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'Gateway', 'field' => 'method'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php echo $__env->make('backend.filter.th', ['label' => 'Status', 'field' => 'status'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <th><?php echo e(__('Action')); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td>
                                        <?php echo e($deposit->created_at); ?>

                                    </td>
                                    <td>
                                        <?php echo $__env->make('backend.transaction.include.__user', [
                                            'id' => $deposit->user_id,
                                            'name' => $deposit->user->username,
                                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </td>
                                    <td><?php echo e(safe($deposit->tnx)); ?></td>
                                    <td>
                                        <?php echo $__env->make('backend.transaction.include.__txn_amount', [
                                            'txnType' => $deposit->type,
                                            'amount' => $deposit->final_amount,
                                            'currency' => $deposit->pay_currency,
                                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </td>
                                    <td>
                                        <?php echo e(safe($deposit->charge . ' ' . setting('site_currency', 'global'))); ?>

                                    </td>
                                    <td>
                                        <?php echo e(safe($deposit->method)); ?>

                                    </td>
                                    <td>
                                        <?php echo $__env->make('backend.transaction.include.__txn_status', [
                                            'txnStatus' => $deposit->status->value,
                                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </td>
                                    <td>
                                        <?php echo $__env->make('backend.payment.include.__action', [
                                            'id' => $deposit->id,
                                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <td colspan="8" class="text-center"><?php echo e(__('No Data Found!')); ?></td>
                            <?php endif; ?>
                        </tbody>
                    </table>

                    <?php echo e($deposits->links('backend.include.__pagination')); ?>

                </div>
            </div>
        </div>
        <!-- Modal for Pending Deposit Approval -->
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('payment-action')): ?>
            <div class="modal fade" id="payment-action-modal" tabindex="-1" aria-labelledby="editPendingDepositModalLabel"
                aria-hidden="true">
                <div class="modal-dialog modal-md modal-dialog-centered">
                    <div class="modal-content site-table-modal">
                        <div class="modal-body popup-body">
                            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                            <div class="popup-body-text payment-action">

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>
        <!-- Modal for Pending Deposit Approval -->
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script>
        (function($) {
            "use strict";

            let loader =
                '<div class="text-center"><img src="<?php echo e(asset('global/materials/loader.gif')); ?>" width="100"><h5><?php echo e(__('Please wait')); ?>...</h5></div>';

            //send mail modal form open
            $('body').on('click', '#payment-action', function() {
                $('.payment-action').html(loader);

                var id = $(this).data('id');
                var url = '<?php echo e(route('admin.payment.action', ':id')); ?>';
                url = url.replace(':id', id);

                $.get(url, function(data) {
                    $('.payment-action').html(data);
                    imagePreview();
                    lucide.createIcons();
                });

                $('#payment-action-modal').modal('toggle');
            });
        })(jQuery);
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.payment.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/resources/views/backend/payment/manual.blade.php ENDPATH**/ ?>