<?php foreach ($lists as $key => $value) { ?>
	<tr class="wallet-request-row">
		<td class="fw-semibold"><?= $value['id'] ?></td>
		<td>
			<div class="d-flex align-items-center">
				<div class="bg-primary bg-opacity-10 rounded-circle p-2 me-2">
					<i class="fas fa-user text-primary"></i>
				</div>
				<span class="fw-medium"><?= $value['username'] ?></span>
			</div>
		</td>
		<td>
			<div class="text-muted small"><?= dateFormat($value['created_at'],'d F Y') ?></div>
			<div class="text-muted" style="font-size: 0.75rem;"><?= dateFormat($value['created_at'],'H:i') ?></div>
		</td>
		<td>
			<?php if($value['prefer_method'] != 'N/A'): ?>
				<span class="badge bg-info"><?= ucfirst(str_replace('_', ' ', $value['prefer_method'])) ?></span>
			<?php else: ?>
				<span class="badge bg-secondary"><?= __('admin.not_specified') ?></span>
			<?php endif; ?>
		</td>
		<td>
			<?php if($value['tran_ids'] != ""): ?>
				<button class="btn btn-outline-info btn-sm trans_ids" data-trans_ids="<?= $value['tran_ids'] ?>" title="<?= __('admin.view_transaction_ids') ?>">
					<i class="fas fa-eye me-1"></i><?= __('admin.view') ?>
				</button>
			<?php else: ?>
				<span class="text-muted small"><?= __('admin.no_transactions') ?></span>
			<?php endif; ?>
		</td>
		<td>
			<div class="fw-bold text-success"><?= c_format($value['total']) ?></div>
		</td>
		<td><?= withdrwal_status($value['status']) ?></td>
		<td class="text-end">
			<div class="btn-group" role="group">
				<a href="<?= base_url('admincontrol/wallet_requests_details/'. $value['id']) ?>" class="btn btn-primary btn-sm" title="<?= __('admin.view_details') ?>">
					<i class="fas fa-eye me-1"></i><?= __('admin.details') ?>
				</a>
				<?php if($value['tran_ids'] != ""): ?>
					<button data-id="<?= $value['tran_ids'] ?>" class="btn btn-danger btn-sm btn-deletes" title="<?= __('admin.revert_to_wallet') ?>">
						<i class="fas fa-undo me-1"></i><?= __('admin.revert') ?>
					</button>
				<?php else: ?>
					<button class="btn btn-secondary btn-sm" disabled title="<?= __('admin.transaction_not_available') ?>">
						<i class="fas fa-ban me-1"></i><?= __('admin.n_a') ?>
					</button>
				<?php endif; ?>
			</div>
		</td>
	</tr>
<?php  } ?>