

<?php $__env->startSection('content'); ?>
<div class="container">
    <h1>Pending Deposits</h1>
    <table class="table">
        <thead>
            <tr>
                <th>User</th>
                <th>Coin</th>
                <th>Amount</th>
                <th>Transaction ID</th>
                <th>Proof</th>
                <th>Status</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($deposit->user->name); ?></td>
                    <td><?php echo e($deposit->coin->name); ?></td>
                    <td><?php echo e(number_format($deposit->amount, 8)); ?></td>
                    <td><?php echo e($deposit->transaction_id); ?></td>
                    <td>
                        <?php if($deposit->proof): ?>
                            <a href="<?php echo e(asset('storage/app/public/' . $deposit->proof)); ?>" target="_blank">View Proof</a>
                        <?php endif; ?>
                    </td>
                    <td><?php echo e(ucfirst($deposit->status)); ?></td>
                    <td>
                        <?php if($deposit->status == 'pending'): ?>
                            <form action="<?php echo e(route('admin.deposits.approve', $deposit->id)); ?>" method="POST" style="display:inline;">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="btn btn-success">Approve</button>
                            </form>
                            <form action="<?php echo e(route('admin.deposits.reject', $deposit->id)); ?>" method="POST" style="display:inline;">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="btn btn-danger">Reject</button>
                            </form>
                        <?php endif; ?>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/qfsworl3/public_html/resources/views/admin/deposits.blade.php ENDPATH**/ ?>