76 lines
3.5 KiB
PHP
76 lines
3.5 KiB
PHP
<?php if (empty($ckdlist)) : ?>
|
|
<tr>
|
|
<td colspan="4" class="text-center text-muted">No data found</td>
|
|
</tr>
|
|
<?php else : ?>
|
|
<?php foreach ($ckdlist as $index => $value) :
|
|
$sno = $index + 1;
|
|
$storedName = !empty($value['file_name']) ? $value['file_name'] : '';
|
|
$fileName = $storedName !== '' ? storage_upload_display_name($storedName) : '-';
|
|
?>
|
|
<tr id="data_row_<?= $value['id'] ?>">
|
|
<td><?= $sno ?></td>
|
|
<td><?= esc($value['ui_docs_name']) ?></td>
|
|
<td><?= esc($fileName) ?></td>
|
|
<td>
|
|
<a class="mdi mdi-download mr-1 btn-download-kyc"
|
|
data-id="<?= $value['id'] ?>"
|
|
data-file="<?= esc($fileName) ?>"
|
|
style="font-size:18px;"></a>
|
|
|
|
<a class="mdi mdi-pencil mr-1 btn-edit-kyc"
|
|
data-id="<?= $value['id'] ?>"
|
|
data-client_id="<?= $value['client_id'] ?>"
|
|
data-old_file_name="<?= esc($storedName) ?>"
|
|
data-kyc_doc_type_id="<?= $value['kyc_doc_type_id'] ?>"
|
|
style="font-size:18px;"></a>
|
|
|
|
<a class="mdi mdi-delete mr-1 btn-delete-kyc"
|
|
data-id="<?= $value['id'] ?>"
|
|
data-client_id="<?= $value['client_id'] ?>"
|
|
style="font-size:18px;"></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- ✅ EDIT ROW -->
|
|
<tr id="edit_row_<?= $value['id'] ?>" class="d-none">
|
|
<td colspan="4">
|
|
<form id="kyc_form_<?= $value['id'] ?>" class="kyc-edit-form">
|
|
<input type="hidden" name="id" value="<?= $value['id'] ?>">
|
|
<input type="hidden" name="client_id" value="<?= $value['client_id'] ?>">
|
|
<input type="hidden" name="old_file_name" value="<?= esc($storedName) ?>">
|
|
|
|
<div class="row align-items-end">
|
|
<div class="col-md-8">
|
|
<label>
|
|
Change File - <?= esc($value['ui_docs_name']) ?>
|
|
(<?= esc($fileName) ?>)
|
|
</label>
|
|
<input type="file"
|
|
name="file_name"
|
|
id="kyc_docs_file_<?= $value['id'] ?>"
|
|
class="form-control edit-file-input"
|
|
accept=".pdf,.jpg,.jpeg,.png"
|
|
style="box-shadow:none!important; outline:none!important; border:none; height:unset!important;padding: 0px !important;background: transparent !important;">
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<button type="button" class="btn btn-primary btn-sm btn-update-kyc w-100"
|
|
data-id="<?= $value['id'] ?>"
|
|
data-client_id="<?= $value['client_id'] ?>">Update</button>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<button type="button"
|
|
class="btn btn-secondary btn-sm btn-cancel-kyc w-100"
|
|
data-id="<?= $value['id'] ?>">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|