
<?php $__env->startSection('css'); ?>
    <style>
        /* Reset */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* General Styles */
        body {
            font-family: 'Poppins', sans-serif;
            color: #333;
            background-color: #f3f3f3;
        }

        /* Header */
        .sub-header {
            text-align: center;
            padding: 30px 0;
            background: linear-gradient(135deg, #ff6f91, #ff9671);
            color: #fff;
            border-radius: 8px 8px 0 0;
            box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
        }

        .sub-header .head_title {
            font-size: 2.5em;
            font-weight: 700;
            color: #fff;
            letter-spacing: 1px;
        }

        /* Main Container */
        .deposite-container {
            max-width: 1100px;
            margin: 40px auto;
            padding: 20px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        /* Table Styling */
        .table-responsive {
            overflow-x: auto;
            margin-top: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 1em;
            color: #444;
        }

        th {
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            color: #fff;
            padding: 15px;
            text-align: left;
            font-weight: bold;
            border-top: 1px solid #ddd;
            border-bottom: 3px solid #ddd;
        }

        td {
            padding: 12px 15px;
            background-color: #f9f9f9;
            border-bottom: 1px solid #ddd;
        }

        tr:nth-child(even) td {
            background-color: #f3f3f3;
        }

        /* Status Badge */
        .status-badge {
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            color: #000;
            display: inline-block;
            text-transform: uppercase;
            transition: background 0.3s ease;
        }

        .status-badge.success {
            background-color: #28a745;
        }

        .status-badge.pending {
            background-color: #ffc107;
        }

        .status-badge.failed {
            background-color: #dc3545;
        }

        /* Button Styling */
        .btn {
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 0.9em;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            opacity: 0.9;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .sub-header .head_title {
                font-size: 2em;
            }
            th, td {
                font-size: 0.9em;
                padding: 10px;
            }
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="deposite-container">
        <div class="sub-header">
            <h2 class="head_title">Transaction history</h2>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-md-12 mt-md-4 mb-4">
                    <div class="custom-accordian">
                        

                        <div class="tab-content">
                            <div id="deposit_list" class="tab-pane fade in active">
                                <div class="accordian-body">
                                    <div class="profile-row">
                                        <div class="Profile_column">
                                            <div class="acc-row">
                                                
                                                <div class="table-responsive">
                                                    <table id="deposit_report" class="table display nowrap w-100 "
                                                        cellspacing="0" width="100%">
                                                        <thead>
                                                            <tr>
                                                                <th>#</th>
                                                                <th>Payment Gateway Type</th>
                                                                <th>Amount</th>
                                                                <th>Category </th>
                                                                <th>Type </th>
                                                                <th>Remark </th>
                                                                <th>Status</th>
                                                                <th>Requested Date</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php if(count($deposit) > 0): ?>
                                                                <?php $__currentLoopData = $deposit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                    <tr>
                                                                        <td><?php echo e($loop->iteration); ?></td>
                                                                        <td><?php echo e(ucfirst($item->platform)); ?></td>
                                                                        <td>₹<?php echo e(number_format($item->amount,2)); ?></td>
                                                                        <td><?php echo e(ucfirst($item->category)); ?></td>
                                                                        <td><?php echo e(ucfirst($item->type)); ?></td>
                                                                        <td>
    <?php if($item->remark === 'Processing'): ?>
        <a href="/kyc.blade.php" class="btn btn-danger">Complete KYC</a>
    <?php else: ?>
        <?php echo e($item->remark); ?>

    <?php endif; ?>
</td>

                                                                        <td>
                                                                            <div class="btn btn-<?php echo e(status($item->status,'recharge')['color']); ?>"><?php echo e(status($item->status,'recharge')['name']); ?></div>
                                                                        </td>
                                                                        <td><?php echo e(dformat($item->created_at,'d-m-Y h:i:s')); ?></td>
                                                                    </tr>
                                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                            <?php else: ?>
                                                                <tr>
                                                                    <td colspan="5" style="text-align: center;">No data
                                                                        found!!</td>
                                                                </tr>
                                                            <?php endif; ?>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>

                        
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script>
        $('#withdraw_report').DataTable({});
    </script>
    
<?php $__env->stopSection(); ?>

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