
<?php $__env->startSection('title'); ?> <?php echo app('translator')->get('translation.settlelist'); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<!--datatable css-->
<link href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css" rel="stylesheet" type="text/css" />
<!--datatable responsive css-->
<link href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Settlement <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Settlement List <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
               
<div class="row">
    <div class="p-3 bg-light rounded mb-4">
        <form method="GET" action="<?php echo e(route('settle.settle.settle')); ?>">
            <div class="row g-2">
                <div class="col-lg-auto">
                    <select class="form-select" name="searchStatus">
                        <option value="">-</option>
                        <option value="PENDING" <?php echo e(request('searchStatus') == 'PENDING' ? 'selected' : ''); ?>>Pending</option>
                        <option value="COMPLETED" <?php echo e(request('searchStatus') == 'COMPLETED' ? 'selected' : ''); ?>>Completed</option>
                        <option value="REJECTED" <?php echo e(request('searchStatus') == 'REJECTED' ? 'selected' : ''); ?>>Rejected</option>
                    </select>
                </div>
                <div class="col-lg-auto">
                    <select class="form-select" name="searchDateRange">
                        <option value="">-</option>
                        <option value="today">Today</option>
                        <option value="last_week">Last Week</option>
                        <option value="last_month">Last Month</option>
                        <option value="current_year">Current Year</option>
                    </select>
                </div>
                
           
                <div class="col-lg">
                    <div class="search-box">
                        <input type="text" name="search" class="form-control search" placeholder="Search" value="<?php echo e(request('search')); ?>">
                        <i class="ri-search-line search-icon"></i>
                    </div>
                </div>
                <div class="col-lg-auto">
                    <button type="submit" class="btn btn-primary">Search</button>
                </div>
                 <div class="col-lg-auto">
                    <div class="btn-group">
                        <button type="button" id="dropdownMenuLink1" data-bs-toggle="dropdown" aria-expanded="true" class="btn btn-soft-info dropdown-toggle"><i class="ri-more-2-fill"></i> Export</button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink1">
                            <li><a class="dropdown-item" href="<?php echo e(route('settle.settle.settle', ['export' => 'this_month'])); ?>">This Month</a></li>
                            <li><a class="dropdown-item" href="<?php echo e(route('settle.settle.settle', ['export' => 'last_month'])); ?>">Last Month</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </form>
    </div>
   <div class="col-lg-12">
    <div class="card">
         <div class="card">
            <div class="card-header align-items-center d-flex">
                <h4 class="card-title mb-0 flex-grow-1"><?php echo app('translator')->get('translation.settlelist'); ?></h4>
                <div class="flex-shrink-0">
                    <a href="<?php echo e(route('settle.settle.new')); ?>"  class="btn btn-soft-success material-shadow-none"><i class="ri-add-circle-line align-middle me-1"></i> New Request</a></li>
                </div>
            </div>
        <div class="card-body">
            <table id="alternative-pagination" class="table nowrap dt-responsive align-middle table-hover table-bordered" style="width:100%">
                <thead>
                    <tr>
                        <th>Datetime</th>
                        <th>ReferenceID</th>
                        <th>Currency</th>
                        <th>Network</th>
                         <th>Wallet</th>
                        <th>Amount</th>
                        <th>Rate</th>
                        <th>USD</th>
                        <th>Txid</th>
                        <th>Status</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $settles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $settle): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($settle->created_at); ?></td>
                        <td><?php echo e($settle->referenceID); ?></td>
                        <td><?php echo e($settle->currency); ?></td>
                        <td><?php echo e($settle->network); ?></td>
                        <td><?php echo e($settle->account); ?></td>
                        <td><?php echo e($settle->amount); ?></td>
                        <td><?php echo e($settle->rate); ?></td>
                        <td><?php echo e($settle->usd); ?></td>
                        <td><?php echo e($settle->txid); ?></td>
                        <td>
                            <?php if($settle->status == 'PENDING'): ?>
                            <span class="badge bg-warning-subtle text-warning text-uppercase">Pending</span>
                            <?php elseif($settle->status == 'COMPLETED'): ?>
                            <span class="badge bg-success-subtle text-success text-uppercase" data-toggle="tooltip" data-placement="top" title="<?php echo e($settle->error); ?>">Completed</span>
                            <?php elseif($settle->status == 'REJECTED'): ?>
                            <span class="badge bg-danger-subtle text-danger text-uppercase" data-toggle="tooltip" data-placement="top" title="<?php echo e($settle->error); ?>">Rejected</span>
                            <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</div>

    <!--end col-->
</div>

<!--end row-->

<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.print.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.html5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="<?php echo e(URL::asset('build/js/pages/datatables.init.js')); ?>"></script>
<script src="<?php echo e(URL::asset('build/js/app.js')); ?>"></script>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/paysafebd23/merchant.zigopay.net/resources/views/settle-lists.blade.php ENDPATH**/ ?>