<?php $__env->startSection('content'); ?>
    <div class="row mb-35 g-4">
        <div class=" col-md-3">
            <div class="page-title text-md-start">
                <h4><?php echo e($page_title ?? ''); ?></h4>
            </div>
        </div>
        <div
            class=" col-md-9 text-md-end text-center d-flex justify-content-md-end justify-content-center flex-row align-items-center flex-wrap gap-4">
            <form action="" method="get">
                <div class="input-with-btn d-flex jusify-content-start align-items-strech">
                    <input type="text" name="search" placeholder="<?php echo e(translate('Search your deposit')); ?>...">
                    <button type="submit"><i class="bi bi-search"></i></button>
                </div>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="table-wrapper">
                <table class="eg-table table customer-table">
                    <thead>
                        <tr>
                            <th><?php echo e(translate('S.N')); ?></th>
                            <th><?php echo e(translate('Customer')); ?></th>
                            <th><?php echo e(translate('Method')); ?></th>
                            <th><?php echo e(translate('Amount')); ?></th>
                            <th><?php echo e(translate('Transaction ID')); ?></th>
                            <th><?php echo e(translate('Status')); ?></th>
                            <th><?php echo e(translate('Date')); ?></th>

                        </tr>
                    </thead>
                    <tbody>
                        <?php if($deposits->count() > 0): ?>
                            <?php $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td data-label="S.N">
                                        <?php echo e(($deposits->currentpage() - 1) * $deposits->perpage() + $key + 1); ?></td>
                                    <td data-label="Customer"><a href="<?php echo e(route('customer.view', $deposit->users->id)); ?>"
                                            title="<?php echo e($deposit->users->username); ?>"><?php echo e($deposit->users->username . ' - ' . $deposit->users->custom_id); ?></a>
                                    </td>
                                    <td data-label="Method"><?php echo e(ucfirst($deposit->payment_method)); ?></td>
                                    <td data-label="Currency">
                                        <?php echo e(strtoupper($deposit->currency) . ' ' . number_format($deposit->amount, 2)); ?>

                                    </td>
                                    <td data-label="Transaction ID"><?php echo e($deposit->transaction_id); ?></td>
                                    <td data-label="Status">
                                        <?php if($deposit->status == 2): ?>
                                            <button
                                            class="eg-btn green-light--btn"><?php echo e(translate('Approved')); ?></button><?php else: ?><button
                                                class="eg-btn red-light--btn"><?php echo e(translate('Rejected')); ?></button>
                                        <?php endif; ?>
                                    </td>
                                    <td data-label="Date"><?php echo e(dateFormat($deposit->created_at)); ?></td>

                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <tr>
                                <td colspan="8" data-label="Not Found">
                                    <h5 class="data-not-found"><?php echo e(translate('No Data Found')); ?></h5>
                                </td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <?php $__env->startPush('footer'); ?>
        <div class="d-flex justify-content-center custom-pagination">
            <?php echo $deposits->links(); ?>

        </div>
    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\triprex-app\resources\views/backend/deposits/index.blade.php ENDPATH**/ ?>